YARA · CAPE Sandbox (CAPEv2)
CAPE_Carbanak
Carnbanak Payload
- Author
- enzok
- Date
- 2023-11-30
- Modified
- 2024-03-18
- Score / Quality
- 75 / 70
What this rule detects
Carnbanak Payload
Associated malware family: Carbanak.
Targets: Windows PE.
It defines 3 patterns (0 text, 3 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule CAPE_Carbanak : FILE
{
meta:
= "Carnbanak Payload"
= "enzok"
= "e6d395d5-65ba-5efb-bcbc-c6d56a96f0c1"
= "2023-11-30"
= "2024-03-18"
= "https://github.com/kevoreilly/CAPEv2"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/Carbanak.yar#L1-L14"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
= "c9c1b06cb9c9bd6fc4451f5e2847a1f9524bb2870d7bb6f0ee09b9dd4e3e4c84"
= "8ed5ab07f1635dc7cdf296e86a71a0a99d0b2faef8fc460f43d426b24b8c8367"
= 75
= 70
= "FILE"
= "Carbanak Payload"
strings:
$sboxinit = {0F BE 02 4? 8D 05 [-] 4? 8D 4D ?? E8 [3] 00 33 F6 4? 8D 5D ?? 4? 63 F8 8B 45 ?? B? B1 E3 14 06}
$decode_string = {0F BE 03 FF C9 83 F8 20 7D ?? B? 1F [3] 4? 8D 4A E2 EB ?? 3D 80 [3] 7D ?? B? 7F [3] 4? 8D 4A A1 EB ?? B? FF [3] 4? 8D 4A 81}
$constants = {0F B7 05 [3] 00 0F B7 1D [3] 00 83 25 [3] 00 00 89 05 [3] 00 0F B7 05 [3] 00 89 1D [3] 00 89 05 [3] 00 33 C0 4? 8D 4D}
condition:
uint16( 0 ) == 0x5A4D and 2 of them
}
Strings (3 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $sboxinit | hex | {0F BE 02 4? 8D 05 [-] 4? 8D 4D ?? E8 [3] 00 33 F6 4? 8D 5D ?? 4? 63 F8 8B 45 ?? B? B1 E3 14 06} | |
| $decode_string | hex | {0F BE 03 FF C9 83 F8 20 7D ?? B? 1F [3] 4? 8D 4A E2 EB ?? 3D 80 [3] 7D ?? B? 7F [3] 4? 8D 4A A1 EB ?? B? FF [3] 4? 8D 4A 81} | |
| $constants | hex | {0F B7 05 [3] 00 0F B7 1D [3] 00 83 25 [3] 00 00 89 05 [3] 00 0F B7 05 [3] 00 89 1D [3] 00 89 05 [3] 00 33 C0 4? 8D 4D} |
Condition
uint16( 0 ) == 0x5A4D and 2 of themIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- At least 2 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).
- c9c1b06cb9c9bd6fc4451f5e2847a1f9524bb2870d7bb6f0ee09b9dd4e3e4c84
Licence & attribution
Author: enzok
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: e6d395d5-65ba-5efb-bcbc-c6d56a96f0c1
Metadata
| cape_type | Carbanak Payload |
|---|
Tags:FILE
Related rules
- MalwareMalpedia signator rules· Felix Bilstein - yara-signator at cocacoding dot com· 2026-05-04
- MalwareCAPE Sandbox (CAPEv2)· enzok· 2025-09-02
- MalwareCAPE Sandbox (CAPEv2)· enzok· 2025-09-02
- MalwareCAPE Sandbox (CAPEv2)· enzok· 2024-01-18
- MalwareCAPE Sandbox (CAPEv2)· enzok· 2024-01-18
- MalwareCAPE Sandbox (CAPEv2)· enzok· 2024-10-29
- MalwareCAPE Sandbox (CAPEv2)· enzok· 2022-04-21
- MalwareCAPE Sandbox (CAPEv2)· enzok· 2024-10-29