Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Implant_Any_Sliver_Not_Stripped

Rule which detects non stripped Sliver 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 non stripped Sliver PE/Dlls/ELFs/MAC-O.

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

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

Summary generated from the rule's metadata and condition.

Rule source

implant-any-sliver-not-stripped.yarDetection Rule License 1.1
rule SEKOIA_Implant_Any_Sliver_Not_Stripped : FILE
{
	meta:
		description = "Rule which detects non stripped Sliver PE/Dlls/ELFs/MAC-O."
		author = "Sekoia.io"
		id = "35543c7c-c39b-4f96-b37c-1d27736e40fc"
		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_not_stripped.yar#L1-L24"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "5240f3ea1fb421697eeb12eb17d0b31c036b53f39c3a590473d87065b5d28e3e"
		score = 75
		quality = 80
		tags = "FILE"
		modification_date = "2021-12-22"
		version = "1.1"
		classification = "TLP:CLEAR"

	strings:
		$a1 = "github.com/bishopfox/sliver/implant/sliver/"

	condition:
		( uint16be( 0 ) == 0x4d5a or uint32be( 0 ) == 0x7f454c46 or uint32be( 0 ) == 0xcffaedfe ) and filesize < 11MB and filesize > 8MB and #a1 > 200
}

Strings (1 patterns)

IdentifierTypeValueModifiers
$a1text"github.com/bishopfox/sliver/implant/sliver/"

Condition

( uint16be( 0 ) == 0x4d5a or uint32be( 0 ) == 0x7f454c46 or uint32be( 0 ) == 0xcffaedfe ) and filesize < 11MB and filesize > 8MB and #a1 > 200

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 8MB.
  • Pattern $a1 must occur > 200 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.

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: 35543c7c-c39b-4f96-b37c-1d27736e40fc

Metadata

modification_date2021-12-22
version1.1
classificationTLP:CLEAR

Tags:FILE