YARA · CAPE Sandbox (CAPEv2)
CAPE_Stealc
Stealc Payload
- Author
- kevoreilly
- Date
- 2023-02-22
- Modified
- 2025-08-21
- Score / Quality
- 75 / 70
What this rule detects
Stealc Payload
Associated malware family: Stealc.
Targets: Windows PE.
It defines 2 patterns (0 text, 2 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule CAPE_Stealc : FILE
{
meta:
= "Stealc Payload"
= "kevoreilly"
= "77567584-7c84-5351-938b-d29d612a042d"
= "2023-02-22"
= "2025-08-21"
= "https://github.com/kevoreilly/CAPEv2"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/Stealc.yar#L1-L13"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
= "77d6f1914af6caf909fa2a246fcec05f500f79dd56e5d0d466d55924695c702d"
= "a6165168b7c74761b91d1691465688c748227b830813067edb4e9bdc934271c4"
= 75
= 70
= "FILE"
= "Stealc Payload"
strings:
$nugget1 = {68 04 01 00 00 6A 00 FF 15 [4] 50 FF 15}
$nugget2 = {64 A1 30 00 00 00 8B 40 0C 8B 40 0C 8B 00 8B 00 8B 40 18 89 45 FC}
condition:
uint16( 0 ) == 0x5A4D and all of them
}
Strings (2 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $nugget1 | hex | {68 04 01 00 00 6A 00 FF 15 [4] 50 FF 15} | |
| $nugget2 | hex | {64 A1 30 00 00 00 8B 40 0C 8B 40 0C 8B 00 8B 00 8B 40 18 89 45 FC} |
Condition
uint16( 0 ) == 0x5A4D and all of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- All patterns in the rule 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.
References
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 77d6f1914af6caf909fa2a246fcec05f500f79dd56e5d0d466d55924695c702d
Licence & attribution
Author: kevoreilly
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: 77567584-7c84-5351-938b-d29d612a042d
Metadata
| cape_type | Stealc Payload |
|---|
Tags:FILE
Related rules
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2023-02-22
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2023-02-22
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2023-02-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareEmbee Research· Matthew @ Embee_Research· 2023-08-27
- RUSSIANPANDA_Win_Mal_Stealc_V2Metadata onlyMalwareRussianPanda· RussianPanda· 2025-04-10
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2026-07-31