Skip to content

YARA · CAPE Sandbox (CAPEv2)

CAPE_Defendnot

Defendnot Payload

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

defendnot.yarGNU General Public License v3.0
rule CAPE_Defendnot : FILE
{
	meta:
		description = "Defendnot Payload"
		author = "kevoreilly"
		id = "415181b5-1d12-57d8-9849-07ed340ade54"
		date = "2026-09-22"
		modified = "2026-09-22"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/data/yara/CAPE/Defendnot.yar#L1-L15"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		hash = "b0870e105c7ad37fb0bdcb9305279b2943810d55300e8721eb64bdaa588cc84e"
		logic_hash = "77bdd1891d42947b254ffb0b274071e92e7fb7c62bdaa31793258a23a495e477"
		score = 75
		quality = 70
		tags = "FILE"
		cape_type = "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)

IdentifierTypeValueModifiers
$string1text"defendnot"
$string2text"Got HRESULT={:#x} at\n{}:{}"
$string3text"init: {:#x}"
$string4text"AV Name can not be empty!"

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

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

Original rule

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

Tags:FILE