YARA · ditekSHen detection
DITEKSHEN_MALWARE_Linux_UNK02
Detects unknown/unidentified Linux malware
- 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:
= "Detects unknown/unidentified Linux malware"
= "ditekSHen"
= "6e62df0d-d329-5e52-af74-2a1f19dc4cca"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L2838-L2852"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "4cde21932c27fe3c08495f557b5e086b1fb668d8b5508249891828b9ed48edd4"
= 75
= 75
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $rf1 | text | "[]A\\A]A^A_" | ascii |
| $rf2 | text | "[A\\A]A^A_]" | ascii |
| $f1 | text | "/bin/basH" | ascii fullword |
| $f2 | text | "/proc/seH" | ascii fullword |
| $f3 | text | "/dev/ptsH" | ascii fullword |
| $f4 | text | "pqrstuvwxyzabcde" | ascii fullword |
| $f5 | text | "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.
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).
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
Related rules
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06