Detectionhighexperimental
Script Interpreter Spawning Credential Scanner - Linux
Detects a script interpreter process (like node.js or bun) spawning a known credential scanning tool (e.g., trufflehog, gitleaks). This behavior is indicative of an attempt to find and steal secrets, as seen in the "Shai-Hulud: The Second Coming" campaign.
Swachchhanda Shrawan Poudel (Nextron Systems)Created 2025-11-25f0025a69-e1b7-4dda-a53c-db21fa2d4071linux
Log Source
LinuxProcess Creation
ProductLinux← raw: linux
CategoryProcess Creation← raw: process_creation
Events generated when a new process is spawned on the system. Covers command-line arguments, parent/child relationships, and process metadata.
Detection Logic
Detection Logic2 selectors
detection:
selection_parent:
ParentImage|endswith:
# Add more script interpreters as needed
- '/node'
- '/bun'
selection_child:
- Image|endswith:
- '/trufflehog'
- '/gitleaks'
- CommandLine|contains:
- 'trufflehog'
- 'gitleaks'
condition: all of selection_*False Positives
Legitimate pre-commit hooks or CI/CD pipeline jobs that use a script to run a credential scanner as part of a security check.
MITRE ATT&CK
Rule Metadata
Rule ID
f0025a69-e1b7-4dda-a53c-db21fa2d4071
Status
experimental
Level
high
Type
Detection
Created
2025-11-25
Path
rules/linux/process_creation/proc_creation_lnx_susp_script_interpretor_spawn_credential_scanner.yml
Raw Tags
attack.credential-accessattack.t1552attack.executionattack.collectionattack.t1005attack.t1059.004