Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Polonium_Powershell_Creepydrive_Strings

Detects POLONIUM CreepyDrive Powershell implant

APT / threat actorSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
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:
		description = "Detects POLONIUM CreepyDrive Powershell implant"
		author = "Sekoia.io"
		id = "0ba196bd-9cd6-4553-b7bf-69989cdb8be4"
		date = "2022-06-03"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_polonium_powershell_creepydrive_strings.yar#L1-L24"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "28b8f10a36d13e97e606b082f20c50c3d48241409e7f1aca621e2af9d756dbe5"
		score = 75
		quality = 80
		tags = ""
		version = "1.0"
		classification = "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)

IdentifierTypeValueModifiers
$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 them

In 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.

Open in editor

References

Licence & attribution

Author: Sekoia.io

Source repository: SEKOIA.IO Community @ a438a5901a

Licence: Detection Rule License 1.1 (repository licence)

Original rule

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

version1.0
classificationTLP:CLEAR