Skip to content

YARA · CAPE Sandbox (CAPEv2)

CAPE_Stealc

Stealc Payload

MalwareStealcCAPE Sandbox (CAPEv2)GNU General Public License v3.0Compiles with YARA-X
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

stealc.yarGNU General Public License v3.0
rule CAPE_Stealc : FILE
{
	meta:
		description = "Stealc Payload"
		author = "kevoreilly"
		id = "77567584-7c84-5351-938b-d29d612a042d"
		date = "2023-02-22"
		modified = "2025-08-21"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/Stealc.yar#L1-L13"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		hash = "77d6f1914af6caf909fa2a246fcec05f500f79dd56e5d0d466d55924695c702d"
		logic_hash = "a6165168b7c74761b91d1691465688c748227b830813067edb4e9bdc934271c4"
		score = 75
		quality = 70
		tags = "FILE"
		cape_type = "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)

IdentifierTypeValueModifiers
$nugget1hex{68 04 01 00 00 6A 00 FF 15 [4] 50 FF 15}
$nugget2hex{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

In 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.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

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.

Original rule

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_typeStealc Payload

Tags:FILE

More Stealc rules