Skip to content

YARA · CAPE Sandbox (CAPEv2)

CAPE_Nitrogenloaderbypass

Nitrogen Loader Exit Bypass

MalwareNitrogenCAPE Sandbox (CAPEv2)GNU General Public License v3.0Compiles with YARA-X
Author
enzok
Date
2024-10-29
Modified
2025-07-23
Score / Quality
75 / 70

What this rule detects

Nitrogen Loader Exit Bypass

Associated malware family: Nitrogen.

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

Summary generated from the rule's metadata and condition.

Rule source

nitrogenloaderbypass.yarGNU General Public License v3.0
rule CAPE_Nitrogenloaderbypass
{
	meta:
		description = "Nitrogen Loader Exit Bypass"
		author = "enzok"
		id = "397b0b79-d569-5a71-bcac-ce0d64f706e6"
		date = "2024-10-29"
		modified = "2025-07-23"
		reference = "https://github.com/kevoreilly/CAPEv2"
		source_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/analyzer/windows/data/yara/NitrogenLoader.yar#L29-L41"
		license_url = "https://github.com/kevoreilly/CAPEv2/blob/6b15e76f28cd83fd1187da6c9aaaad2174255356/LICENSE"
		logic_hash = "3a034d3ddd18723ea1f91814c8c2a2c47a749dfd1496a5d4777d8ff8bfab3457"
		score = 75
		quality = 70
		tags = ""
		cape_options = "bp2=$exit-2,action2=jmp,count=0"

	strings:
		$string1 = "LoadResource"
		$syscall = {48 83 C4 ?? 4? 8B 4C 24 ?? 4? 8B 54 24 ?? 4? 8B 44 24 ?? 4? 8B 4C 24 ?? 4? 89 CA 4? FF E3}
		$exit = {33 C9 E8 [4] E8 [4] 48 8D 84 24 [4] 48 89 44 24 ?? 4? B? E4 00 00 00 4? 8B 05 [4] B? 03 00 00 00 48 8D}

	condition:
		all of them
}

Strings (3 patterns)

IdentifierTypeValueModifiers
$string1text"LoadResource"
$syscallhex{48 83 C4 ?? 4? 8B 4C 24 ?? 4? 8B 54 24 ?? 4? 8B 44 24 ?? 4? 8B 4C 24 ?? 4? 89 CA 4? FF E3}
$exithex{33 C9 E8 [4] E8 [4] 48 8D 84 24 [4] 48 89 44 24 ?? 4? B? E4 00 00 00 4? 8B 05 [4] B? 03 00 00 00 48 8D}

Condition

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: enzok

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: 397b0b79-d569-5a71-bcac-ce0d64f706e6

Metadata

cape_optionsbp2=$exit-2,action2=jmp,count=0

More Nitrogen rules