Aller au contenu

YARA · CAPE Sandbox (CAPEv2)

CAPE_Stxrat

No description has been set in the source file - CAPE

GénériqueCAPE Sandbox (CAPEv2)GNU General Public License v3.0Compile avec YARA-X
Auteur
YungBinary
Date
2026-04-11
Modifiée
2026-04-14
Score / Qualité
75 / 70

Ce que détecte cette règle

No description has been set in the source file - CAPE

Cibles : PE Windows.

Elle définit 8 motifs (1 texte, 7 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

stxrat.yarGNU General Public License v3.0
rule CAPE_Stxrat : FILE
{
	meta:
		description = "No description has been set in the source file - CAPE"
		author = "YungBinary"
		id = "9ce51412-52ce-5682-802d-fad96c053c30"
		date = "2026-04-11"
		modified = "2026-04-14"
		reference = "https://www.esentire.com/blog/stx-rat-a-new-rat-in-2026-with-infostealer-capabilities"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/STXRat.yar#L49-L120"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		logic_hash = "f82b832e6bf936ff936332c059b1d3b981ce387bf82964ecf64a9cb12cda955d"
		score = 75
		quality = 70
		tags = "FILE"
		cape_type = "STXRat Payload"

	strings:
		$s1 = {
            8D 51 BF
            83 FA 19
            8D 41 20
            0F 47 C1
            C2 
        }
		$s2 = {
            48 8D 05 ?? ?? ?? ??
            66 C7 45 ?? 48 B8 [0-6]
            48 89 45 ??
            48 8D 55 ??
            66 C7 45 ?? FF E0
        }
		$s3 = {
            65 48 8B 04 25 60 00 00 00
            80 78 02 01
        }
		$s4 = "Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)" ascii
		$s5 = {
            B9 10 66 00 00 [0-3]
            0F 44 C1
            B9 0F 66 00 00
            41 81 ?? C0 00 00 00
            0F 44 C1
            B9 0E 66 00 00
        }
		$s6 = {
            48 83 FB 5A
            73 ??
            88 84 1C ?? ?? ?? ??
            48 FF C3
            48 FF C1
            8A 01
            84 C0
            75
        }
		$s7 = {
            83 61 18 00
            83 61 14 00
            C7 01 01 23 45 67
            C7 41 04 89 AB CD EF
            C7 41 08 FE DC BA 98
            C7 41 0C 76 54 32 10
            C7 41 10 F0 E1 D2 C3
            C3
        }
		$s8 = {
            80 61 1F 3F
            80 49 1F 40
            80 21 F8
        }

	condition:
		uint16( 0 ) == 0x5a4d and ( 4 of ( $s* ) )
}

Chaînes (8 motifs)

IdentifiantTypeValeurModificateurs
$s1hex{ 8D 51 BF 83 FA 19 8D 41 20 0F 47 C1 C2 }
$s2hex{ 48 8D 05 ?? ?? ?? ?? 66 C7 45 ?? 48 B8 [0-6] 48 89 45 ?? 48 8D 55 ?? 66 C7 45 ?? FF E0 }
$s3hex{ 65 48 8B 04 25 60 00 00 00 80 78 02 01 }
$s4texte"Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)"ascii
$s5hex{ B9 10 66 00 00 [0-3] 0F 44 C1 B9 0F 66 00 00 41 81 ?? C0 00 00 00 0F 44 C1 B9 0E 66 00 …
$s6hex{ 48 83 FB 5A 73 ?? 88 84 1C ?? ?? ?? ?? 48 FF C3 48 FF C1 8A 01 84 C0 …
$s7hex{ 83 61 18 00 83 61 14 00 C7 01 01 23 45 67 C7 41 04 89 AB CD EF C7 41 08 FE DC BA 98 C7 …
$s8hex{ 80 61 1F 3F 80 49 1F 40 80 21 F8 }

Condition

uint16( 0 ) == 0x5a4d and ( 4 of ( $s* ) )

En clair (Heuristique)

  • Le fichier doit commencer par « MZ » — un exécutable Windows (PE).
  • Au moins 4 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 : 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: 9ce51412-52ce-5682-802d-fad96c053c30

Métadonnées

cape_typeSTXRat Payload

Tags:FILE