Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Kitty

Detects HelloKitty ransomware, triggers on FIVEHANDS

MalwareKittyditekSHen 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 HelloKitty ransomware, triggers on FIVEHANDS

Associated malware family: Kitty.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-kitty.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Kitty : FILE
{
	meta:
		description = "Detects HelloKitty ransomware, triggers on FIVEHANDS"
		author = "ditekSHen"
		id = "4147294a-7eff-595a-ad4f-8a84ffff960f"
		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#L4829-L4847"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "3a36755c81ec70c127bb73448fc29325444b85b5f0704327fc81975c2af2e99e"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "Kitty" wide
		$s2 = "-path" fullword wide
		$s3 = "select * from Win32_ShadowCopy" fullword wide
		$s4 = "Win32_ShadowCopy.ID='%s'" fullword wide
		$s5 = "programdata" fullword wide
		$s6 = "$recycle.bin" fullword wide
		$s7 = ".crypt" fullword wide
		$s8 = "%s/secret/%S" wide
		$s9 = "decrypts3nln3tic.onion" wide
		$n1 = "read_me_lkd.txt" wide
		$n2 = "DECRYPT_NOTE.txt" wide

	condition:
		uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or 1 of ( $n* ) and 4 of ( $s* ) )
}

Strings (11 patterns)

IdentifierTypeValueModifiers
$s1text"Kitty"wide
$s2text"-path"fullword wide
$s3text"select * from Win32_ShadowCopy"fullword wide
$s4text"Win32_ShadowCopy.ID='%s'"fullword wide
$s5text"programdata"fullword wide
$s6text"$recycle.bin"fullword wide
$s7text".crypt"fullword wide
$s8text"%s/secret/%S"wide
$s9text"decrypts3nln3tic.onion"wide
$n1text"read_me_lkd.txt"wide
$n2text"DECRYPT_NOTE.txt"wide

Condition

uint16( 0 ) == 0x5a4d and ( 5 of ( $s* ) or 1 of ( $n* ) and 4 of ( $s* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 5 patterns in ( $s* ) must match.
  • At least 1 patterns in ( $n* ) must match.
  • At least 4 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: 4147294a-7eff-595a-ad4f-8a84ffff960f

Tags:FILE