Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Linux_UNK02

Detects unknown/unidentified Linux malware

MalwareUNK02ditekSHen 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: UNK02.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-linux-unk02.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Linux_UNK02 : FILE
{
	meta:
		description = "Detects unknown/unidentified Linux malware"
		author = "ditekSHen"
		id = "6e62df0d-d329-5e52-af74-2a1f19dc4cca"
		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#L2838-L2852"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "4cde21932c27fe3c08495f557b5e086b1fb668d8b5508249891828b9ed48edd4"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$rf1 = "[]A\\A]A^A_" ascii
		$rf2 = "[A\\A]A^A_]" ascii
		$f1 = "/bin/basH" ascii fullword
		$f2 = "/proc/seH" ascii fullword
		$f3 = "/dev/ptsH" ascii fullword
		$f4 = "pqrstuvwxyzabcde" ascii fullword
		$f5 = "libnss_%s.so.%d.%d" ascii fullword

	condition:
		uint16( 0 ) == 0x457f and ( all of ( $f* ) and #rf1 > 3 and #rf2 > 3 )
}

Strings (7 patterns)

IdentifierTypeValueModifiers
$rf1text"[]A\\A]A^A_"ascii
$rf2text"[A\\A]A^A_]"ascii
$f1text"/bin/basH"ascii fullword
$f2text"/proc/seH"ascii fullword
$f3text"/dev/ptsH"ascii fullword
$f4text"pqrstuvwxyzabcde"ascii fullword
$f5text"libnss_%s.so.%d.%d"ascii fullword

Condition

uint16( 0 ) == 0x457f and ( all of ( $f* ) and #rf1 > 3 and #rf2 > 3 )

In plain words (Heuristic)

  • All patterns in ( $f* ) must match.
  • Pattern $rf1 must occur > 3 times.
  • Pattern $rf2 must occur > 3 times.

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: 6e62df0d-d329-5e52-af74-2a1f19dc4cca

Tags:FILE