{"id":"0f60b28c-64dd-4e2c-9a63-5334d3e3a6e6","title":"Script Interpreter Spawning Credential Scanner - Windows","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.collection","attack.execution","attack.t1005","attack.t1059.007"],"technique_ids":["T1005","T1059.007","T1552"],"logsource":{"category":"process_creation","product":"windows"},"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/windows/process_creation/proc_creation_win_susp_script_interpretor_spawn_credential_scanner.yml","source_sha256":"55eecc16ad94424467bc71ad37806a3c17530ed3cac4ed27e67f01b720836417","source_url":"https://github.com/anpa1200/sigma/blob/b249e9683190cffdcaf188ccbfb90bf4759844e1/rules/windows/process_creation/proc_creation_win_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 - Windows\nid: 0f60b28c-64dd-4e2c-9a63-5334d3e3a6e6\nrelated:\n    - id: f0025a69-e1b7-4dda-a53c-db21fa2d4071\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.collection\n    - attack.execution\n    - attack.t1005\n    - attack.t1059.007\nlogsource:\n    category: process_creation\n    product: windows\ndetection:\n    selection_parent:\n        ParentImage|endswith:\n           # Add more script interpreters as needed\n            - '\\node.exe'\n            - '\\bun.exe'\n    selection_child:\n        - Image|endswith:\n              - 'trufflehog.exe'\n              - 'gitleaks.exe'\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\nregression_tests_path: regression_data/rules/windows/process_creation/proc_creation_win_susp_script_interpretor_spawn_credential_scanner/info.yml\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.007","id":"T1059.007","name":"JavaScript","page":"techniques/enterprise/T1059.007/"},{"key":"enterprise/T1552","id":"T1552","name":"Unsecured Credentials","page":"techniques/enterprise/T1552/"}],"data_path":"data/detection-rules/0f60b28c-64dd-4e2c-9a63-5334d3e3a6e6.json","kind":"sigma"}
