Skip to content

YARA · SEKOIA.IO Community

SEKOIA_Apt_Backdoordiplomaty_Phantomnet

Detects PhantomNet based on strings

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

What this rule detects

Detects PhantomNet based on strings

Targets: Windows PE.

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

Summary generated from the rule's metadata and condition.

Rule source

apt-backdoordiplomaty-phantomnet.yarDetection Rule License 1.1
rule SEKOIA_Apt_Backdoordiplomaty_Phantomnet : FILE
{
	meta:
		description = "Detects PhantomNet based on strings"
		author = "Sekoia.io"
		id = "bbcc0664-ef2b-47db-a546-b5e0aa2a1e9a"
		date = "2024-06-06"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_backdoordiplomaty_phantomnet.yar#L1-L19"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "e4be9b9e092dcaa368650b7f696ca532f89752bdbe6b5fd09b4285a643c20b86"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "TLP:CLEAR"

	strings:
		$ = "memory load plugin failed!" wide
		$ = "Event eee!!!" ascii
		$ = "LoadWin32_x64.pdb" ascii

	condition:
		uint16be( 0 ) == 0x4d5a and filesize < 2MB and 2 of them
}

Strings (3 patterns)

IdentifierTypeValueModifiers
$text"memory load plugin failed!"wide
$text"Event eee!!!"ascii
$text"LoadWin32_x64.pdb"ascii

Condition

uint16be( 0 ) == 0x4d5a and filesize < 2MB and 2 of them

In plain words (Heuristic)

  • The file must start with “MZ” — a Windows executable (PE).
  • The file must be smaller than 2MB (a cheap guard that skips large files).
  • At least 2 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: bbcc0664-ef2b-47db-a546-b5e0aa2a1e9a

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE