Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Dlinjector02

Detects downloader injector

MalwareDlinjector02ditekSHen 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 downloader injector

Famille de malware associée : Dlinjector02.

Cibles : PE Windows.

Elle définit 10 motifs (10 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-dlinjector02.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Dlinjector02 : FILE
{
	meta:
		description = "Detects downloader injector"
		author = "ditekSHen"
		id = "ce2c418d-18e4-579c-9828-94e294385846"
		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#L6017-L6034"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "76d185cfcbc7f4996c2fb5c7c1ba4eb20b32d322d8ff47594283a4ca3e573a0b"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "In$J$ct0r" fullword wide
		$x2 = "%InJ%ector%" fullword wide
		$a1 = "WriteProcessMemory" fullword wide
		$a2 = "URLDownloadToFileA" fullword ascii
		$a3 = "Wow64SetThreadContext" fullword wide
		$a4 = "VirtualAllocEx" fullword wide
		$s1 = "RunPE" fullword wide
		$s2 = "SETTINGS" fullword wide
		$s3 = "net.pipe" fullword wide
		$s4 = "vsmacros" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and ( 1 of ( $x* ) or ( all of ( $a* ) and 3 of ( $s* ) ) )
}

Chaînes (10 motifs)

IdentifiantTypeValeurModificateurs
$x1texte"In$J$ct0r"fullword wide
$x2texte"%InJ%ector%"fullword wide
$a1texte"WriteProcessMemory"fullword wide
$a2texte"URLDownloadToFileA"fullword ascii
$a3texte"Wow64SetThreadContext"fullword wide
$a4texte"VirtualAllocEx"fullword wide
$s1texte"RunPE"fullword wide
$s2texte"SETTINGS"fullword wide
$s3texte"net.pipe"fullword wide
$s4texte"vsmacros"fullword wide

Condition

uint16( 0 ) == 0x5a4d and ( 1 of ( $x* ) or ( all of ( $a* ) and 3 of ( $s* ) ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Tous les motifs de ( $a* ) doivent être trouvés.
  • Au moins 1 motifs de ( $x* ) doivent être trouvés.
  • Au moins 3 motifs de ( $s* ) 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: ce2c418d-18e4-579c-9828-94e294385846

Tags:FILE