Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_BAT_OBFUSC_Jul24_3

Detects indicators of obfuscation in Windows Batch files

Suspicious / huntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Florian Roth
Date
2024-07-12
Modified
2024-12-12
Score / Quality
70 / 85

What this rule detects

Detects indicators of obfuscation in Windows Batch files

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

Summary generated from the rule's metadata and condition.

Rule source

susp-bat-obfusc-jul24-3.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_BAT_OBFUSC_Jul24_3 : FILE
{
	meta:
		description = "Detects indicators of obfuscation in Windows Batch files"
		author = "Florian Roth"
		id = "a484ed03-8588-55e7-9674-b1208e14eb3f"
		date = "2024-07-12"
		modified = "2024-12-12"
		reference = "https://x.com/0xToxin/status/1811656147943752045"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/susp_bat_obfusc_jul24.yar#L37-L54"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "ecbe7850349f0368620ff4294e5d0ca277983799eed510f8bf8abe4d4c192197"
		score = 70
		quality = 85
		tags = "FILE"

	strings:
		$s1 = "% \\\\%"
		$s2 = { 3D ?? 26 26 73 65 74 20 }

	condition:
		filesize < 300KB and all of them
}

Strings (2 patterns)

IdentifierTypeValueModifiers
$s1text"% \\\\%"
$s2hex{ 3D ?? 26 26 73 65 74 20 }

Condition

filesize < 300KB and all of them

In plain words (Heuristic)

  • The file must be smaller than 300KB (a cheap guard that skips large files).
  • 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: Florian Roth

Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: a484ed03-8588-55e7-9674-b1208e14eb3f

Tags:FILE