Vai al contenuto
New

DeepSeek V4.1 Flash free for 7 days: 10M tokens a day after a top-up of $10 or more. Until Nov 30.

How it works
meltedinhex/hunting-persistence-on-linuxLinux, cloud e container

hunting-persistence-on-linux

⁨Hunts for Linux persistence by inspecting cron, systemd units, shell rc files, SSH⁩

v1.0.03 installazioni+3 in 7 giorni24 StelleApache-2.0sincronizzato 10 ore fa

Installa

Non hai ancora la CLI di NotHoly? Installala prima.

$ curl -fsSL https://notholy.com/install.sh | sh
$ notholy skills install meltedinhex/hunting-persistence-on-linux

Scrive in ⁦~/.notholy/skills⁩ dopo aver controllato la firma e lo SHA-256.

FirmaFirmato, ed25519
xik4X9T7Mq…MRP+o1Ag==La CLI controlla lo SHA-256 e la firma prima di scrivere qualsiasi file.
Pacchettod950ebfa…62393885
d950ebfa89cb…e573623938854 file · ⁦3.0 KB⁩
ScansioneMedio6 segnalazioni
  • command.pipe_to_shellSKILL.md:58
  • command.base64_execSKILL.md:58
  • command.pipe_to_shellreferences/api-reference.md:26
Vedi la scansione completa
Sorgentegithub.com/meltedinhex/analyst-ai-pack/tree/main/skills/hunting-persistence-on-linux@da7600a

Questa voce non è ancora scritta in italiano, quindi è mostrata in un'altra lingua: English.

When to Use

  • You have collected Linux persistence-relevant files (cron entries, systemd units, shell rc files, authorized_keys, autostart) and want to flag suspicious entries.
  • You are triaging a suspected compromised Linux host's persistence surface.

Do not use this on a live root shell as a substitute for proper IR collection — feed it collected copies. It reads files statically and executes nothing.

Prerequisites

  • Collected persistence artifacts (cron files, unit files, rc files, authorized_keys).

Safety & Handling

  • Read files statically; treat their contents as untrusted.

Workflow

Step 1: Scan persistence files

bash
python scripts/analyst.py scan /path/to/collected

Recursively scans known persistence locations and flags entries containing download/exec patterns (curl|wget ... | sh, base64 -d | bash, reverse-shell one-liners, nc -e), suspicious paths (/tmp, /dev/shm), and unexpected authorized_keys additions.

Step 2: Categorize by mechanism

Group findings by mechanism: cron, systemd, rc/profile, SSH keys, autostart.

Step 3: Confirm

Compare against a known-good baseline of expected services/keys; investigate deviations.

Step 4: Document

Record each persistence entry, its mechanism, and the suspicious indicator.

Validation

  • Findings are grouped by persistence mechanism.
  • Reverse-shell/download-exec one-liners are flagged with the matched pattern.
  • authorized_keys additions are surfaced for review.

Pitfalls

  • Legitimate admin cron/systemd entries — baseline before alerting.
  • Persistence in less-common spots (udev, PAM, LD_PRELOAD) not covered by basic scans.
  • Encoded/obfuscated payloads hiding the true command.

References

  • See references/api-reference.md for the scanner.
  • ATT&CK T1543.002 and T1053.003 (linked in frontmatter).

File di questa versione

Permessi

PermessoDichiaratoTrovato dalla scansione
Legge fileNoNo
Scrive fileNoNo
Esegue comandi shellSìSì
Usa la reteSìSì
Usa i connettoriNoNo
Controlla un browserNoNo

Segnalazioni della scansione

Rivisto il 13 nov 2026

  1. MediaComando · command.pipe_to_shellSKILL.md:58
  2. MediaComando · command.base64_execSKILL.md:58
  3. MediaComando · command.pipe_to_shellreferences/api-reference.md:26
  4. MediaComando · command.base64_execreferences/api-reference.md:26
  5. MediaFile · Script eseguibile incluso nella skillscripts/analyst.py
  6. InfoLink · Link a domini esterni

Una scansione pulita abbassa il rischio, ma non prova che il pacchetto sia sicuro. Leggi quello che installi.

VersionePubblicataCommitSHA-256FirmaCambio di permessi
v1.0.013 nov 2026da7600ad950ebfaFirmata–

Chiedi tutto quello che il tuo perimetro consente.

Crea un account, aggiungi crediti e fai la prima domanda in chat o nel terminale.

  1. 1/3

    Crea l'account

    Privato o azienda. Puoi passare ad azienda in seguito senza perdere saldo o chiavi.

    PrivatoAzienda
  2. 2/3

    Aggiungi crediti

    Con carta. Paghi a token, senza abbonamento.

    $5.00ricarica minima
  3. 3/3

    Chiedi

    In chat, oppure installa la CLI ed esegui notholy login nel terminale.

    $ notholy login