Aller au contenu

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Blacknet

Detects BlackNET RAT

MalwareBlacknetditekSHen 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 BlackNET RAT

Famille de malware associée : Blacknet.

Cibles : PE Windows.

Elle définit 18 motifs (18 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-blacknet.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Blacknet : FILE
{
	meta:
		description = "Detects BlackNET RAT"
		author = "ditekSHen"
		id = "c1ece46a-3cd9-54aa-a105-1c5b19357a7e"
		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#L2222-L2250"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "64e00325a5a6a595067c6133800e73d943f45e2783475c24ed4a9bd9937fe0d6"
		score = 75
		quality = 75
		tags = "FILE"
		snort2_sid = "920079-920082"
		snort3_sid = "920079-920082"
		clamav_sig = "MALWARE.Win.Trojan.BlackNET"

	strings:
		$s1 = "SbieCtrl" fullword wide
		$s2 = "SpyTheSpy" fullword wide
		$s3 = "\\BlackNET.dat" fullword wide
		$s4 = "StartDDOS" fullword wide
		$s5 = "UDPAttack" fullword wide
		$s6 = "ARMEAttack" fullword wide
		$s7 = "TCPAttack" fullword wide
		$s8 = "HTTPGetAttack" fullword wide
		$s9 = "RetriveLogs" fullword wide
		$s10 = "StealPassword" fullword wide
		$s11 = "/create /f /sc ONSTART /RL HIGHEST /tn \"'" fullword wide
		$b1 = "DeleteScript|BN|" fullword wide
		$b2 = "|BN|Online" fullword wide
		$b3 = "NewLog|BN|" fullword wide
		$cnc1 = "/getCommand.php?id=" fullword wide
		$cnc2 = "/upload.php?id=" fullword wide
		$cnc3 = "connection.php?data=" fullword wide
		$cnc4 = "/receive.php?command=" fullword wide

	condition:
		uint16( 0 ) == 0x5a4d and ( 9 of ( $s* ) or all of ( $cnc* ) or all of ( $b* ) or 12 of them )
}

Chaînes (18 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"SbieCtrl"fullword wide
$s2texte"SpyTheSpy"fullword wide
$s3texte"\\BlackNET.dat"fullword wide
$s4texte"StartDDOS"fullword wide
$s5texte"UDPAttack"fullword wide
$s6texte"ARMEAttack"fullword wide
$s7texte"TCPAttack"fullword wide
$s8texte"HTTPGetAttack"fullword wide
$s9texte"RetriveLogs"fullword wide
$s10texte"StealPassword"fullword wide
$s11texte"/create /f /sc ONSTART /RL HIGHEST /tn \"'"fullword wide
$b1texte"DeleteScript|BN|"fullword wide
$b2texte"|BN|Online"fullword wide
$b3texte"NewLog|BN|"fullword wide
$cnc1texte"/getCommand.php?id="fullword wide
$cnc2texte"/upload.php?id="fullword wide
$cnc3texte"connection.php?data="fullword wide
$cnc4texte"/receive.php?command="fullword wide

Condition

uint16( 0 ) == 0x5a4d and ( 9 of ( $s* ) or all of ( $cnc* ) or all of ( $b* ) or 12 of them )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Tous les motifs de ( $cnc* ) doivent être trouvés.
  • Tous les motifs de ( $b* ) doivent être trouvés.
  • Au moins 9 motifs de ( $s* ) doivent être trouvés.
  • Au moins 12 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: c1ece46a-3cd9-54aa-a105-1c5b19357a7e

Métadonnées

snort2_sid920079-920082
snort3_sid920079-920082
clamav_sigMALWARE.Win.Trojan.BlackNET

Tags:FILE