Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Powerpool_STG1

Detects first stage PowerPool backdoor

MalwarePowerpoolditekSHen 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 first stage PowerPool backdoor

Associated malware family: Powerpool.

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

malware-win-powerpool-stg1.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Powerpool_STG1 : FILE
{
	meta:
		description = "Detects first stage PowerPool backdoor"
		author = "ditekSHen"
		id = "8531c22d-8d71-5794-b9c8-0a4cd81bb2b0"
		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#L2334-L2361"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "9ab00d6e3007743a8bb30fbcdb435ac49101b52face55549ae454c64345caff9"
		score = 75
		quality = 75
		tags = "FILE"
		snort2_sid = "920088"
		snort3_sid = "920086"
		clamav_sig = "MALWARE.Win.Trojan.PowerPool-STG-1"

	strings:
		$s1 = "cmd /c powershell.exe $PSVersionTable.PSVersion > \"%s\"" fullword wide
		$s2 = "cmd /c powershell.exe \"%s\" > \"%s\"" fullword wide
		$s3 = "rar.exe a -r %s.rar -ta%04d%02d%02d%02d%02d%02d -tb%04d%02d%02d%02d%02d%02d" fullword wide
		$s4 = "MyDemonMutex%d" fullword wide
		$s5 = "MyScreen.jpg" fullword wide
		$s6 = "proxy.log" fullword wide
		$s7 = "myjt.exe" fullword wide
		$s8 = "/?id=%s&info=%s" fullword wide
		$s9 = "auto.cfg" fullword ascii
		$s10 = "Mozilla/5.0 (Windows NT 6.1; WOW64)" fullword wide
		$s11 = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)" fullword wide
		$s12 = "CMD COMMAND EXCUTE ERROR!" fullword ascii
		$c1 = "run.afishaonline.eu" fullword wide
		$c2 = "home.Sports-Collectors.com" fullword wide
		$c3 = "about.Sports-Collectors.com" fullword
		$c4 = "179.43.158.15" fullword wide
		$c5 = "185.227.82.35" fullword wide

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

Strings (17 patterns)

IdentifierTypeValueModifiers
$s1text"cmd /c powershell.exe $PSVersionTable.PSVersion > \"%s\""fullword wide
$s2text"cmd /c powershell.exe \"%s\" > \"%s\""fullword wide
$s3text"rar.exe a -r %s.rar -ta%04d%02d%02d%02d%02d%02d -tb%04d%02d%02d%02d%02d%02d"fullword wide
$s4text"MyDemonMutex%d"fullword wide
$s5text"MyScreen.jpg"fullword wide
$s6text"proxy.log"fullword wide
$s7text"myjt.exe"fullword wide
$s8text"/?id=%s&info=%s"fullword wide
$s9text"auto.cfg"fullword ascii
$s10text"Mozilla/5.0 (Windows NT 6.1; WOW64)"fullword wide
$s11text"Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko)"fullword wide
$s12text"CMD COMMAND EXCUTE ERROR!"fullword ascii
$c1text"run.afishaonline.eu"fullword wide
$c2text"home.Sports-Collectors.com"fullword wide
$c3text"about.Sports-Collectors.com"fullword
$c4text"179.43.158.15"fullword wide
$c5text"185.227.82.35"fullword wide

Condition

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

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • All patterns in ( $s* ) must match.
  • At least 1 patterns in ( $c* ) 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: 8531c22d-8d71-5794-b9c8-0a4cd81bb2b0

Metadata

snort2_sid920088
snort3_sid920086
clamav_sigMALWARE.Win.Trojan.PowerPool-STG-1

Tags:FILE

More Powerpool rules