YARA · SEKOIA.IO Community
SEKOIA_In2Al5D_P3In4Er_Loader
Invalid printer loader detection based on the XOR key
- Author
- Sekoia.io
- Date
- 2023-04-24
- Modified
- 2024-12-19
- Score / Quality
- 75 / 80
What this rule detects
Invalid printer loader detection based on the XOR key
Targets: Windows PE.
It defines 1 patterns (1 text, 0 hex, 0 regex). YARA modules used: pe.
Summary generated from the rule's metadata and condition.
Rule source
Includes the imports needed to compile it on its own.
in2al5d-p3in4er-loader.yarDetection Rule License 1.1
import "pe"
rule SEKOIA_In2Al5D_P3In4Er_Loader : FILE
{
meta:
= "Invalid printer loader detection based on the XOR key"
= "Sekoia.io"
= "6dd3046d-55fb-4bcc-8735-dbc0add4d570"
= "2023-04-24"
= "2024-12-19"
= "https://github.com/SEKOIA-IO/Community"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/in2al5d_p3in4er_loader.yar#L3-L17"
= "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
= "fb7dadcd1e87c15cacfc046e76648b1fa29f1bce44fa0314b84746ca57eebaed"
= 75
= 80
= "FILE"
= "1.0"
= "TLP:CLEAR"
strings:
$xor_key = "in2al5d p3in4er" ascii fullword
condition:
all of them and ( filesize > 4MB and filesize < 7MB ) and pe.is_pe
}
Strings (1 patterns)
| Identifier | Type | Value | Modifiers |
|---|---|---|---|
| $xor_key | text | "in2al5d p3in4er" | ascii fullword |
Condition
all of them and ( filesize > 4MB and filesize < 7MB ) and pe.is_peIn plain words (Heuristic)
- The file must start with “MZ” — a Windows executable (PE).
- The file must be smaller than 7MB (a cheap guard that skips large files).
- The file must be larger than 4MB.
- All patterns in the rule must match.
- Uses the pe module.
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: 6dd3046d-55fb-4bcc-8735-dbc0add4d570
Metadata
| version | 1.0 |
|---|---|
| classification | TLP:CLEAR |
Tags:FILE
Related rules
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-16
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-08-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-04-22
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-07-23
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-10-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20
- MalwareSEKOIA.IO Community· Sekoia.io· 2024-03-20