YARA · ditekSHen detection
DITEKSHEN_INDICATOR_OLE_Suspicious_Reverse
detects OLE documents containing VB scripts with reversed suspicious strings
- 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:
= "detects OLE documents containing VB scripts with reversed suspicious strings"
= "ditekSHen"
= "a7f4d18d-add6-5df2-9a8c-f88d8e3766da"
= "2020-11-06"
= "2024-09-06"
= "https://github.com/ditekshen/detection"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/yara/indicator_office.yar#L624-L644"
= "https://github.com/ditekshen/detection/blob/e76c93dcdedff04076380ffc60ea54e45b313635/LICENSE.txt"
= "04950549eede23b7006103539f20437713a54138c073d9805048392ea0a3df2a"
= 65
= 71
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $vb | text | "\\VBE7.DLL" | ascii |
| $cmd1 | text | "CMD C:\\" | nocase ascii |
| $cmd2 | text | "CMD /c " | nocase ascii |
| $kw1 | text | "]rAHC[" | nocase ascii |
| $kw2 | text | "ekOVNI" | nocase ascii |
| $kw3 | text | "EcaLPEr" | nocase ascii |
| $kw4 | text | "TcEJBO-WEn" | nocase ascii |
| $kw5 | text | "eLbAirav-Teg" | nocase ascii |
| $kw6 | text | "ReveRSE(" | nocase ascii |
| $kw7 | text | "-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.
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).
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
Related rules
- Suspicious / huntingditekSHen detection· ditekSHen· 2023-08-22
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21
- Suspicious / huntingditekSHen detection· ditekSHen· 2021-01-21