Skip to content

YARA · ditekSHen detection

DITEKSHEN_MALWARE_Win_Pillowmint

PillowMint POS payload

MalwarePillowmintditekSHen 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

PillowMint POS payload

Associated malware family: Pillowmint.

Targets: Windows PE.

It defines 9 patterns (8 text, 0 hex, 1 regex).

Summary generated from the rule's metadata and condition.

Rule source

malware-win-pillowmint.yarBSD 2-Clause License
rule DITEKSHEN_MALWARE_Win_Pillowmint : FILE
{
	meta:
		description = "PillowMint POS payload"
		author = "ditekSHen"
		id = "e3d26a12-45aa-5f5d-997a-f350bc1bea97"
		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#L1267-L1283"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "ed2597fce1c56d2e110790e0eb89834b1bb9f6f52d39105157c9ffe2ede6cc7a"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "system32\\sysvols\\" ascii nocase
		$s2 = "Sysnative\\sysvols\\" ascii nocase
		$s3 = "critical.log" fullword ascii
		$s4 = "log.log" fullword ascii
		$s5 = "commands.txt" fullword ascii
		$s6 = "_EV0LuTi0N_" ascii
		$s7 = /(file|reg)\scmd:/ fullword ascii
		$s8 = "dumper_nologs_" ascii
		$s9 = "ReflectiveLoader" ascii

	condition:
		uint16( 0 ) == 0x5a4d and 6 of them
}

Strings (9 patterns)

IdentifierTypeValueModifiers
$s1text"system32\\sysvols\\"ascii nocase
$s2text"Sysnative\\sysvols\\"ascii nocase
$s3text"critical.log"fullword ascii
$s4text"log.log"fullword ascii
$s5text"commands.txt"fullword ascii
$s6text"_EV0LuTi0N_"ascii
$s7regex/(file|reg)\scmd:/fullword ascii
$s8text"dumper_nologs_"ascii
$s9text"ReflectiveLoader"ascii

Condition

uint16( 0 ) == 0x5a4d and 6 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • At least 6 patterns in the rule 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: e3d26a12-45aa-5f5d-997a-f350bc1bea97

Tags:FILE