Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Implant_Win_Sliver_Dll

Detect the Sliver DLL based on export names (standalone and process/memory dumps)

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X (with warnings)
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.

implant-win-sliver-dll.yarDetection Rule License 1.1
import "pe"

rule SEKOIA_Implant_Win_Sliver_Dll : FILE
{
	meta:
		description = "Detect the Sliver DLL based on export names (standalone and process/memory dumps)"
		author = "Sekoia.io"
		id = "41d83011-a08b-4245-b633-79fe6afaa4d2"
		date = "2021-11-08"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/implant_win_sliver_dll.yar#L3-L32"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "251a123fe70338d18c9bc9fb9e0b0d542f2b94203bee8537244e62fa102f371b"
		score = 75
		quality = 80
		tags = "FILE"
		modification_date = "2021-12-22"
		version = "1.1"
		classification = "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)

IdentifierTypeValueModifiers
$a1text"main.RunSliver"
$a2text"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.

Drop a file here or click to chooseScanned locally with YARA-X. Files up to 200 MB.

Open in editor

References

Licence & attribution

Author: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

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_date2021-12-22
version1.1
classificationTLP:CLEAR

Tags:FILE