YARA · CAPE Sandbox (CAPEv2)
CAPE_Defendnot
Defendnot Payload
- Author
- kevoreilly
- Date
- 2026-09-22
- Score / Quality
- 75 / 70
What this rule detects
Defendnot Payload
Targets: Windows PE.
It defines 4 patterns (4 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rule CAPE_Defendnot : FILE
{
meta:
= "Defendnot Payload"
= "kevoreilly"
= "415181b5-1d12-57d8-9849-07ed340ade54"
= "2026-09-22"
= "2026-09-22"
= "https://github.com/kevoreilly/CAPEv2"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/Defendnot.yar#L1-L15"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
= "b0870e105c7ad37fb0bdcb9305279b2943810d55300e8721eb64bdaa588cc84e"
= "77bdd1891d42947b254ffb0b274071e92e7fb7c62bdaa31793258a23a495e477"
= 75
= 70
= "FILE"
= "Defendnot Payload"
strings:
$string1 = "defendnot"
$string2 = "Got HRESULT={:#x} at\n{}:{}"
$string3 = "init: {:#x}"
$string4 = "AV Name can not be empty!"
condition:
uint16( 0 ) == 0x5a4d and all of them
}
Strings (4 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $string1 | text | "defendnot" | |
| $string2 | text | "Got HRESULT={:#x} at\n{}:{}" | |
| $string3 | text | "init: {:#x}" | |
| $string4 | text | "AV Name can not be empty!" |
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).
- b0870e105c7ad37fb0bdcb9305279b2943810d55300e8721eb64bdaa588cc84e
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: 415181b5-1d12-57d8-9849-07ed340ade54
Metadata
| cape_type | Defendnot Payload |
|---|
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