Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Stormkitty

Detects StormKitty infostealer

MalwareStormkittyditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-11-01
Score / Quality
75 / 75

What this rule detects

Detects StormKitty infostealer

Associated malware family: Stormkitty.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-stormkitty.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Stormkitty : FILE
{
	meta:
		description = "Detects StormKitty infostealer"
		author = "ditekSHen"
		id = "a061a1c0-9ed5-5048-85df-4d7ed6995e92"
		date = "2020-11-06"
		modified = "2024-11-01"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L2252-L2269"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "5d139aad6932f177cd14e0356f822ad68ddc659ea4fabd2fd2fbcbc8bad58888"
		score = 75
		quality = 75
		tags = "FILE"
		clamav_sig = "MALWARE.Win.Trojan.StormKitty"

	strings:
		$x1 = "\\ARTIKA\\Videos\\Chrome-Password-Recovery" ascii
		$x2 = "https://github.com/LimerBoy/StormKitty" fullword ascii
		$x3 = "StormKitty" fullword ascii
		$s1 = "GetBSSID" fullword ascii
		$s2 = "GetAntivirus" fullword ascii
		$s3 = "C:\\Users\\Public\\credentials.txt" fullword wide
		$s4 = "^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$" fullword wide
		$s5 = "BCrypt.BCryptGetProperty() (get size) failed with status code:{0}" fullword wide
		$s6 = "\"encrypted_key\":\"(.*?)\"" fullword wide

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

Strings (9 patterns)

IdentifierTypeValueModifiers
$x1text"\\ARTIKA\\Videos\\Chrome-Password-Recovery"ascii
$x2text"https://github.com/LimerBoy/StormKitty"fullword ascii
$x3text"StormKitty"fullword ascii
$s1text"GetBSSID"fullword ascii
$s2text"GetAntivirus"fullword ascii
$s3text"C:\\Users\\Public\\credentials.txt"fullword wide
$s4text"^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$"fullword wide
$s5text"BCrypt.BCryptGetProperty() (get size) failed with status code:{0}"fullword wide
$s6text"\"encrypted_key\":\"(.*?)\""fullword wide

Condition

uint16( 0 ) == 0x5a4d and ( 2 of ( $x* ) or 5 of ( $s* ) or ( 3 of ( $s* ) and 1 of ( $x* ) ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 2 patterns in ( $x* ) must match.
  • At least 5 patterns in ( $s* ) must match.
  • At least 3 patterns in ( $s* ) must match.
  • At least 1 patterns in ( $x* ) 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: a061a1c0-9ed5-5048-85df-4d7ed6995e92

Metadata

clamav_sigMALWARE.Win.Trojan.StormKitty

Tags:FILE

More Stormkitty rules