Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Implant_Any_Sliver

Rule which detects any Sliver implant PE/Dlls/ELFs/MAC-O.

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2021-11-08
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Rule which detects any Sliver implant PE/Dlls/ELFs/MAC-O.

Targets: Windows PE, Linux ELF, macOS Mach-O.

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

Summary generated from the rule's metadata and condition.

Rule source

implant-any-sliver.yarDetection Rule License 1.1
rule SEKOIA_Implant_Any_Sliver : FILE
{
	meta:
		description = "Rule which detects any Sliver implant PE/Dlls/ELFs/MAC-O."
		author = "Sekoia.io"
		id = "4b16f28a-2048-4044-8620-8e7a1651f2b1"
		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_any_sliver.yar#L1-L28"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "c7a2790fd13de0476cfe16ef26b2d4c8775f4f453d076c78975e2c372f03322c"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.1"
		classification = "TLP:CLEAR"

	strings:
		$s1 = ").GetActiveC2" ascii
		$s2 = ").GetVersion" ascii
		$s3 = ").GetReconnectInterval" ascii
		$s4 = ").GetProxyURL" ascii
		$s5 = ").GetPollInterval" ascii

	condition:
		( uint16be( 0 ) == 0x4d5a or uint32be( 0 ) == 0x7f454c46 or uint32be( 0 ) == 0xcffaedfe ) and ( true and filesize < 11MB and filesize > 7MB ) and ( all of ( $s* ) )
}

Strings (5 patterns)

IdentifierTypeValueModifiers
$s1text").GetActiveC2"ascii
$s2text").GetVersion"ascii
$s3text").GetReconnectInterval"ascii
$s4text").GetProxyURL"ascii
$s5text").GetPollInterval"ascii

Condition

( uint16be( 0 ) == 0x4d5a or uint32be( 0 ) == 0x7f454c46 or uint32be( 0 ) == 0xcffaedfe ) and ( true and filesize < 11MB and filesize > 7MB ) and ( all of ( $s* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must start with the ELF header — a Linux/Unix executable.
  • The file must start with a Mach-O / fat binary magic — a macOS executable.
  • The file must be smaller than 11MB (a cheap guard that skips large files).
  • The file must be larger than 7MB.
  • All patterns in ( $s* ) 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.

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: 4b16f28a-2048-4044-8620-8e7a1651f2b1

Metadata

version1.1
classificationTLP:CLEAR

Tags:FILE