Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_MAL_APT_NK_Andariel_Dtrack_Unpacked

Detects DTrack variant used by Andariel

MalwareDtrackSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
CISA.gov (modified by Florian Roth, Nextron Systems)
Date
2024-07-25
Modified
2024-07-26
Score / Quality
75 / 85

What this rule detects

Detects DTrack variant used by Andariel

Associated malware family: Dtrack.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

mal-apt-nk-andariel-dtrack-unpacked.yarDetection Rule License 1.1
rule SIGNATURE_BASE_MAL_APT_NK_Andariel_Dtrack_Unpacked : FILE
{
	meta:
		description = "Detects DTrack variant used by Andariel"
		author = "CISA.gov (modified by Florian Roth, Nextron Systems)"
		id = "0c161275-2b2e-51a4-9e08-c118fb4c8671"
		date = "2024-07-25"
		modified = "2024-07-26"
		reference = "https://www.cisa.gov/news-events/cybersecurity-advisories/aa24-207a"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/apt_nk_andariel_jul24.yar#L370-L393"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		logic_hash = "d8de583fc0de01e6784305d28dbf7cea859a24cf4df1dc59356601bc830e4770"
		score = 75
		quality = 85
		tags = "FILE"

	strings:
		$x_str_cmd_4 = "/c systeminfo > \"%s\" & tasklist > \"%s\" & netstat -naop tcp > \"%s\"" wide
		$x_str_cmd_2 = "/c ping -n 3 127.0.01 > NUL % echo EEE > \"%s\"" wide
		$str_mutex = "MTX_Global"
		$str_cmd_1 = "/c net use \\\\" wide
		$str_cmd_3 = "/c move /y %s \\\\" wide

	condition:
		uint16( 0 ) == 0x5A4D and ( 1 of ( $x* ) or 3 of them )
}

Strings (5 patterns)

IdentifierTypeValueModifiers
$x_str_cmd_4text"/c systeminfo > \"%s\" & tasklist > \"%s\" & netstat -naop tcp > \"%s\""wide
$x_str_cmd_2text"/c ping -n 3 127.0.01 > NUL % echo EEE > \"%s\""wide
$str_mutextext"MTX_Global"
$str_cmd_1text"/c net use \\\\"wide
$str_cmd_3text"/c move /y %s \\\\"wide

Condition

uint16( 0 ) == 0x5A4D and ( 1 of ( $x* ) or 3 of them )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 1 patterns in ( $x* ) must match.
  • At least 3 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: CISA.gov (modified by 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: 0c161275-2b2e-51a4-9e08-c118fb4c8671

Tags:FILE

More Dtrack rules