Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_PPT_Mastermana

Detects known malicious pattern (MasterMana) in PowerPoint documents.

Suspicious / huntingditekSHen detectionBSD 2-Clause LicenseCompiles with YARA-X
Author
ditekSHen
Date
2020-11-06
Modified
2024-09-06
Score / Quality
75 / 71

What this rule detects

Detects known malicious pattern (MasterMana) in PowerPoint documents.

It defines 13 patterns (12 text, 1 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

indicator-ppt-mastermana.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_PPT_Mastermana : FILE
{
	meta:
		description = "Detects known malicious pattern (MasterMana) in PowerPoint documents."
		author = "ditekSHen"
		id = "8e9b8185-6211-54c6-946d-b16f2226312a"
		date = "2020-11-06"
		modified = "2024-09-06"
		reference = "https://github.com/ditekshen/detection"
		source_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_office.yar#L720-L740"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "f8169e63b22fbbd48de9a63ff228d9d9fb105e95d2ea8a37c0993493515e8b2e"
		score = 75
		quality = 71
		tags = "FILE"

	strings:
		$a1 = "auto_close" ascii nocase
		$a2 = "autoclose" ascii nocase
		$a3 = "auto_open" ascii nocase
		$a4 = "autoopen" ascii nocase
		$vb1 = "\\VBE7.DLL" ascii
		$vb2 = { 41 74 74 72 69 62 75 74 ?? 65 20 56 42 5f 4e 61 6d ?? 65 }
		$clsid = "000204EF-0000-0000-C000-000000000046" wide nocase
		$i1 = "@j.mp/" ascii wide
		$i2 = "j.mp/" ascii wide
		$i3 = "\\pm.j\\\\:" ascii wide
		$i4 = ".zz.ht/" ascii wide
		$i5 = "/pm.j@" ascii wide
		$i6 = "\\pm.j@" ascii wide

	condition:
		uint16( 0 ) == 0xcfd0 and 1 of ( $i* ) and $clsid and 1 of ( $a* ) and 1 of ( $vb* )
}

Strings (13 patterns)

IdentifierTypeValueModifiers
$a1text"auto_close"ascii nocase
$a2text"autoclose"ascii nocase
$a3text"auto_open"ascii nocase
$a4text"autoopen"ascii nocase
$vb1text"\\VBE7.DLL"ascii
$vb2hex{ 41 74 74 72 69 62 75 74 ?? 65 20 56 42 5f 4e 61 6d ?? 65 }
$clsidtext"000204EF-0000-0000-C000-000000000046"wide nocase
$i1text"@j.mp/"ascii wide
$i2text"j.mp/"ascii wide
$i3text"\\pm.j\\\\:"ascii wide
$i4text".zz.ht/"ascii wide
$i5text"/pm.j@"ascii wide
$i6text"\\pm.j@"ascii wide

Condition

uint16( 0 ) == 0xcfd0 and 1 of ( $i* ) and $clsid and 1 of ( $a* ) and 1 of ( $vb* )

In plain words (Heuristic)

  • At least 1 patterns in ( $i* ) must match.
  • At least 1 patterns in ( $a* ) must match.
  • At least 1 patterns in ( $vb* ) must match.
  • Pattern $clsid must be present.

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: 8e9b8185-6211-54c6-946d-b16f2226312a

Tags:FILE