YARA · SEKOIA.IO Community
SEKOIA_Gen_Empire_Onedrive_Stager
Detects the Empire OneDrive stager
- Author
- Sekoia.io
- Date
- 2022-01-26
- Modified
- 2024-12-19
- Score / Quality
- 75 / 76
What this rule detects
Detects the Empire OneDrive stager
It defines 2 patterns (2 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
gen-empire-onedrive-stager.yarDetection Rule License 1.1
rule SEKOIA_Gen_Empire_Onedrive_Stager
{
meta:
= "Detects the Empire OneDrive stager"
= "Sekoia.io"
= "2053416f-1f53-491e-9c70-787a04362d16"
= "2022-01-26"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/gen_empire_onedrive_stager.yar#L1-L16"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "90b3548cd3f4f7f936da70ec95dbe0ff3c1421d40a6e8557952d28d358b7c1f1"
= 75
= 76
= ""
= "1.0"
= "TLP:CLEAR"
strings:
$sleep = "Start-Sleep -Seconds $(($PI -as [Int])*2)" wide ascii nocase
$down = "wc.DownloadData" wide ascii nocase
condition:
$down in ( @sleep .. @sleep + 1000 )
}
Strings (2 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $sleep | text | "Start-Sleep -Seconds $(($PI -as [Int])*2)" | wide ascii nocase |
| $down | text | "wc.DownloadData" | wide ascii nocase |
Condition
$down in ( @sleep .. @sleep + 1000 )In plain words (Heuristic)
- Pattern $down must be found within the range @sleep .. @sleep + 1000.
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: 2053416f-1f53-491e-9c70-787a04362d16
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Related rules
- Hack toolSEKOIA.IO Community· Sekoia.io· 2024-09-06
- Hack toolSEKOIA.IO Community· Sekoia.io· 2024-02-29
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-12-05
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-11-15
- Hack toolSEKOIA.IO Community· Sekoia.io· 2023-08-23
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-02-08
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-07-22
- Hack toolSEKOIA.IO Community· Sekoia.io· 2022-09-09