Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_HKTL_Bruteratel_Badger_Indicators_Oct22_4

Detects Brute Ratel C4 badger indicators

Hack toolRatelSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Matthew @embee_research, Florian Roth
Date
2022-10-12
Modified
2023-12-05
Score / Quality
75 / 85

What this rule detects

Detects Brute Ratel C4 badger indicators

Associated malware family: Ratel.

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

Summary generated from the rule's metadata and condition.

Rule source

hktl-bruteratel-badger-indicators-oct22-4.yarDetection Rule License 1.1
rule SIGNATURE_BASE_HKTL_Bruteratel_Badger_Indicators_Oct22_4 : FILE
{
	meta:
		description = "Detects Brute Ratel C4 badger indicators"
		author = "Matthew @embee_research, Florian Roth"
		id = "a62d08ae-0fb3-55e9-b6f8-7940f8032e4a"
		date = "2022-10-12"
		modified = "2023-12-05"
		reference = "https://twitter.com/embee_research/status/1580030310778953728"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/hktl_bruteratel_c4_badger.yar#L2-L19"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "9af05225f462c8d4ec1fb14dc06bb789f76b0d818cb82c3dfcd5abc693727f33"
		score = 75
		quality = 85
		tags = "FILE"

	strings:
		$s1 = { b? 89 4d 39 8c }
		$s2 = { b? bd ca 3b d3 }
		$s3 = { b? b2 c1 06 ae }
		$s4 = { b? 74 eb 1d 4d }

	condition:
		filesize < 8000KB and all of ( $s* ) and not uint8( 0 ) == 0x02
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$s1hex{ b? 89 4d 39 8c }
$s2hex{ b? bd ca 3b d3 }
$s3hex{ b? b2 c1 06 ae }
$s4hex{ b? 74 eb 1d 4d }

Condition

filesize < 8000KB and all of ( $s* ) and not uint8( 0 ) == 0x02

In plain words (Heuristic)

  • The file must be smaller than 8000KB (a cheap guard that skips large files).
  • All patterns in ( $s* ) 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: Matthew @embee_research, 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: a62d08ae-0fb3-55e9-b6f8-7940f8032e4a

Tags:FILE

More Ratel rules