YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Stormkitty
Detects StormKitty infostealer
- 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:
= "Detects StormKitty infostealer"
= "ditekSHen"
= "a061a1c0-9ed5-5048-85df-4d7ed6995e92"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L2252-L2269"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "5d139aad6932f177cd14e0356f822ad68ddc659ea4fabd2fd2fbcbc8bad58888"
= 75
= 75
= "FILE"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | text | "\\ARTIKA\\Videos\\Chrome-Password-Recovery" | ascii |
| $x2 | text | "https://github.com/LimerBoy/StormKitty" | fullword ascii |
| $x3 | text | "StormKitty" | fullword ascii |
| $s1 | text | "GetBSSID" | fullword ascii |
| $s2 | text | "GetAntivirus" | fullword ascii |
| $s3 | text | "C:\\Users\\Public\\credentials.txt" | fullword wide |
| $s4 | text | "^([a-zA-Z0-9_\\-\\.]+)@([a-zA-Z0-9_\\-\\.]+)\\.([a-zA-Z]{2,5})$" | fullword wide |
| $s5 | text | "BCrypt.BCryptGetProperty() (get size) failed with status code:{0}" | fullword wide |
| $s6 | text | "\"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.
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).
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_sig | MALWARE.Win.Trojan.StormKitty |
|---|
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2023-03-29
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-04-20
- Hack toolSignature Base (Florian Roth / Nextron)· Arnim Rupp (https://github.com/ruppde)· 2020-12-13
- MalwareditekSHen detection· ditekSHen· 2034-02-17
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06