Skip to content

YARA · SEKOIA.IO Community

SEKOIA_In2Al5D_P3In4Er_Loader

Invalid printer loader detection based on the XOR key

MalwareSEKOIA.IO CommunityDetection Rule License 1.1Compiles with YARA-X
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:
		description = "Invalid printer loader detection based on the XOR key"
		author = "Sekoia.io"
		id = "6dd3046d-55fb-4bcc-8735-dbc0add4d570"
		date = "2023-04-24"
		modified = "2024-12-19"
		reference = "https://github.com/SEKOIA-IO/Community"
		source_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/yara_rules/in2al5d_p3in4er_loader.yar#L3-L17"
		license_url = "https://github.com/SEKOIA-IO/Community/blob/a438a5901a211c2abdf75da9c93921ef187473d1/LICENSE.md"
		logic_hash = "fb7dadcd1e87c15cacfc046e76648b1fa29f1bce44fa0314b84746ca57eebaed"
		score = 75
		quality = 80
		tags = "FILE"
		version = "1.0"
		classification = "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)

IdentifierTypeValueModifiers
$xor_keytext"in2al5d p3in4er"ascii fullword

Condition

all of them and ( filesize > 4MB and filesize < 7MB ) and pe.is_pe

In 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.

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: 6dd3046d-55fb-4bcc-8735-dbc0add4d570

Metadata

version1.0
classificationTLP:CLEAR

Tags:FILE