Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_S05Kitty

Sector05 Kitty RAT payload

MalwareS05KittyditekSHen 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

Sector05 Kitty RAT payload

Associated malware family: S05Kitty.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-s05kitty.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_S05Kitty : FILE
{
	meta:
		description = "Sector05 Kitty RAT payload"
		author = "ditekSHen"
		id = "3261f6b6-21e7-5195-98db-9607ba530572"
		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#L1024-L1045"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "df2930694671c9ca16f2afeb799704647c9acf32be118706c342347ffe8ceb36"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "Execute Comand" ascii
		$s2 = "InjectExplorer" ascii
		$s3 = "targetProcess = %s" fullword ascii
		$s4 = "Process attach (%s)" fullword ascii
		$s5 = "process name: %s" fullword ascii
		$s6 = "cmd /c %s >%s" fullword ascii
		$s7 = "CmdDown: %s, failed" fullword ascii
		$s8 = "http://%s%s/%s" fullword ascii
		$s9 = "tmp.LOG" fullword ascii
		$x1 = "zerodll.dll" fullword ascii
		$x2 = "OneDll.dll" fullword ascii
		$x3 = "kkd.bat" fullword ascii
		$x4 = "%s\\regsvr32.exe /s \"%s\"" fullword ascii
		$x5 = "\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\fontchk.jse" fullword ascii

	condition:
		uint16( 0 ) == 0x5a4d and ( 8 of ( $s* ) or all of ( $x* ) )
}

Strings (14 patterns)

IdentifierTypeValueModifiers
$s1text"Execute Comand"ascii
$s2text"InjectExplorer"ascii
$s3text"targetProcess = %s"fullword ascii
$s4text"Process attach (%s)"fullword ascii
$s5text"process name: %s"fullword ascii
$s6text"cmd /c %s >%s"fullword ascii
$s7text"CmdDown: %s, failed"fullword ascii
$s8text"http://%s%s/%s"fullword ascii
$s9text"tmp.LOG"fullword ascii
$x1text"zerodll.dll"fullword ascii
$x2text"OneDll.dll"fullword ascii
$x3text"kkd.bat"fullword ascii
$x4text"%s\\regsvr32.exe /s \"%s\""fullword ascii
$x5text"\\Microsoft\\Windows\\Start Menu\\Programs\\Startup\\fontchk.jse"fullword ascii

Condition

uint16( 0 ) == 0x5a4d and ( 8 of ( $s* ) or all of ( $x* ) )

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $x* ) must match.
  • At least 8 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: 3261f6b6-21e7-5195-98db-9607ba530572

Tags:FILE