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 Velvet Ant Linux Backdoor and Credential Harvesting Artifacts (via file_event)
Malicious Browser Credential Dump File Drop by Phantom Stealer via file_event
Suspicious Bash Decode Chain Using curl xxd and base64 Piped to eval via Linux Shell
Malicious Download Piped to Shell via curl or wget (via process_creation)
Suspicious GobRAT Bulbature Infection Shell Scripts Execution
Suspicious Base64 Decoded Payload Piped to Shell on Linux
Suspicious Netcat Reverse Shell via Named Pipe on Linux via Process Creation (via process_creation)
Suspicious OpenClaw Skill File Modification via File Event
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.