Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Krakenstealer

Detect Kraken infostealer

MalwareKrakenstealerditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
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:
		description = "Detect Kraken infostealer"
		author = "ditekSHen"
		id = "460eb574-99c9-5f78-9efa-7a8808aaaae7"
		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#L11009-L11030"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "7f15823db706e6e51d8ea58fb026efb49f42234255d2f448614dc645d12648bb"
		score = 75
		quality = 73
		tags = "FILE"
		snort = "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)

IdentifierTypeValueModifiers
$x1regex/Kraken(_)?(Stub|Keyboard|Clipboard|GeneratorMachine|PostLogs|Screenshot|Keylogs|Password)/ascii wide
$s1regex/(get|set)_(Clipboard|Keyboard|Screen)Recorder/fullword ascii
$s2regex/Dumping(FileZilla|360_China|Opera|Epic|CocCoc|Thunderbird|Brave)/fullword ascii
$s3text"ScreenPostData"fullword ascii
$s4text"encrypt_data"fullword ascii
$s5text"KeyboardProc"fullword ascii
$s6text"UploadsKeyboard"fullword ascii
$s7text"ClpUploader"fullword ascii
$s8text"StartKeylogger"fullword ascii
$s9text"ClipoDetectedRemover"fullword ascii
$s10text"Disable_Regis"fullword ascii
$s11text"RecordedClips"fullword ascii
$s12text"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.

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: 460eb574-99c9-5f78-9efa-7a8808aaaae7

Metadata

snort923828002

Tags:FILE