Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Linux_UNK01

Detects unknown/unidentified Linux malware

MalwareUNK01ditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 75

What this rule detects

Detects unknown/unidentified Linux malware

Associated malware family: UNK01.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-linux-unk01.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Linux_UNK01 : FILE
{
	meta:
		description = "Detects unknown/unidentified Linux malware"
		author = "ditekSHen"
		id = "24c6ff35-9378-5a6b-90d1-9740917b1b72"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L2815-L2836"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "8bb4822c1c7e0f52726ecafafa696d83c741257587f351360c5295163c245450"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$f1 = "%sresponse.php?status" ascii
		$f2 = "%supstream.php?mid=%s&os=%s" ascii fullword
		$f3 = "%supstream.php?tid=%" ascii
		$f4 = "%sindex.php?token=%.32s&flag=%d&name=%s" ascii fullword
		$f5 = "%sactive_off.php?id=%d&uniqu=%d" ascii fullword
		$s1 = "lock:%i usable num:%i n:%i" fullword ascii
		$s2 = "tid:%.*s tNumber:%i" fullword ascii
		$s3 = "init.php" fullword ascii
		$s4 = "mod_drone" fullword ascii
		$s5 = "new_mid" fullword ascii
		$s6 = "&exists[]=" fullword ascii
		$s7 = "&mod[]=" fullword ascii
		$s8 = "shutdown" fullword ascii
		$s9 = "&mac[]=%02X%02X%02X%02X%02X%02X" fullword ascii

	condition:
		uint16( 0 ) == 0x457f and ( 3 of ( $f* ) or 6 of ( $s* ) )
}

Strings (14 patterns)

IdentifierTypeValueModifiers
$f1text"%sresponse.php?status"ascii
$f2text"%supstream.php?mid=%s&os=%s"ascii fullword
$f3text"%supstream.php?tid=%"ascii
$f4text"%sindex.php?token=%.32s&flag=%d&name=%s"ascii fullword
$f5text"%sactive_off.php?id=%d&uniqu=%d"ascii fullword
$s1text"lock:%i usable num:%i n:%i"fullword ascii
$s2text"tid:%.*s tNumber:%i"fullword ascii
$s3text"init.php"fullword ascii
$s4text"mod_drone"fullword ascii
$s5text"new_mid"fullword ascii
$s6text"&exists[]="fullword ascii
$s7text"&mod[]="fullword ascii
$s8text"shutdown"fullword ascii
$s9text"&mac[]=%02X%02X%02X%02X%02X%02X"fullword ascii

Condition

uint16( 0 ) == 0x457f and ( 3 of ( $f* ) or 6 of ( $s* ) )

In plain words (Heuristic)

  • At least 3 patterns in ( $f* ) must match.
  • At least 6 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: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

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

Rule id: 24c6ff35-9378-5a6b-90d1-9740917b1b72

Tags:FILE