YARA · SEKOIA.IO Community
SEKOIA_Apt_Gamaredon_Ddrdoh_Vbs_Downloader_Vbs
Detects malicious VBScript executed by LNK/mshta
- Author
- Sekoia.io
- Date
- 2023-01-24
- Modified
- 2024-12-19
- Score / Quality
- 75 / 78
What this rule detects
Detects malicious VBScript executed by LNK/mshta
Associated malware family: Vbsdownloader.
It defines 6 patterns (6 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
apt-gamaredon-ddrdoh-vbs-downloader-vbs.yarDetection Rule License 1.1
rule SEKOIA_Apt_Gamaredon_Ddrdoh_Vbs_Downloader_Vbs : FILE
{
meta:
= "Detects malicious VBScript executed by LNK/mshta"
= "Sekoia.io"
= "cc29d5d9-58bd-4f68-8673-daa41abfc7be"
= "2023-01-24"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_gamaredon_ddrdoh_vbs_downloader_vbs.yar#L1-L20"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "c91e1ce26c0735e8c68fe39f2fbeda8aed51cd4f9a0b967b5d184843728dcef4"
= 75
= 78
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$ = "b24gZXJyb3IgcmVzd" ascii
$ = "BinaryStream.readtext" ascii nocase
$ = "createobject(\"msxml2.domdocument.3.0\").createelement(" ascii nocase
$ = "Dim cSecond, cMinute, CHour, cDay, cMonth, cYear" ascii nocase
$ = "tDate & \"T\" & tTime"
$ = "AutoOpen" ascii nocase
condition:
5 of them and filesize < 50KB
}
Strings (6 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | "b24gZXJyb3IgcmVzd" | ascii |
| $ | text | "BinaryStream.readtext" | ascii nocase |
| $ | text | "createobject(\"msxml2.domdocument.3.0\").createelement(" | ascii nocase |
| $ | text | "Dim cSecond, cMinute, CHour, cDay, cMonth, cYear" | ascii nocase |
| $ | text | "tDate & \"T\" & tTime" | |
| $ | text | "AutoOpen" | ascii nocase |
Condition
5 of them and filesize < 50KBIn plain words (Heuristic)
- The file must be smaller than 50KB (a cheap guard that skips large files).
- At least 5 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.
References
Licence & attribution
Author: Sekoia.io
Source repository: SEKOIA.IO Community @ a438a5901a
Licence: Detection Rule License 1.1 (repository licence)
Mirrored via YARA Forge 20260927, which prefixes rule names with the source and adds normalised meta fields.
Rule id: cc29d5d9-58bd-4f68-8673-daa41abfc7be
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2023-01-25
- MalwareSEKOIA.IO Community· Sekoia.io· 2022-08-02
- MalwareditekSHen detection· ditekShen· 2020-11-06
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-10
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-10-21
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-27