YARA · CAPE Sandbox (CAPEv2)
CAPE_Anticuckoo
AntiCuckoo bypass: https://github.com/therealdreg/anticuckoo
- Author
- kevoreilly
- Date
- 2023-03-17
- Score / Quality
- 75 / 70
What this rule detects
AntiCuckoo bypass: https://github.com/therealdreg/anticuckoo
Targets: Windows PE.
It defines 1 patterns (0 text, 1 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule CAPE_Anticuckoo : FILE
{
meta:
= "AntiCuckoo bypass: https://github.com/therealdreg/anticuckoo"
= "kevoreilly"
= "e221e57b-313e-5998-a3fc-5b4e9671b989"
= "2023-03-17"
= "2023-03-17"
= "https://github.com/kevoreilly/CAPEv2"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/analyzer/windows/data/yara/AntiCuckoo.yar#L1-L12"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
= "ad5e52f144bb4a1dae3090978c6ecb4c7732538c9b62a6cedd32eccee6094be5"
= "a039aeca2dae44980e8bffafacfda90975e107001be50f11ac916b35ad43592e"
= 75
= 70
= "FILE"
= "bp0=$HKActivOldStackCrash+36,action0=jmp,count=1"
strings:
$HKActivOldStackCrash = {5B 81 FB FA FA FA FA 74 01 41 3B E0 75 ?? 83 E9 0B 83 F9 04 7F 04 C6 45 ?? 00 89 4D ?? 89 65 ?? 80 7D ?? 00 74}
condition:
uint16( 0 ) == 0x5A4D and all of them
}
Strings (1 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $HKActivOldStackCrash | hex | {5B 81 FB FA FA FA FA 74 01 41 3B E0 75 ?? 83 E9 0B 83 F9 04 7F 04 C6 45 ?? 00 89 4D ?? 89 65 ?? 80 7D ?? 00 74} |
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).
- ad5e52f144bb4a1dae3090978c6ecb4c7732538c9b62a6cedd32eccee6094be5
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: e221e57b-313e-5998-a3fc-5b4e9671b989
Metadata
| cape_options | bp0=$HKActivOldStackCrash+36,action0=jmp,count=1 |
|---|
Tags:FILE
Related rules
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2026-07-31
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2024-02-26
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2024-01-05
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2024-01-05
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2024-01-05
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2024-03-07
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2024-03-07
- MalwareCAPE Sandbox (CAPEv2)· kevoreilly· 2024-10-04