YARA · SEKOIA.IO Community
SEKOIA_Apt_Polonium_Powershell_Creepydrive_Strings
Detects POLONIUM CreepyDrive Powershell implant
- Author
- Sekoia.io
- Date
- 2022-06-03
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Detects POLONIUM CreepyDrive Powershell implant
It defines 10 patterns (10 text, 0 hex, 0 regex).
Summary generated from the rule's metadata and condition.
Rule source
apt-polonium-powershell-creepydrive-strings.yarDetection Rule License 1.1
rule SEKOIA_Apt_Polonium_Powershell_Creepydrive_Strings
{
meta:
= "Detects POLONIUM CreepyDrive Powershell implant"
= "Sekoia.io"
= "0ba196bd-9cd6-4553-b7bf-69989cdb8be4"
= "2022-06-03"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_polonium_powershell_creepydrive_strings.yar#L1-L24"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "28b8f10a36d13e97e606b082f20c50c3d48241409e7f1aca621e2af9d756dbe5"
= 75
= 80
= ""
= "1.0"
= "TLP:CLEAR"
strings:
$ = "function Exec($comm)" base64 ascii wide
$ = "$comm = $comm + \"| outstring" base64 ascii wide
$ = "Invoke-Expression -Command:$comm" base64 ascii wide
$ = "microsoft.com" base64 ascii wide
$ = "$req = Invoke-WebRequest" base64 ascii wide
$ = "$j += $data" base64 ascii wide
$ = "$res = Exec($arr[$i])" base64 ascii wide
$ = "$arr = @(iex \"$req\")" base64 ascii wide
$ = "elseif ($req -cmatch" base64 ascii wide
$ = "graph.microsoft.com" base64 ascii wide
condition:
3 of them
}
Strings (10 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | text | "function Exec($comm)" | base64 ascii wide |
| $ | text | "$comm = $comm + \"| outstring" | base64 ascii wide |
| $ | text | "Invoke-Expression -Command:$comm" | base64 ascii wide |
| $ | text | "microsoft.com" | base64 ascii wide |
| $ | text | "$req = Invoke-WebRequest" | base64 ascii wide |
| $ | text | "$j += $data" | base64 ascii wide |
| $ | text | "$res = Exec($arr[$i])" | base64 ascii wide |
| $ | text | "$arr = @(iex \"$req\")" | base64 ascii wide |
| $ | text | "elseif ($req -cmatch" | base64 ascii wide |
| $ | text | "graph.microsoft.com" | base64 ascii wide |
Condition
3 of themIn plain words (Heuristic)
- 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: 0ba196bd-9cd6-4553-b7bf-69989cdb8be4
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
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