Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Fatalrat

Detects FatalRAT

MalwareFatal RatditekSHen 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 FatalRAT

Associated malware family: Fatal Rat.

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-fatalrat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Fatalrat : FILE
{
	meta:
		description = "Detects FatalRAT"
		author = "ditekSHen"
		id = "f9d0c5dd-ae69-512d-a260-01b9765e10eb"
		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#L6110-L6128"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "fb7f6822aa4ef98e77670d276d06c9a37718bce38d32ce5b53fe67513b107fbe"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$x1 = "XXAcQbcXXfRSScR" fullword ascii
		$s1 = "CHROME_NO_DATA" fullword ascii
		$s2 = "CHROME_UNKNOW" fullword ascii
		$s3 = "-Thread running..." ascii
		$s4 = "InetCpl.cpl,ClearMyTracksByProcess" ascii nocase
		$s5 = "MSAcpi_ThermalZoneTemperature" ascii nocase
		$s6 = "taskkill /f /im rundll32.exe" fullword ascii nocase
		$s7 = "del /s /f %appdata%\\Mozilla\\Firefox" ascii nocase
		$s8 = "\\\\%s\\C$\\" ascii
		$s9 = "fnGetChromeUserInfo" fullword ascii
		$s10 = "SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Svchost" fullword ascii

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

Strings (11 patterns)

IdentifierTypeValueModifiers
$x1text"XXAcQbcXXfRSScR"fullword ascii
$s1text"CHROME_NO_DATA"fullword ascii
$s2text"CHROME_UNKNOW"fullword ascii
$s3text"-Thread running..."ascii
$s4text"InetCpl.cpl,ClearMyTracksByProcess"ascii nocase
$s5text"MSAcpi_ThermalZoneTemperature"ascii nocase
$s6text"taskkill /f /im rundll32.exe"fullword ascii nocase
$s7text"del /s /f %appdata%\\Mozilla\\Firefox"ascii nocase
$s8text"\\\\%s\\C$\\"ascii
$s9text"fnGetChromeUserInfo"fullword ascii
$s10text"SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion\\Svchost"fullword ascii

Condition

uint16( 0 ) == 0x5a4d and ( ( 1 of ( $x* ) and 3 of ( $s* ) ) or 5 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 3 patterns in ( $s* ) must match.
  • At least 5 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: f9d0c5dd-ae69-512d-a260-01b9765e10eb

Tags:FILE