YARA · CAPE Sandbox (CAPEv2)
CAPE_Heavenssyscall
Bypass variants of heaven's gate direct syscalls
- 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:
= "Bypass variants of heaven's gate direct syscalls"
= "kevoreilly"
= "7c60102a-ac8b-5e28-8dbb-4b6c3f4cddff"
= "2024-03-25"
= "2024-03-25"
= "https://github.com/kevoreilly/CAPEv2"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/analyzer/windows/data/yara/HeavensSyscall.yar#L1-L13"
= "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
= "aeb981fcba0936ff8b1be4c601445fd45e5d3b74856a9439d351edd57f5a50c3"
= 75
= 70
= "FILE"
= "clear,br0=$gate1-9,action1=seteax:0,count=0,sysbp=$sysenter+10"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $gate1 | hex | {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 | hex | {68 [4] E8 [4] E8 [4] C2 ?? 00 CC CC CC CC CC CC CC CC} |
Condition
uint16( 0 ) == 0x8B55 and all of themIn 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.
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.
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_options | clear,br0=$gate1-9,action1=seteax:0,count=0,sysbp=$sysenter+10 |
|---|---|
| packed | 2950b4131886e06bdb83ab1611b71273df23b0d31a4d8eb6baddd33327d87ffa |
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