YARA · CAPE Sandbox (CAPEv2)
CAPE_Stealcstrings
Stealc string decryption
- Author
- kevoreilly
- Date
- 2023-02-22
- Modified
- 2025-09-01
- Score / Quality
- 75 / 70
What this rule detects
Stealc string decryption
Associated malware family: Stealc.
Targets: Windows PE.
It defines 1 patterns (0 text, 1 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
stealcstrings.yarGNU General Public License v3.0
rule CAPE_Stealcstrings : FILE
{
meta:
= "Stealc string decryption"
= "kevoreilly"
= "087b5532-e1e7-5df9-adb2-bf758c8ba352"
= "2023-02-22"
= "2025-09-01"
= "https://github.com/kevoreilly/CAPEv2"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/analyzer/windows/data/yara/Stealc.yar#L15-L26"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
= "6d402446a979c00b6257ace9924db381d98c530b22968bd2776c66d58c7faefc"
= 75
= 70
= "FILE"
= "bp0=$decode+17,action0=string:edx,count=0,typestring=Stealc Strings"
= "d0c824e886f14b8c411940a07dc133012b9eed74901b156233ac4cac23378add"
strings:
$decode = {51 8B 15 [4] 52 8B 45 ?? 50 E8 [4] 83 C4 0C 6A 04 6A 00 8D 4D ?? 51 FF 15 [4] 83 C4 0C 8B 45 ?? 8B E5 5D C3}
condition:
uint16( 0 ) == 0x5A4D and any of them
}
Strings (1 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $decode | hex | {51 8B 15 [4] 52 8B 45 ?? 50 E8 [4] 83 C4 0C 6A 04 6A 00 8D 4D ?? 51 FF 15 [4] 83 C4 0C 8B 45 ?? 8B E5 5D C3} |
Condition
uint16( 0 ) == 0x5A4D and any of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least one pattern 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.
Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.
References
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: 087b5532-e1e7-5df9-adb2-bf758c8ba352
Metadata
| cape_options | bp0=$decode+17,action0=string:edx,count=0,typestring=Stealc Strings |
|---|---|
| packed | d0c824e886f14b8c411940a07dc133012b9eed74901b156233ac4cac23378add |
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