Linux Script Interpreters Spawning Credential Scanners (trufflehog, gitleaks)

Flags Linux cases where node or bun processes launch trufflehog or gitleaks to search for secrets.

FreeReviewedSigma · High · v2
Product
linux
Category
process_creation
Author
Swachchhanda Shrawan Poudel (Nextron Systems) (SigmaHQ), DRL 1.1
Published
2025-11-25
Updated
2026-07-31

ATT&CK techniques

Execution → Collection
  1. Recon

  2. Resource Dev

  3. Initial Access

  4. Persistence

  5. Priv Esc

  6. Defense Evasion

  7. Discovery

  8. Lateral Movement

  9. C2

  10. Exfiltration

  11. Impact

What it detects

This rule matches process creation on Linux where a script interpreter (parent executable ending in /node or /bun) spawns a process image ending in /trufflehog or /gitleaks, or where the spawned command line contains those tool names. Secret-recovery tooling is often used by attackers to enumerate exposed credentials and tokens within repositories and environments, so interpreter-driven execution can indicate automated reconnaissance. It relies on process creation telemetry that includes parent process image and child process image/command line for accurate string and path matching.

Related detections9 linkedT1059.004 — drag to rearrange
Windows Script Interpreter Launching trufflehog or gitleaks Credential Scanner
Malicious SD-WAN Compromise Credential Theft via loot_run.sh
Suspicious Bad Apples Reverse Shell via socat pty
Suspicious Axios NPM macOS Persistence Masquerading as Apple Service
Malicious Shell Payload Piped from curl to zsh
Possible Bitbucket Pre-Auth RCE via git archive exec Null-Byte Injection (CVE-2022-36804) (via webserver)
Possible SSRF via VMware Workspace One Access instanceHealth CVE-2021-22056
Suspicious BoryptGrab Infostealer Staging Directory (via file_event)
Malicious TeamTNT Docker Gatling Gun Initialization Script (via process_creation)
Linux Script Interpreters Spawning Credential Scanners (trufflehog, gitleaks)
Pivot detection · T1059.004 · 9 related

Changelog

v2
  1. v2
    Candidate ingested via manual entry.2026-07-31
  2. v1
    No changelog recorded for this version.2026-07-30

Detection content is published as a reviewed draft. Tune thresholds and exclusions against your own telemetry before enabling this rule for alerting.