Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Win_Infostealer_Serpent_Strings

Serpent Stealer string

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

What this rule detects

Serpent Stealer string

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

win-infostealer-serpent-strings.yarDetection Rule License 1.1
rule SEKOIA_Win_Infostealer_Serpent_Strings : FILE
{
	meta:
		description = "Serpent Stealer string"
		author = "Sekoia.io"
		id = "ad9e2366-c95e-4090-a0db-48f3cc325209"
		date = "2023-12-04"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/win_infostealer_serpent_strings.yar#L1-L23"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "5266d1c8228f02e8ac9da5ddd8b968fde0d0e83afa408d405ec4ca50c3453928"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s1 = "User Has SSH Dir." wide
		$s2 = "[+] Executing Wallets" wide
		$s3 = "'serpent' folder" wide
		$s4 = "Buddy Kys!!!" wide
		$s5 = "http://checkip.dyndns.org/" wide
		$s6 = "[+] Target has discord installed" wide
		$s7 = "Target has minecraft." wide

	condition:
		( uint16be( 0 ) == 0x4d5a ) and filesize < 100KB and 5 of them
}

Strings (7 patterns)

IdentifierTypeValueModifiers
$s1text"User Has SSH Dir."wide
$s2text"[+] Executing Wallets"wide
$s3text"'serpent' folder"wide
$s4text"Buddy Kys!!!"wide
$s5text"http://checkip.dyndns.org/"wide
$s6text"[+] Target has discord installed"wide
$s7text"Target has minecraft."wide

Condition

( uint16be( 0 ) == 0x4d5a ) and filesize < 100KB and 5 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be smaller than 100KB (a cheap guard that skips large files).
  • At least 5 patterns in the rule 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: ad9e2366-c95e-4090-a0db-48f3cc325209

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE