Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Epicenterrat

Detects EpicenterRAT

MalwareEpicenterratditekSHen 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 EpicenterRAT

Associated malware family: Epicenterrat.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-epicenterrat.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Epicenterrat : FILE
{
	meta:
		description = "Detects EpicenterRAT"
		author = "ditekSHen"
		id = "6abe6e94-d7f5-5f88-96a6-a8fad599ef6a"
		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#L6841-L6863"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "e9086dff22e301f57c6a9bdb38fbed8e902d5b8ca20a5e5b3cda56db08d5582e"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$pdb1 = "c:\\Users\\Zombie\\Desktop\\MutantNinja\\" ascii
		$pdb2 = "\\Epicenter Client\\" ascii
		$s1 = "PROCESS_LIST<%SEP%>" fullword wide
		$s2 = "GETREADY_RECV_FILE<%SEP%>" fullword wide
		$s3 = "DISPLAY<%SEP%>" wide
		$s4 = "GETSCREEN<%SEP%>" fullword wide
		$s5 = "dumpImageName" fullword ascii
		$s6 = "dumpLoc" fullword ascii
		$s7 = "EXPECT<%SEP%>filelist<%SEP%>" fullword wide
		$s8 = "<%FSEP%>FOLDER<%FSEP%>-<%SEP%>" fullword wide
		$s9 = "KILLPROC<%SEP%>" fullword wide
		$s10 = "LAUNCHPROC<%SEP%>" fullword wide
		$s11 = "cmd.exe /c start /b " fullword wide
		$s12 = "savservice" fullword wide
		$s13 = "getvrs" fullword ascii

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

Strings (15 patterns)

IdentifierTypeValueModifiers
$pdb1text"c:\\Users\\Zombie\\Desktop\\MutantNinja\\"ascii
$pdb2text"\\Epicenter Client\\"ascii
$s1text"PROCESS_LIST<%SEP%>"fullword wide
$s2text"GETREADY_RECV_FILE<%SEP%>"fullword wide
$s3text"DISPLAY<%SEP%>"wide
$s4text"GETSCREEN<%SEP%>"fullword wide
$s5text"dumpImageName"fullword ascii
$s6text"dumpLoc"fullword ascii
$s7text"EXPECT<%SEP%>filelist<%SEP%>"fullword wide
$s8text"<%FSEP%>FOLDER<%FSEP%>-<%SEP%>"fullword wide
$s9text"KILLPROC<%SEP%>"fullword wide
$s10text"LAUNCHPROC<%SEP%>"fullword wide
$s11text"cmd.exe /c start /b "fullword wide
$s12text"savservice"fullword wide
$s13text"getvrs"fullword ascii

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 1 patterns in ( $pdb* ) 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: 6abe6e94-d7f5-5f88-96a6-a8fad599ef6a

Tags:FILE