Skip to content

YARA · ditekSHen detection

DITEKSHEN_INDICATOR_OLE_Suspicious_Reverse

detects OLE documents containing VB scripts with reversed suspicious strings

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

What this rule detects

detects OLE documents containing VB scripts with reversed suspicious strings

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

Summary generated from the rule's metadata and condition.

Rule source

indicator-ole-suspicious-reverse.yarBSD 2-Clause License
rule DITEKSHEN_INDICATOR_OLE_Suspicious_Reverse : FILE
{
	meta:
		description = "detects OLE documents containing VB scripts with reversed suspicious strings"
		author = "ditekSHen"
		id = "a7f4d18d-add6-5df2-9a8c-f88d8e3766da"
		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#L624-L644"
		license_url = "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
		logic_hash = "04950549eede23b7006103539f20437713a54138c073d9805048392ea0a3df2a"
		score = 65
		quality = 71
		tags = "FILE"

	strings:
		$vb = "\\VBE7.DLL" ascii
		$cmd1 = "CMD C:\\" nocase ascii
		$cmd2 = "CMD /c " nocase ascii
		$kw1 = "]rAHC[" nocase ascii
		$kw2 = "ekOVNI" nocase ascii
		$kw3 = "EcaLPEr" nocase ascii
		$kw4 = "TcEJBO-WEn" nocase ascii
		$kw5 = "eLbAirav-Teg" nocase ascii
		$kw6 = "ReveRSE(" nocase ascii
		$kw7 = "-JOIn" nocase ascii

	condition:
		uint16( 0 ) == 0xcfd0 and $vb and ( ( 1 of ( $cmd* ) and 1 of ( $kw* ) ) or ( 2 of ( $kw* ) ) )
}

Strings (10 patterns)

IdentifierTypeValueModifiers
$vbtext"\\VBE7.DLL"ascii
$cmd1text"CMD C:\\"nocase ascii
$cmd2text"CMD /c "nocase ascii
$kw1text"]rAHC["nocase ascii
$kw2text"ekOVNI"nocase ascii
$kw3text"EcaLPEr"nocase ascii
$kw4text"TcEJBO-WEn"nocase ascii
$kw5text"eLbAirav-Teg"nocase ascii
$kw6text"ReveRSE("nocase ascii
$kw7text"-JOIn"nocase ascii

Condition

uint16( 0 ) == 0xcfd0 and $vb and ( ( 1 of ( $cmd* ) and 1 of ( $kw* ) ) or ( 2 of ( $kw* ) ) )

In plain words (Heuristic)

  • At least 1 patterns in ( $cmd* ) must match.
  • At least 1 patterns in ( $kw* ) must match.
  • At least 2 patterns in ( $kw* ) must match.
  • Pattern $vb 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: a7f4d18d-add6-5df2-9a8c-f88d8e3766da

Tags:FILE