Skip to content

YARA · CAPE Sandbox (CAPEv2)

CAPE_Heavenssyscall

Bypass variants of heaven's gate direct syscalls

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

What this rule detects

Bypass variants of heaven's gate direct syscalls

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

Summary generated from the rule's metadata and condition.

Rule source

heavenssyscall.yarGNU General Public License v3.0
rule CAPE_Heavenssyscall : FILE
{
	meta:
		description = "Bypass variants of heaven's gate direct syscalls"
		author = "kevoreilly"
		id = "7c60102a-ac8b-5e28-8dbb-4b6c3f4cddff"
		date = "2024-03-25"
		modified = "2024-03-25"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/analyzer/windows/data/yara/HeavensSyscall.yar#L1-L13"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		logic_hash = "aeb981fcba0936ff8b1be4c601445fd45e5d3b74856a9439d351edd57f5a50c3"
		score = 75
		quality = 70
		tags = "FILE"
		cape_options = "clear,br0=$gate1-9,action1=seteax:0,count=0,sysbp=$sysenter+10"
		packed = "2950b4131886e06bdb83ab1611b71273df23b0d31a4d8eb6baddd33327d87ffa"

	strings:
		$gate1 = {00 00 00 00 74 24 8D 45 F8 50 6A FF FF 95 [4] 85 C0 74 08 8B 4D F8 89 4D FC EB 07 C7 45 FC 00 00 00 00 8B 45 FC EB 02 33 C0 8B E5 5D C2 C0}
		$sysenter = {68 [4] E8 [4] E8 [4] C2 ?? 00 CC CC CC CC CC CC CC CC}

	condition:
		uint16( 0 ) == 0x8B55 and all of them
}

Strings (2 patterns)

IdentifierTypeValueModifiers
$gate1hex{00 00 00 00 74 24 8D 45 F8 50 6A FF FF 95 [4] 85 C0 74 08 8B 4D F8 89 4D FC EB 07 C7 45 FC 00 00 00 00 8B 45 FC EB 02 33 C0 8B E5 5D C2 C0}
$sysenterhex{68 [4] E8 [4] E8 [4] C2 ?? 00 CC CC CC CC CC CC CC CC}

Condition

uint16( 0 ) == 0x8B55 and all of them

In plain words (Heuristic)

  • 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

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: 7c60102a-ac8b-5e28-8dbb-4b6c3f4cddff

Metadata

cape_optionsclear,br0=$gate1-9,action1=seteax:0,count=0,sysbp=$sysenter+10
packed2950b4131886e06bdb83ab1611b71273df23b0d31a4d8eb6baddd33327d87ffa

Tags:FILE