YARA · SEKOIA.IO Community
SEKOIA_Apt_Backdoordiplomaty_Phantomnet
Detects PhantomNet based on strings
- 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:
= "Detects PhantomNet based on strings"
= "Sekoia.io"
= "bbcc0664-ef2b-47db-a546-b5e0aa2a1e9a"
= "2024-06-06"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/apt_backdoordiplomaty_phantomnet.yar#L1-L19"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "e4be9b9e092dcaa368650b7f696ca532f89752bdbe6b5fd09b4285a643c20b86"
= 75
= 80
= "FILE"
= "1.0"
= "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)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $ | 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 themIn 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.
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: bbcc0664-ef2b-47db-a546-b5e0aa2a1e9a
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
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