YARA · Signature Base (Florian Roth / Nextron)
SIGNATURE_BASE_SUSP_LNX_ARCH_Install_Hook_Jun26
Detects suspicious pre and post hooks in Arch install files
- Auteur
- Marius Benthin
- Date
- 2026-06-15
- Score / Qualité
- 70 / 85
Ce que détecte cette règle
Detects suspicious pre and post hooks in Arch install files
Elle définit 9 motifs (9 texte, 0 hex, 0 regex).
Résumé généré à partir des métadonnées et de la condition de la règle.
Source de la règle
rule SIGNATURE_BASE_SUSP_LNX_ARCH_Install_Hook_Jun26 : FILE
{
meta:
= "Detects suspicious pre and post hooks in Arch install files"
= "Marius Benthin"
= "926d4abf-1409-5d6f-b3f0-7db5227ff447"
= "2026-06-15"
= "2026-06-15"
= "https://aur.archlinux.org/cgit/aur.git/commit/?h=python-django-js-asset&id=af09b1cf1b59"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/yara/susp_aur_packages.yar#L43-L70"
= "https://github.com/Neo23x0/signature-base/blob/94a1c48d7ab499879287ff611dfe7f9c56376030/LICENSE"
= "47c076099e6715ffb0bd357b6832175741e77b88972033cd1f9b55b6ff7e5519"
= "ef735bca8cb2acafe70831e33ed468a3046a61147af694000761970415c7eef1"
= "b9850b02ef5df3834c072d267d3449617e28f71ec9120a9e64f24d46e57b9a0f"
= 70
= 85
= "FILE"
strings:
$sa1 = "pre_install() {"
$sa2 = "post_install() {"
$sa3 = "pre_upgrade() {"
$sa4 = "post_upgrade() {"
$sa5 = "pre_remove() {"
$sa6 = "post_remove() {"
$sb1 = "npm install "
$sb2 = "&& 'b''u''n'"
$fp1 = "#!/bin/sh"
condition:
filesize < 5KB and 1 of ( $sa* ) and 1 of ( $sb* ) and not 1 of ( $fp* )
}
Chaînes (9 motifs)
| Identifiant | Type | Valeur | Modificateurs |
|---|---|---|---|
| $sa1 | texte | "pre_install() {" | |
| $sa2 | texte | "post_install() {" | |
| $sa3 | texte | "pre_upgrade() {" | |
| $sa4 | texte | "post_upgrade() {" | |
| $sa5 | texte | "pre_remove() {" | |
| $sa6 | texte | "post_remove() {" | |
| $sb1 | texte | "npm install " | |
| $sb2 | texte | "&& 'b''u''n'" | |
| $fp1 | texte | "#!/bin/sh" |
Condition
filesize < 5KB and 1 of ( $sa* ) and 1 of ( $sb* ) and not 1 of ( $fp* )En clair (Heuristique)
- Le fichier doit faire moins de 5KB (garde-fou peu coûteux qui écarte les gros fichiers).
- Au moins 1 motifs de ( $sa* ) doivent être trouvés.
- Au moins 1 motifs de ( $sb* ) doivent être trouvés.
- Au moins 1 motifs de ( $fp* ) doivent être trouvés.
Tester cette règle dans votre navigateur
Déposez un fichier pour le scanner avec cette règle grâce à YARA-X compilé en WebAssembly. Rien n’est envoyé.
Hashes d’échantillons
Hashes des échantillons listés par l’auteur dans les métadonnées de la règle (à rechercher dans votre plateforme de threat intelligence).
- 47c076099e6715ffb0bd357b6832175741e77b88972033cd1f9b55b6ff7e5519
- ef735bca8cb2acafe70831e33ed468a3046a61147af694000761970415c7eef1
Licence et attribution
Auteur : Marius Benthin
Dépôt source : Signature Base (Florian Roth / Nextron) @ 94a1c48d7a
Licence : Detection Rule License 1.1 (licence du dépôt)
Reprise via YARA Forge 20260927, qui préfixe les noms de règles par la source et ajoute des champs meta normalisés.
Identifiant de règle: 926d4abf-1409-5d6f-b3f0-7db5227ff447
Tags:FILE
Règles liées
- Suspect / chasseSignature Base (Florian Roth / Nextron)· Marius Benthin· 2026-01-29
- Suspect / chasseSignature Base (Florian Roth / Nextron)· Marius Benthin· 2026-01-29
- Suspect / chasseSignature Base (Florian Roth / Nextron)· Marius Benthin· 2026-03-31
- Suspect / chasseSignature Base (Florian Roth / Nextron)· Marius Benthin· 2026-06-15
- Suspect / chasseSignature Base (Florian Roth / Nextron)· Marius Benthin· 2025-11-24
- Suspect / chasseSignature Base (Florian Roth / Nextron)· Marius Benthin· 2025-11-24
- Suspect / chasseSignature Base (Florian Roth / Nextron)· Marius Benthin· 2026-01-29
- MalwareSignature Base (Florian Roth / Nextron)· Marius Benthin· 2026-01-29