Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_XML_Squiblydoo_1

detects Squiblydoo variants extracted from exploit RTF documents.

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 Squiblydoo variants extracted from exploit RTF documents.

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

Summary generated from the rule's metadata and condition.

Rule source

indicator-xml-squiblydoo-1.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_XML_Squiblydoo_1 : FILE
{
	meta:
		description = "detects Squiblydoo variants extracted from exploit RTF documents."
		author = "ditekSHen"
		id = "cac326ab-cc31-59c1-bd12-285db1675695"
		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#L608-L622"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "b52ebd76dd4e60f6bd5cb19fed3a72b6aeb90dea95f0d1be61dcfff39ea674ae"
		score = 75
		quality = 75
		tags = "FILE"

	strings:
		$slt = "<scriptlet" ascii
		$ws1 = "CreateObject(\"WScript\" & \".Shell\")" ascii
		$ws2 = "CreateObject(\"WScript.Shell\")" ascii
		$ws3 = "ActivexObject(\"WScript.Shell\")" ascii
		$r1 = "[\"run\"]" nocase ascii
		$r2 = ".run \"cmd" nocase ascii
		$r3 = ".run chr(" nocase ascii

	condition:
		( uint32( 0 ) == 0x4d583f3c or uint32( 0 ) == 0x6d783f3c ) and $slt and 1 of ( $ws* ) and 1 of ( $r* )
}

Strings (7 patterns)

IdentifierTypeValueModifiers
$slttext"<scriptlet"ascii
$ws1text"CreateObject(\"WScript\" & \".Shell\")"ascii
$ws2text"CreateObject(\"WScript.Shell\")"ascii
$ws3text"ActivexObject(\"WScript.Shell\")"ascii
$r1text"[\"run\"]"nocase ascii
$r2text".run \"cmd"nocase ascii
$r3text".run chr("nocase ascii

Condition

( uint32( 0 ) == 0x4d583f3c or uint32( 0 ) == 0x6d783f3c ) and $slt and 1 of ( $ws* ) and 1 of ( $r* )

In plain words (Heuristic)

  • At least 1 patterns in ( $ws* ) must match.
  • At least 1 patterns in ( $r* ) must match.
  • Pattern $slt 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: cac326ab-cc31-59c1-bd12-285db1675695

Tags:FILE