YARA · ditekSHen detection
DITEKSHEN_MALWARE_Win_Krakenstealer
Detect Kraken infostealer
- Author
- ditekSHen
- Date
- 2020-11-06
- Modified
- 2024-11-01
- Score / Quality
- 75 / 73
What this rule detects
Detect Kraken infostealer
Associated malware family: Krakenstealer.
Targets: Windows PE.
It defines 13 patterns (10 text, 0 hex, 3 regex).
Summary generated from the rule's metadata and condition.
Rule source
malware-win-krakenstealer.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Krakenstealer : FILE
{
meta:
= "Detect Kraken infostealer"
= "ditekSHen"
= "460eb574-99c9-5f78-9efa-7a8808aaaae7"
= "2020-11-06"
= "2024-11-01"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/malware.yar#L11009-L11030"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "7f15823db706e6e51d8ea58fb026efb49f42234255d2f448614dc645d12648bb"
= 75
= 73
= "FILE"
= "923828002"
strings:
$x1 = /Kraken(_)?(Stub|Keyboard|Clipboard|GeneratorMachine|PostLogs|Screenshot|Keylogs|Password)/ ascii wide
$s1 = /(get|set)_(Clipboard|Keyboard|Screen)Recorder/ fullword ascii
$s2 = /Dumping(FileZilla|360_China|Opera|Epic|CocCoc|Thunderbird|Brave)/ fullword ascii
$s3 = "ScreenPostData" fullword ascii
$s4 = "encrypt_data" fullword ascii
$s5 = "KeyboardProc" fullword ascii
$s6 = "UploadsKeyboard" fullword ascii
$s7 = "ClpUploader" fullword ascii
$s8 = "StartKeylogger" fullword ascii
$s9 = "ClipoDetectedRemover" fullword ascii
$s10 = "Disable_Regis" fullword ascii
$s11 = "RecordedClips" fullword ascii
$s12 = "HoneyPotStatus" fullword ascii
condition:
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and 2 of ( $s* ) ) or 9 of ( $s* ) )
}
Strings (13 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $x1 | regex | /Kraken(_)?(Stub|Keyboard|Clipboard|GeneratorMachine|PostLogs|Screenshot|Keylogs|Password)/ | ascii wide |
| $s1 | regex | /(get|set)_(Clipboard|Keyboard|Screen)Recorder/ | fullword ascii |
| $s2 | regex | /Dumping(FileZilla|360_China|Opera|Epic|CocCoc|Thunderbird|Brave)/ | fullword ascii |
| $s3 | text | "ScreenPostData" | fullword ascii |
| $s4 | text | "encrypt_data" | fullword ascii |
| $s5 | text | "KeyboardProc" | fullword ascii |
| $s6 | text | "UploadsKeyboard" | fullword ascii |
| $s7 | text | "ClpUploader" | fullword ascii |
| $s8 | text | "StartKeylogger" | fullword ascii |
| $s9 | text | "ClipoDetectedRemover" | fullword ascii |
| $s10 | text | "Disable_Regis" | fullword ascii |
| $s11 | text | "RecordedClips" | fullword ascii |
| $s12 | text | "HoneyPotStatus" | fullword ascii |
Condition
uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and 2 of ( $s* ) ) or 9 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 2 patterns in ( $s* ) must match.
- At least 9 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.
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: 460eb574-99c9-5f78-9efa-7a8808aaaae7
Metadata
| snort | 923828002 |
|---|
Tags:FILE
Related rules
- 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
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06
- MalwareditekSHen detection· ditekSHen· 2020-11-06