Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Muddywater_Powgoop_Decode_Loop

Detects the loop used in PowGoop and its loader

APT / threat actorSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
Author
Sekoia.io
Date
2022-01-13
Modified
2024-12-19
Score / Quality
75 / 80

What this rule detects

Detects the loop used in PowGoop and its loader

It defines 3 patterns (3 text, 0 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

apt-muddywater-powgoop-decode-loop.yarDetection Rule License 1.1
rule SEKOIA_Apt_Muddywater_Powgoop_Decode_Loop : FILE
{
	meta:
		description = "Detects the loop used in PowGoop and its loader"
		author = "Sekoia.io"
		id = "644ed1c4-e0e1-496e-9efc-7d9e15565f7b"
		date = "2022-01-13"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_muddywater_powgoop_decode_loop.yar#L1-L19"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "1d60f53014fb1934a85a573856244431c8f565c2f024511991817e6235566815"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s1 = "System.Collections.Generic.List[System.Object]" ascii wide
		$s2 = "$d.Add($in[$i]);" ascii wide
		$s3 = "[System.Convert]::FromBase64String(" ascii wide

	condition:
		filesize < 1MB and $s2 in ( @s1 .. @s1 + 400 ) and $s3 in ( @s1 .. @s1 + 400 )
}

Strings (3 patterns)

IdentifierTypeValueModifiers
$s1text"System.Collections.Generic.List[System.Object]"ascii wide
$s2text"$d.Add($in[$i]);"ascii wide
$s3text"[System.Convert]::FromBase64String("ascii wide

Condition

filesize < 1MB and $s2 in ( @s1 .. @s1 + 400 ) and $s3 in ( @s1 .. @s1 + 400 )

In plain words (Heuristic)

  • The file must be smaller than 1MB (a cheap guard that skips large files).
  • Pattern $s2 must be found within the range @s1 .. @s1 + 400.
  • Pattern $s3 must be found within the range @s1 .. @s1 + 400.

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: 644ed1c4-e0e1-496e-9efc-7d9e15565f7b

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE