Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Buterat

Detects ButeRAT

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

Ce que détecte cette règle

Detects ButeRAT

Famille de malware associée : Buterat.

Cibles : PE Windows.

Elle définit 10 motifs (9 texte, 0 hex, 1 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-buterat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Buterat : FILE
{
	meta:
		description = "Detects ButeRAT"
		author = "ditekSHen"
		id = "74f63d61-6589-5fb1-864a-3a02ddd57ebc"
		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#L5822-L5839"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "c3d93e8dc1bde8e77c11586c8d8b67d137ef2c4791e12269f1af310fbe14832b"
		score = 75
		quality = 73
		tags = "FILE"

	strings:
		$x1 = "TVqQAAMAA" ascii
		$s1 = "ipinfo.io/geo" wide
		$s2 = "/index.php" wide
		$s3 = "Copy-Item -Path" wide
		$s4 = ";Start-Process" wide
		$s5 = "Microsoft\\Windows\\Start Menu\\Programs\\Startup" wide
		$s6 = "LOCALAPPDATA" fullword wide
		$s7 = "passwords.json" wide
		$s8 = "Scripting.FileSystemObject" fullword wide
		$z1 = /(edge|chrome|opera|exodus|jaxx|atomic|coinomi)\.zip/ ascii wide nocase

	condition:
		uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) or 1 of ( $z* ) ) and ( 4 of ( $s* ) ) or ( 6 of ( $s* ) ) or ( #z1 > 4 and 2 of them ) )
}

Chaînes (10 motifs)

IdentifiantTypeValeurModificateurs
$x1texte"TVqQAAMAA"ascii
$s1texte"ipinfo.io/geo"wide
$s2texte"/index.php"wide
$s3texte"Copy-Item -Path"wide
$s4texte";Start-Process"wide
$s5texte"Microsoft\\Windows\\Start Menu\\Programs\\Startup"wide
$s6texte"LOCALAPPDATA"fullword wide
$s7texte"passwords.json"wide
$s8texte"Scripting.FileSystemObject"fullword wide
$z1regex/(edge|chrome|opera|exodus|jaxx|atomic|coinomi)\.zip/ascii wide nocase

Condition

uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) or 1 of ( $z* ) ) and ( 4 of ( $s* ) ) or ( 6 of ( $s* ) ) or ( #z1 > 4 and 2 of them ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 1 motifs de ( $x* ) doivent être trouvés.
  • Au moins 1 motifs de ( $z* ) doivent être trouvés.
  • Au moins 4 motifs de ( $s* ) doivent être trouvés.
  • Au moins 6 motifs de ( $s* ) doivent être trouvés.
  • Au moins 2 motifs de la règle doivent être trouvés.
  • Le motif $z1 doit apparaître > 4 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: 74f63d61-6589-5fb1-864a-3a02ddd57ebc

Tags:FILE