Skip to content

YARA · CAPE Sandbox (CAPEv2)

CAPE_Singlestepantihook

Single-step anti-hook Bypass

GenericCAPE Sandbox (CAPEv2)GNU General Public License v3.0Compiles with YARA-X
Author
kevoreilly
Date
2021-08-26
Score / Quality
75 / 70

What this rule detects

Single-step anti-hook Bypass

It defines 1 patterns (0 text, 1 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

singlestepantihook.yarGNU General Public License v3.0
rule CAPE_Singlestepantihook
{
	meta:
		description = "Single-step anti-hook Bypass"
		author = "kevoreilly"
		id = "f7aca40b-d231-543b-81f3-5f4524abab78"
		date = "2021-08-26"
		modified = "2021-08-26"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/analyzer/windows/data/yara/SingleStepAntiHook.yar#L1-L11"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		logic_hash = "fc9f36b0ecc13192fe8b6caaff256ac52c1f14480223d629a38ba84e90dd0809"
		score = 75
		quality = 70
		tags = ""
		cape_options = "bp0=$antihook+6,action0=skip,count=0"

	strings:
		$antihook = {FF D? 83 EC 08 9C 81 0C 24 00 01 00 00 9D}

	condition:
		any of them
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$antihookhex{FF D? 83 EC 08 9C 81 0C 24 00 01 00 00 9D}

Condition

any of them

In plain words (Heuristic)

  • At least one pattern 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

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: f7aca40b-d231-543b-81f3-5f4524abab78

Metadata

cape_optionsbp0=$antihook+6,action0=skip,count=0