Skip to content

YARA · Signature Base (Florian Roth / Nextron)

SIGNATURE_BASE_SUSP_LNX_ARCH_ALPM_Hook_Jun26

Detects suspicious execution commands in Arch ALPM hooks

Suspicious / huntingSignature Base (Florian Roth / Nextron)Detection Rule License 1.1Compiles with YARA-X
Author
Marius Benthin
Date
2026-06-15
Score / Quality
70 / 85

What this rule detects

Detects suspicious execution commands in Arch ALPM hooks

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

Summary generated from the rule's metadata and condition.

Rule source

susp-lnx-arch-alpm-hook-jun26.yarDetection Rule License 1.1
rule SIGNATURE_BASE_SUSP_LNX_ARCH_ALPM_Hook_Jun26 : FILE
{
	meta:
		description = "Detects suspicious execution commands in Arch ALPM hooks"
		author = "Marius Benthin"
		id = "066c4a55-8840-58de-8f4e-c3e13c2cac2b"
		date = "2026-06-15"
		modified = "2026-06-15"
		reference = "https://aur.archlinux.org/cgit/aur.git/commit/?h=hearthstone-linux-gui-bin&id=ecf810ac853e7149abd4e0c793b2517e9737edb8"
		source_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/susp_aur_packages.yar#L72-L88"
		license_url = "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
		hash = "ba332432f87e68d7fa8c784c60c39ba0d3e2ac06fd8855e82ea49329e2684529"
		logic_hash = "b588d68867424799dcc7fd47d1fa3d3a89475290344a0b26e2ebca43e91076a7"
		score = 70
		quality = 85
		tags = "FILE"

	strings:
		$s1 = "[Action]"
		$s2 = "Exec = "
		$s3 = "npm install "
		$s4 = "2>/dev/null"

	condition:
		filesize < 5KB and all of them
}

Strings (4 patterns)

IdentifierTypeValueModifiers
$s1text"[Action]"
$s2text"Exec = "
$s3text"npm install "
$s4text"2>/dev/null"

Condition

filesize < 5KB and all of them

In plain words (Heuristic)

  • The file must be smaller than 5KB (a cheap guard that skips large files).
  • All 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

Sample hashes

Hashes of samples the author lists in the rule's meta (look them up in your threat-intelligence platform).

  • ba332432f87e68d7fa8c784c60c39ba0d3e2ac06fd8855e82ea49329e2684529

Licence & attribution

Author: Marius Benthin

Source repository: Signature Base (Florian Roth / Nextron) @ 94a1c48d7a

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: 066c4a55-8840-58de-8f4e-c3e13c2cac2b

Tags:FILE