{"id":"f0025a69-e1b7-4dda-a53c-db21fa2d4071","title":"Script Interpreter Spawning Credential Scanner - Linux","description":"Detects a script interpreter process (like node.js or bun) spawning a known credential scanning tool (e.g., trufflehog, gitleaks).\nThis behavior is indicative of an attempt to find and steal secrets, as seen in the \"Shai-Hulud: The Second Coming\" campaign.\n","author":"Swachchhanda Shrawan Poudel (Nextron Systems)","status":"experimental","level":"high","date":"2025-11-25","modified":"","tags":["attack.credential-access","attack.t1552","attack.execution","attack.collection","attack.t1005","attack.t1059.004"],"technique_ids":["T1005","T1059.004","T1552"],"logsource":{"category":"process_creation","product":"linux"},"falsepositives":["Legitimate pre-commit hooks or CI/CD pipeline jobs that use a script to run a credential scanner as part of a security check."],"references":["https://github.com/asyncapi/cli/blob/2efa4dff59bc3d3cecdf897ccf178f99b115d63d/bun_environment.js","https://www.stepsecurity.io/blog/sha1-hulud-the-second-coming-zapier-ens-domains-and-other-prominent-npm-packages-compromised","https://www.endorlabs.com/learn/shai-hulud-2-malware-campaign-targets-github-and-cloud-credentials-using-bun-runtime","https://semgrep.dev/blog/2025/digging-for-secrets-sha1-hulud-the-second-coming-of-the-npm-worm/"],"source_path":"rules/linux/process_creation/proc_creation_lnx_susp_script_interpretor_spawn_credential_scanner.yml","source_sha256":"298071e0850c0c731142301e90d574391521789a15a887dc64233e53e57dfb98","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/linux/process_creation/proc_creation_lnx_susp_script_interpretor_spawn_credential_scanner.yml","license":"Detection Rule License 1.1","license_url":"https://github.com/SigmaHQ/Detection-Rule-License/blob/main/LICENSE.Detection.Rules.md","yaml":"title: Script Interpreter Spawning Credential Scanner - Linux\nid: f0025a69-e1b7-4dda-a53c-db21fa2d4071\nrelated:\n    - id: 0f60b28c-64dd-4e2c-9a63-5334d3e3a6e6\n      type: similar\nstatus: experimental\ndescription: |\n    Detects a script interpreter process (like node.js or bun) spawning a known credential scanning tool (e.g., trufflehog, gitleaks).\n    This behavior is indicative of an attempt to find and steal secrets, as seen in the \"Shai-Hulud: The Second Coming\" campaign.\nreferences:\n    - https://github.com/asyncapi/cli/blob/2efa4dff59bc3d3cecdf897ccf178f99b115d63d/bun_environment.js\n    - https://www.stepsecurity.io/blog/sha1-hulud-the-second-coming-zapier-ens-domains-and-other-prominent-npm-packages-compromised\n    - https://www.endorlabs.com/learn/shai-hulud-2-malware-campaign-targets-github-and-cloud-credentials-using-bun-runtime\n    - https://semgrep.dev/blog/2025/digging-for-secrets-sha1-hulud-the-second-coming-of-the-npm-worm/\nauthor: Swachchhanda Shrawan Poudel (Nextron Systems)\ndate: 2025-11-25\ntags:\n    - attack.credential-access\n    - attack.t1552\n    - attack.execution\n    - attack.collection\n    - attack.t1005\n    - attack.t1059.004\nlogsource:\n    category: process_creation\n    product: linux\ndetection:\n    selection_parent:\n        ParentImage|endswith:\n         # Add more script interpreters as needed\n            - '/node'\n            - '/bun'\n    selection_child:\n        - Image|endswith:\n              - '/trufflehog'\n              - '/gitleaks'\n        - CommandLine|contains:\n              - 'trufflehog'\n              - 'gitleaks'\n    condition: all of selection_*\nfalsepositives:\n    - Legitimate pre-commit hooks or CI/CD pipeline jobs that use a script to run a credential scanner as part of a security check.\nlevel: high\n","validation":"yaml_parsed_not_backend_compiled_or_live_validated","techniques":[{"key":"enterprise/T1005","id":"T1005","name":"Data from Local System","page":"techniques/enterprise/T1005/"},{"key":"enterprise/T1059.004","id":"T1059.004","name":"Unix Shell","page":"techniques/enterprise/T1059.004/"},{"key":"enterprise/T1552","id":"T1552","name":"Unsecured Credentials","page":"techniques/enterprise/T1552/"}],"data_path":"data/detection-rules/f0025a69-e1b7-4dda-a53c-db21fa2d4071.json","kind":"sigma"}
