Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_TOOL_Sliver

Detects Sliver implant cross-platform adversary emulation/red team

Suspicious / huntingditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-09-25
Score / Quality
75 / 75

What this rule detects

Detects Sliver implant cross-platform adversary emulation/red team

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

indicator-tool-sliver.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_TOOL_Sliver : FILE
{
	meta:
		description = "Detects Sliver implant cross-platform adversary emulation/red team"
		author = "ditekSHen"
		id = "e0c5404b-8e6b-5c3a-9e37-56012c3802dd"
		date = "2020-11-06"
		modified = "2024-09-25"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_tools.yar#L882-L900"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "4f9442b74c84c7b4a8fcf93de2919d12efe2f41d0b4e8514b43822fba0962af2"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "github.com/bishopfox/sliver/protobuf/sliverpbb." ascii
		$s1 = ".commonpb.ResponseR" ascii
		$s2 = ".PortfwdProtocol" ascii
		$s3 = ".WGTCPForwarder" ascii
		$s4 = ".WGSocksServerR" ascii
		$s5 = ".PivotEntryR" ascii
		$s6 = ".BackdoorReq" ascii
		$s7 = ".ProcessDumpReq" ascii
		$s8 = ".InvokeSpawnDllReq" ascii
		$s9 = ".SpawnDll" ascii
		$s10 = ".TCPPivotReq" ascii

	condition:
		( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0x457f or uint16( 0 ) == 0xfacf ) and ( 1 of ( $x* ) or 5 of ( $s* ) )
}

Strings (11 patterns)

IdentifierTypeValueModifiers
$x1text"github.com/bishopfox/sliver/protobuf/sliverpbb."ascii
$s1text".commonpb.ResponseR"ascii
$s2text".PortfwdProtocol"ascii
$s3text".WGTCPForwarder"ascii
$s4text".WGSocksServerR"ascii
$s5text".PivotEntryR"ascii
$s6text".BackdoorReq"ascii
$s7text".ProcessDumpReq"ascii
$s8text".InvokeSpawnDllReq"ascii
$s9text".SpawnDll"ascii
$s10text".TCPPivotReq"ascii

Condition

( uint16( 0 ) == 0x5a4d or uint16( 0 ) == 0x457f or uint16( 0 ) == 0xfacf ) and ( 1 of ( $x* ) or 5 of ( $s* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 1 patterns in ( $x* ) must match.
  • At least 5 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: ditekSHen

Source repository: ditekSHen detection @ e76c93dcde

Licence: BSD 2-Clause License (repository licence)

Copyright notice: Copyright 2021 by ditekSHen (https://github.com/ditekshen/detection).

Original rule

Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.

Rule id: e0c5404b-8e6b-5c3a-9e37-56012c3802dd

Tags:FILE