YARA · SEKOIA.IO Community
SEKOIA_Rootkit_Diamorphine_Strings
Detects Diamorphine linux rootkit based on strings
- Author
- Sekoia.io
- Date
- 2024-10-21
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects Diamorphine linux rootkit based on strings
Targets: Linux ELF.
It defines 2 patterns (2 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
rootkit-diamorphine-strings.yarDetection Rule License 1.1
rule SEKOIA_Rootkit_Diamorphine_Strings : FILE
{
meta:
= "Detects Diamorphine linux rootkit based on strings"
= "Sekoia.io"
= "5a28be5c-9a57-4204-a7cc-42dfcaa2c2da"
= "2024-10-21"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/rootkit_diamorphine_strings.yar#L1-L31"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "622675e83bab630adc0f1c6c46c4d6d1"
= "013b23213975d2646e2435f058afcacf"
= "f068e83721f10ad74bb6f386a4375a91"
= "ba9d6a6bbde602fd414cea09fcbd1aa0"
= "fdd86788e295010c4e61bf6b589f340e"
= "0d396c1763503b35a7f601831bd684de"
= "66b8955188a3bda7ecdcd51cfd360313"
= "1e4fd8c6bf0e381ac395d9bff1f98a31"
= "ce08ce2b8bc1718052f5d0316e3e71b7"
= "94982037875d4fdb17681866afc12ade"
= "4fa2fe9ccde3e6bd4956e2b93ca5fcb6"
= "644c4ce0bbe4f1f1e3aae537a111d5b8"
= "fb7d594621fbb4f9bdb0eb74f6090ecd"
= "9faf1493164e734f533f0ecfb1737a98"
= "33d48b6c66715ab67a059ab940d759ff"
= "70e2e9155181a717f1c2483a748d5991488f0ba7371a2b3c9cfada2ecc5812f9"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "LKM rootkit" ascii fullword
$ = "m0nad"
condition:
uint32be( 0 ) == 0x7f454c46 and all of them
}
Strings (2 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | "LKM rootkit" | ascii fullword |
| $ | text | "m0nad" |
Condition
uint32be( 0 ) == 0x7f454c46 and all of themIn plain words (Heuristic)
- The file must start with the ELF header — a Linux/Unix executable.
- All 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.
References
Sample hashes
Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).
- 622675e83bab630adc0f1c6c46c4d6d1
- 013b23213975d2646e2435f058afcacf
- f068e83721f10ad74bb6f386a4375a91
- ba9d6a6bbde602fd414cea09fcbd1aa0
- fdd86788e295010c4e61bf6b589f340e
- 0d396c1763503b35a7f601831bd684de
- 66b8955188a3bda7ecdcd51cfd360313
- 1e4fd8c6bf0e381ac395d9bff1f98a31
- ce08ce2b8bc1718052f5d0316e3e71b7
- 94982037875d4fdb17681866afc12ade
- 4fa2fe9ccde3e6bd4956e2b93ca5fcb6
- 644c4ce0bbe4f1f1e3aae537a111d5b8
- fb7d594621fbb4f9bdb0eb74f6090ecd
- 9faf1493164e734f533f0ecfb1737a98
- 33d48b6c66715ab67a059ab940d759ff
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: 5a28be5c-9a57-4204-a7cc-42dfcaa2c2da
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20