Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_PUB_MSIEXEC_Remote

detects VB-enable Microsoft Publisher files utilizing Microsoft Installer to retrieve remote files and execute them

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

What this rule detects

detects VB-enable Microsoft Publisher files utilizing Microsoft Installer to retrieve remote files and execute them

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

Summary generated from the rule's metadata and condition.

Rule source

indicator-pub-msiexec-remote.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_PUB_MSIEXEC_Remote : FILE
{
	meta:
		description = "detects VB-enable Microsoft Publisher files utilizing Microsoft Installer to retrieve remote files and execute them"
		author = "ditekSHen"
		id = "518db2bb-174b-54c4-b330-1e8a8e36265d"
		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#L535-L549"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "be5407e6e6e21e77f6de1d3a378996bfc6ce4326986aa03eb152e772bb495184"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$s1 = "Microsoft Publisher" ascii
		$s2 = "msiexec.exe" ascii
		$s3 = "Document_Open" ascii
		$s4 = "/norestart" ascii
		$s5 = "/i http" ascii
		$s6 = "Wscript.Shell" fullword ascii
		$s7 = "\\VBE6.DLL#" wide

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

Strings (7 patterns)

IdentifierTypeValueModifiers
$s1text"Microsoft Publisher"ascii
$s2text"msiexec.exe"ascii
$s3text"Document_Open"ascii
$s4text"/norestart"ascii
$s5text"/i http"ascii
$s6text"Wscript.Shell"fullword ascii
$s7text"\\VBE6.DLL#"wide

Condition

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

In plain words (Heuristic)

  • 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: 518db2bb-174b-54c4-b330-1e8a8e36265d

Tags:FILE