Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Dlagent07

Detects delf downloader agent

MalwareDlagent07ditekSHen detectionBSD 2-Clause LicenseCompile avec YARA-X
Auteur
ditekSHen
Date
2020-11-06
Modifiée
2024-11-01
Score / Qualité
75 / 75

Ce que détecte cette règle

Detects delf downloader agent

Famille de malware associée : Dlagent07.

Cibles : PE Windows.

Elle définit 11 motifs (5 texte, 6 hex, 0 regex).

Résumé généré à partir des métadonnées et de la condition de la règle.

Source de la règle

malware-win-dlagent07.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Dlagent07 : FILE
{
	meta:
		description = "Detects delf downloader agent"
		author = "ditekSHen"
		id = "a45afe84-15ae-528a-ad7e-ab9f03045789"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L4849-L4867"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "1e0001d18524d0d34ad876e67e2c4dc0495ee18a73c34f53f97367876e27b406"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "C:\\Users\\Public\\Libraries\\temp" fullword ascii
		$s2 = "SOFTWARE\\Borland\\Delphi" ascii
		$s3 = "Mozilla/5.0(compatible; WinInet)" fullword ascii
		$o1 = { f3 a5 e9 6b ff ff ff 5a 5d 5f 5e 5b c3 a3 00 40 }
		$o2 = { e8 83 d5 ff ff 8b 15 34 40 41 00 89 10 89 58 04 }
		$o3 = { c3 8b c0 53 51 e8 f1 ff ff ff 8b d8 85 db 74 3e }
		$o4 = { e8 5c e2 ff ff 8b c3 e8 b9 ff ff ff 89 04 24 83 }
		$o5 = { 85 c0 74 1f e8 62 ff ff ff a3 98 40 41 00 e8 98 }
		$o6 = { 85 c0 74 19 e8 be ff ff ff 83 3d 98 40 41 00 ff }
		$x1 = "22:40:08        \"> <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"> <rdf:Description rdf:about=\"\"" ascii
		$x2 = "uuid:A9BD8E384B2FDE118D26E6EE744C235C\" stRef:documentID=\"uuid:A8BD8E384B2FDE118D26E6EE744C235C\"/>" ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( ( 2 of ( $s* ) and 5 of ( $o* ) ) or ( all of ( $s* ) and 2 of ( $o* ) ) or ( all of ( $x* ) and 2 of them ) )
}

Chaînes (11 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"C:\\Users\\Public\\Libraries\\temp"fullword ascii
$s2texte"SOFTWARE\\Borland\\Delphi"ascii
$s3texte"Mozilla/5.0(compatible; WinInet)"fullword ascii
$o1hex{ f3 a5 e9 6b ff ff ff 5a 5d 5f 5e 5b c3 a3 00 40 }
$o2hex{ e8 83 d5 ff ff 8b 15 34 40 41 00 89 10 89 58 04 }
$o3hex{ c3 8b c0 53 51 e8 f1 ff ff ff 8b d8 85 db 74 3e }
$o4hex{ e8 5c e2 ff ff 8b c3 e8 b9 ff ff ff 89 04 24 83 }
$o5hex{ 85 c0 74 1f e8 62 ff ff ff a3 98 40 41 00 e8 98 }
$o6hex{ 85 c0 74 19 e8 be ff ff ff 83 3d 98 40 41 00 ff }
$x1texte"22:40:08 \"> <rdf:RDF xmlns:rdf=\"http://www.w3.org/1999/02/22-rdf-syntax-ns#\"> <rdf:Description rdf:about=\"\""ascii
$x2texte"uuid:A9BD8E384B2FDE118D26E6EE744C235C\" stRef:documentID=\"uuid:A8BD8E384B2FDE118D26E6EE744C235C\"/>"ascii

Condition

uint16( 0 ) == 0x5a4d and ( ( 2 of ( $s* ) and 5 of ( $o* ) ) or ( all of ( $s* ) and 2 of ( $o* ) ) or ( all of ( $x* ) and 2 of them ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Tous les motifs de ( $s* ) doivent être trouvés.
  • Tous les motifs de ( $x* ) doivent être trouvés.
  • Au moins 2 motifs de ( $s* ) doivent être trouvés.
  • Au moins 5 motifs de ( $o* ) doivent être trouvés.
  • Au moins 2 motifs de ( $o* ) doivent être trouvés.
  • Au moins 2 motifs de la règle doivent être trouvés.

Tester cette règle dans votre navigateur

Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.

Déposez un fichier ici ou cliquez pour choisirScanné localement avec YARA-X. Fichiers jusqu’à 200 Mo.

Ouvrir dans l’éditeur

Références

Licence et attribution

Auteur : ditekSHen

Dépôt source : ditekSHen detection @ e76c93dcde

Licence : BSD 2-Clause License (licence du dépôt)

Mention de copyright : Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Règle d’origine

Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.

Identifiant de règle: a45afe84-15ae-528a-ad7e-ab9f03045789

Tags:FILE