YARA · CAPE Sandbox (CAPEv2)
CAPE_Stxrat
No description has been set in the source file - CAPE
- Author
- YungBinary
- Date
- 2026-04-11
- Modified
- 2026-04-14
- Score / Quality
- 75 / 70
What this rule detects
No description has been set in the source file - CAPE
Targets: Windows PE.
It defines 8 patterns (1 text, 7 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
stxrat.yarGNU General Public License v3.0
rule CAPE_Stxrat : FILE
{
meta:
= "No description has been set in the source file - CAPE"
= "YungBinary"
= "9ce51412-52ce-5682-802d-fad96c053c30"
= "2026-04-11"
= "2026-04-14"
= "https://www.esentire.com/blog/stx-rat-a-new-rat-in-2026-with-infostealer-capabilities"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/STXRat.yar#L49-L120"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
= "f82b832e6bf936ff936332c059b1d3b981ce387bf82964ecf64a9cb12cda955d"
= 75
= 70
= "FILE"
= "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* ) )
}
Strings (8 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | hex | { 8D 51 BF 83 FA 19 8D 41 20 0F 47 C1 C2 } | |
| $s2 | hex | { 48 8D 05 ?? ?? ?? ?? 66 C7 45 ?? 48 B8 [0-6] 48 89 45 ?? 48 8D 55 ?? 66 C7 45 ?? FF E0 } | |
| $s3 | hex | { 65 48 8B 04 25 60 00 00 00 80 78 02 01 } | |
| $s4 | text | "Microsoft Enhanced RSA and AES Cryptographic Provider (Prototype)" | ascii |
| $s5 | hex | { 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 … | |
| $s6 | hex | { 48 83 FB 5A 73 ?? 88 84 1C ?? ?? ?? ?? 48 FF C3 48 FF C1 8A 01 84 C0 … | |
| $s7 | hex | { 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 … | |
| $s8 | hex | { 80 61 1F 3F 80 49 1F 40 80 21 F8 } |
Condition
uint16( 0 ) == 0x5a4d and ( 4 of ( $s* ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 4 patterns in ( $s* ) must match.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.
Licence & attribution
Author: YungBinary
Source repository: CAPE Sandbox (CAPEv2) @ 6b15e76f28
Licence: GNU General Public License v3.0 (repository licence)
Copyright notice: Cuckoo Sandbox is copyrighted by the Cuckoo Foundation.
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 9ce51412-52ce-5682-802d-fad96c053c30
Metadata
| cape_type | STXRat Payload |
|---|
Tags:FILE
Related rules
- MalwareCAPE Sandbox (CAPEv2)· YungBinary· 2025-09-04
- MalwareCAPE Sandbox (CAPEv2)· YungBinary· 2024-10-25
- GenericCAPE Sandbox (CAPEv2)· YungBinary· 2025-10-24
- MalwareCAPE Sandbox (CAPEv2)· YungBinary· 2025-10-17