Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Bitcoingrabber

Detects generic bitcoin stealer

MalwareBitcoingrabberditekSHen 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 generic bitcoin stealer

Famille de malware associée : Bitcoingrabber.

Cibles : PE Windows.

Elle définit 9 motifs (9 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-bitcoingrabber.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Bitcoingrabber : FILE
{
	meta:
		description = "Detects generic bitcoin stealer"
		author = "ditekSHen"
		id = "f73b58da-1db5-5767-ae0a-074648e30966"
		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#L5859-L5875"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "2dc762525c1fbf25517df52f0561d96d7469bf1367eada31c236fc313001c6cb"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run" wide
		$s2 = "Bitcoin-Grabber" ascii
		$s3 = "Bitcoin_Grabber" ascii
		$s4 = "encrypt resources [compress]T" fullword ascii
		$s5 = "code control flow obfuscationT" fullword ascii
		$s6 = "\\Users\\lakol\\Desktop\\a\\Crypto Currency Wallet Changer\\" ascii
		$pat1 = "\\b(bc1|[13])[a-zA-HJ-NP-Z0-9]{26,35}\\b" fullword wide
		$pat2 = "\\b0x[a-fA-F0-9]{40}\\b" fullword wide
		$pat3 = "\\b4([0-9]|[A-B])(.){93}\\b" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and 4 of ( $s* ) or ( all of ( $pat* ) and 2 of ( $s* ) )
}

Chaînes (9 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run"wide
$s2texte"Bitcoin-Grabber"ascii
$s3texte"Bitcoin_Grabber"ascii
$s4texte"encrypt resources [compress]T"fullword ascii
$s5texte"code control flow obfuscationT"fullword ascii
$s6texte"\\Users\\lakol\\Desktop\\a\\Crypto Currency Wallet Changer\\"ascii
$pat1texte"\\b(bc1|[13])[a-zA-HJ-NP-Z0-9]{26,35}\\b"fullword wide
$pat2texte"\\b0x[a-fA-F0-9]{40}\\b"fullword wide
$pat3texte"\\b4([0-9]|[A-B])(.){93}\\b"fullword wide

Condition

uint16( 0 ) == 0x5a4d and 4 of ( $s* ) or ( all of ( $pat* ) and 2 of ( $s* ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Tous les motifs de ( $pat* ) doivent être trouvés.
  • Au moins 4 motifs de ( $s* ) doivent être trouvés.
  • Au moins 2 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: f73b58da-1db5-5767-ae0a-074648e30966

Tags:FILE