Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Infostealer_Win_Stormkitty

Finds StormKitty samples (or their variants) based on specific strings

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

What this rule detects

Finds StormKitty samples (or their variants) based on specific strings

Associated malware family: Stormkitty.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

infostealer-win-stormkitty.yarDetection Rule License 1.1
rule SEKOIA_Infostealer_Win_Stormkitty : FILE
{
	meta:
		description = "Finds StormKitty samples (or their variants) based on specific strings"
		author = "Sekoia.io"
		id = "5014d2e5-af5c-4800-ab1e-b57de37a2450"
		date = "2023-03-29"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/infostealer_win_stormkitty.yar#L1-L31"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "57a4603faf6af9742db79f9bc8751f3a5c091b6271998434f0a3b9f5c30cb1e8"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$sk01 = "LimerBoy/StormKitty" ascii wide
		$sk02 = "StormKitty-Latest.log" wide
		$sk03 = "StormKitty.exe" ascii
		$sk04 = "Debug\\StormKitty.pdb" ascii
		$sk05 = "StormKitty.Implant" ascii
		$str01 = "set_sUsername" ascii
		$str02 = "set_sIsSecure" ascii
		$str03 = "set_sExpMonth" ascii
		$str04 = "WritePasswords" ascii
		$str05 = "WriteCookies" ascii
		$str06 = "sChromiumPswPaths" ascii
		$str07 = "sGeckoBrowserPaths" ascii
		$str08 = "Username: {1}" wide
		$str09 = "Password: {2}" wide
		$str10 = "encrypted_key\":\"(.*?)\"" wide

	condition:
		uint16( 0 ) == 0x5A4D and ( ( 1 of ( $sk* ) and 3 of ( $str* ) ) or 7 of ( $str* ) )
}

Strings (15 patterns)

IdentifierTypeValueModifiers
$sk01text"LimerBoy/StormKitty"ascii wide
$sk02text"StormKitty-Latest.log"wide
$sk03text"StormKitty.exe"ascii
$sk04text"Debug\\StormKitty.pdb"ascii
$sk05text"StormKitty.Implant"ascii
$str01text"set_sUsername"ascii
$str02text"set_sIsSecure"ascii
$str03text"set_sExpMonth"ascii
$str04text"WritePasswords"ascii
$str05text"WriteCookies"ascii
$str06text"sChromiumPswPaths"ascii
$str07text"sGeckoBrowserPaths"ascii
$str08text"Username: {1}"wide
$str09text"Password: {2}"wide
$str10text"encrypted_key\":\"(.*?)\""wide

Condition

uint16( 0 ) == 0x5A4D and ( ( 1 of ( $sk* ) and 3 of ( $str* ) ) or 7 of ( $str* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 1 patterns in ( $sk* ) must match.
  • At least 3 patterns in ( $str* ) must match.
  • At least 7 patterns in ( $str* ) 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: 5014d2e5-af5c-4800-ab1e-b57de37a2450

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE

More Stormkitty rules