Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Dlagent04

Detects known downloader agent downloading encoded binaries in patches from paste-like websites, most notably hastebin

MalwareDlagent04ditekSHen 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 known downloader agent downloading encoded binaries in patches from paste-like websites, most notably hastebin

Famille de malware associée : Dlagent04.

Cibles : PE Windows.

Elle définit 8 motifs (8 texte, 0 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-dlagent04.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Dlagent04 : FILE
{
	meta:
		description = "Detects known downloader agent downloading encoded binaries in patches from paste-like websites, most notably hastebin"
		author = "ditekSHen"
		id = "d591c591-aecc-557e-85b4-1e2589fbfbf9"
		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#L3247-L3263"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "73e6af7c32d38ec5d1d2bc9f2517860367b46779b53e0faff8885b655561ab01"
		score = 75
		quality = 75
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Trojan.DLAgent04"

	strings:
		$x1 = "@@@http" ascii wide
		$s1 = "HttpWebRequest" fullword ascii
		$s2 = "GetResponseStream" fullword ascii
		$s3 = "set_FileName" fullword ascii
		$s4 = "set_UseShellExecute" fullword ascii
		$s5 = "WebClient" fullword ascii
		$s6 = "set_CreateNoWindow" fullword ascii
		$s7 = "DownloadString" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and filesize < 300KB and #x1 > 1 and 4 of ( $s* )
}

Chaînes (8 motifs)

IdentifiantTypeValeurModificateurs
$x1texte"@@@http"ascii wide
$s1texte"HttpWebRequest"fullword ascii
$s2texte"GetResponseStream"fullword ascii
$s3texte"set_FileName"fullword ascii
$s4texte"set_UseShellExecute"fullword ascii
$s5texte"WebClient"fullword ascii
$s6texte"set_CreateNoWindow"fullword ascii
$s7texte"DownloadString"fullword ascii

Condition

uint16( 0 ) == 0x5a4d and filesize < 300KB and #x1 > 1 and 4 of ( $s* )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Le fichier doit faire moins de 300KB (garde-fou peu coûteux qui écarte les gros fichiers).
  • Au moins 4 motifs de ( $s* ) doivent être trouvés.
  • Le motif $x1 doit apparaître > 1 fois.

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: d591c591-aecc-557e-85b4-1e2589fbfbf9

Métadonnées

clamav_sigMALWARE.Win.Trojan.DLAgent04

Tags:FILE