Aller au contenu

YARA · CAPE Sandbox (CAPEv2)

CAPE_Nightshadec2

NightshadeC2 AKA CastleRAT - https://x.com/YungBinary/status/1963751038340534482

MalwareNightshade C2CAPE Sandbox (CAPEv2)GNU General Public License v3.0Compile avec YARA-X
Auteur
YungBinary
Date
2025-09-04
Modifiée
2025-09-12
Score / Qualité
75 / 70

Ce que détecte cette règle

NightshadeC2 AKA CastleRAT - https://x.com/YungBinary/status/1963751038340534482

Famille de malware associée : Nightshade C2.

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

nightshadec2.yarGNU General Public License v3.0
rule CAPE_Nightshadec2 : FILE
{
	meta:
		description = "NightshadeC2 AKA CastleRAT - https://x.com/YungBinary/status/1963751038340534482"
		author = "YungBinary"
		id = "d70f9051-c7ab-537a-ab80-03ae7ef80b81"
		date = "2025-09-04"
		modified = "2025-09-12"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/NightshadeC2.yar#L1-L20"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		hash = "963c012d56c62093d105ab5044517fdcce4ab826f7782b3e377932da1df6896d"
		logic_hash = "f9fabc391e21180a1c92abea0a5ded6d7669e8d8f2330b69d6c1227c9b4237a0"
		score = 75
		quality = 70
		tags = "FILE"
		cape_type = "NightshadeC2 Payload"

	strings:
		$s1 = "keylog.txt" fullword wide
		$s2 = "\"%ws\" --mute-audio --do-not-de-elevate" fullword wide
		$s3 = "\"%ws\" -no-deelevate" fullword wide
		$s4 = "MachineGuid" fullword wide
		$s5 = "www.ip-api.com" fullword wide
		$s6 = "rundll32 \"C:\\Windows\\System32\\shell32.dll\" #61" fullword wide
		$s7 = "IsabellaWine" fullword wide
		$s8 = "Shell_TrayWnd" fullword wide

	condition:
		uint16( 0 ) == 0x5A4D and 3 of them
}

Chaînes (8 motifs)

IdentifiantTypeValeurModificateurs
$s1texte"keylog.txt"fullword wide
$s2texte"\"%ws\" --mute-audio --do-not-de-elevate"fullword wide
$s3texte"\"%ws\" -no-deelevate"fullword wide
$s4texte"MachineGuid"fullword wide
$s5texte"www.ip-api.com"fullword wide
$s6texte"rundll32 \"C:\\Windows\\System32\\shell32.dll\" #61"fullword wide
$s7texte"IsabellaWine"fullword wide
$s8texte"Shell_TrayWnd"fullword wide

Condition

uint16( 0 ) == 0x5A4D and 3 of them

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 3 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

Hashes d’échantillons

Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).

  • 963c012d56c62093d105ab5044517fdcce4ab826f7782b3e377932da1df6896d

Licence et attribution

Auteur : YungBinary

Dépôt source : CAPE Sandbox (CAPEv2) @ 6b15e76f28

Licence : GNU General Public License v3.0 (licence du dépôt)

Mention de copyright : Cuckoo Sandbox is copyrighted by the Cuckoo Foundation.

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: d70f9051-c7ab-537a-ab80-03ae7ef80b81

Métadonnées

cape_typeNightshadeC2 Payload

Tags:FILE