Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_RAR_Ntdsdit

Detects suspicious RAR file that contains ntds.dit or SAM export

Suspicious / huntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Florian Roth (Nextron Systems)
Date
2019-12-16
Modified
2022-11-15
Score / Quality
70 / 85

What this rule detects

Detects suspicious RAR file that contains ntds.dit or SAM export

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

Summary generated from the rule's metadata and condition.

Rule source

susp-rar-ntdsdit.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_RAR_Ntdsdit : FILE
{
	meta:
		description = "Detects suspicious RAR file that contains ntds.dit or SAM export"
		author = "Florian Roth (Nextron Systems)"
		id = "da9e160f-3213-5027-bb0f-bf80ab3d5318"
		date = "2019-12-16"
		modified = "2022-11-15"
		reference = "https://www.cybereason.com/blog/operation-soft-cell-a-worldwide-campaign-against-telecommunications-providers"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/gen_rar_exfil.yar#L2-L18"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "12e527b040e02f573f2a6e0fac4ff99ec441bf189c9bb7e1f763619c079a5bfa"
		score = 70
		quality = 85
		tags = "FILE"

	strings:
		$x1 = "ntds.dit0" ascii fullword
		$x2 = { 0? 53 41 4D 30 01 00 03 }
		$x3 = { 0? 73 61 6D 30 01 00 03 }

	condition:
		uint32( 0 ) == 0x21726152 and 1 of them
}

Strings (3 patterns)

IdentifierTypeValueModifiers
$x1text"ntds.dit0"ascii fullword
$x2hex{ 0? 53 41 4D 30 01 00 03 }
$x3hex{ 0? 73 61 6D 30 01 00 03 }

Condition

uint32( 0 ) == 0x21726152 and 1 of them

In plain words (Heuristic)

  • The file must start with the RAR magic.
  • At least 1 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 (Nextron Systems)

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: da9e160f-3213-5027-bb0f-bf80ab3d5318

Tags:FILE