YARA · SEKOIA.IO Community
SEKOIA_Apt_Oilrig_Maliciousdocument_May2022
Detects OilRig Malicious Document
- Author
- Sekoia.io
- Date
- 2022-05-13
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects OilRig Malicious Document
Targets: OLE / legacy Office.
It defines 7 patterns (7 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
apt-oilrig-maliciousdocument-may2022.yarDetection Rule License 1.1
rule SEKOIA_Apt_Oilrig_Maliciousdocument_May2022 : FILE
{
meta:
= "Detects OilRig Malicious Document"
= "Sekoia.io"
= "cb4ab310-e24c-4edc-8804-0c49c30124fb"
= "2022-05-13"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_oilrig_maliciousdocument_may2022.yar#L1-L22"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "d4aa960d4471ddf66ec6f98a5c883177763771ba9960b749509311a05384d9a7"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$s1 = "<LogonType>InteractiveToken</LogonType>"
$s2 = "Select * From Win32_PingStatus Where Address"
$s3 = "She@et1"
$s4 = "_VBA_PROJECT" wide
$s5 = "This program cannot be run in DOS mode." base64
$s6 = ".Agent.pdb" base64
$s7 = "GetAgentID" base64
condition:
uint32be( 0 ) == 0xD0CF11E0 and 3 of them
}
Strings (7 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $s1 | text | "<LogonType>InteractiveToken</LogonType>" | |
| $s2 | text | "Select * From Win32_PingStatus Where Address" | |
| $s3 | text | "She@et1" | |
| $s4 | text | "_VBA_PROJECT" | wide |
| $s5 | text | "This program cannot be run in DOS mode." | base64 |
| $s6 | text | ".Agent.pdb" | base64 |
| $s7 | text | "GetAgentID" | base64 |
Condition
uint32be( 0 ) == 0xD0CF11E0 and 3 of themIn plain words (Heuristic)
- The file must start with the OLE header — legacy Office documents, MSI.
- At least 3 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: cb4ab310-e24c-4edc-8804-0c49c30124fb
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- 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
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-09-23
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-06-11
- APT / threat actorSEKOIA.IO Community· Sekoia.io· 2024-03-06