Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Muddywater_Manifestation_Backdoor

Detects Muddys manifestation JScript backdoor

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 Muddys manifestation JScript backdoor

It defines 5 patterns (4 text, 1 hex, 0 regex).

Summary generated from the rule's metadata and condition.

Rule source

apt-muddywater-manifestation-backdoor.yarDetection Rule License 1.1
rule SEKOIA_Apt_Muddywater_Manifestation_Backdoor : FILE
{
	meta:
		description = "Detects Muddys manifestation JScript backdoor"
		author = "Sekoia.io"
		id = "998fb0ab-73ed-41e5-b87e-f987b8f05a8c"
		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_manifestation_backdoor.yar#L1-L20"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "477ed53ccd337dd21ab84b7d36b995a653d0aad6676e02cbe5e9f581bface253"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$s1 = "/^\\s+|\\s+$/g" ascii
		$l2 = "while (1) {" ascii
		$l3 = { 57 53 63 72 69 70 74 2e 73 6c 65 65 70 28 ?? ?? 20 2a 20 31 30 30 30 29 3b }
		$s4 = ")+ key , false)" ascii
		$s5 = ")+ data , false)" ascii

	condition:
		filesize > 1000 and ( $l3 in ( @l2 .. @l2 + 300 ) ) and ( any of ( $s* ) )
}

Strings (5 patterns)

IdentifierTypeValueModifiers
$s1text"/^\\s+|\\s+$/g"ascii
$l2text"while (1) {"ascii
$l3hex{ 57 53 63 72 69 70 74 2e 73 6c 65 65 70 28 ?? ?? 20 2a 20 31 30 30 30 29 3b }
$s4text")+ key , false)"ascii
$s5text")+ data , false)"ascii

Condition

filesize > 1000 and ( $l3 in ( @l2 .. @l2 + 300 ) ) and ( any of ( $s* ) )

In plain words (Heuristic)

  • The file must be larger than 1000.
  • At least one pattern in ( $s* ) must match.
  • Pattern $l3 must be found within the range @l2 .. @l2 + 300.

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: 998fb0ab-73ed-41e5-b87e-f987b8f05a8c

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE