YARA · SEKOIA.IO Community
SEKOIA_Implant_Win_Sliver_Dll
Detect the Sliver DLL based on export names (standalone and process/memory dumps)
- Author
- Sekoia.io
- Date
- 2021-11-08
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detect the Sliver DLL based on export names (standalone and process/memory dumps)
Targets: Windows PE.
It defines 2 patterns (2 text, 0 hex, 0 regex). YARA modules used: pe.
YARA-X says: warning[non_bool_expr]: non-boolean expression used as boolean
Summary generated from the rule's metadata and condition.
Rule source
Includes the imports needed to compile it on its own.
import "pe"
rule SEKOIA_Implant_Win_Sliver_Dll : FILE
{
meta:
= "Detect the Sliver DLL based on export names (standalone and process/memory dumps)"
= "Sekoia.io"
= "41d83011-a08b-4245-b633-79fe6afaa4d2"
= "2021-11-08"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/implant_win_sliver_dll.yar#L3-L32"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "251a123fe70338d18c9bc9fb9e0b0d542f2b94203bee8537244e62fa102f371b"
= 75
= 80
= "FILE"
= "2021-12-22"
= "1.1"
= "TLP:CLEAR"
strings:
$a1 = "main.RunSliver"
$a2 = "main.DllInstall"
condition:
( filesize > 8MB and filesize < 11MB and uint16be( 0 ) == 0x4d5a and pe.characteristics & pe.DLL and pe.exports ( "RunSliver" ) and pe.exports ( "DllInstall" ) and pe.exports ( "VoidFunc" ) ) or ( true and ( uint32be( 0 ) == 0x4d444d50 or uint32be( 0 ) == 0x00000000 ) and $a2 in ( @a1 .. @a1 + 100 ) )
}
Strings (2 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $a1 | text | "main.RunSliver" | |
| $a2 | text | "main.DllInstall" |
Condition
( filesize > 8MB and filesize < 11MB and uint16be( 0 ) == 0x4d5a and pe.characteristics & pe.DLL and pe.exports ( "RunSliver" ) and pe.exports ( "DllInstall" ) and pe.exports ( "VoidFunc" ) ) or ( true and ( uint32be( 0 ) == 0x4d444d50 or uint32be( 0 ) == 0x00000000 ) and $a2 in ( @a1 .. @a1 + 100 ) )In plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 11MB (a cheap guard that skips large files).
- The file must be larger than 8MB.
- Pattern $a2 must be found within the range @a1 .. @a1 + 100.
- Uses the pe module.
- Checks exported functions or the DLL name.
- Requires a DLL.
Test this rule in your browser
Drop a file to scan it with this rule using YARA-X compiled to WebAssembly. Nothing is uploaded.
References
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: 41d83011-a08b-4245-b633-79fe6afaa4d2
Metadata
| modification_date | 2021-12-22 |
|---|---|
| version | 1.1 |
| 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