Detection rules › Sigma

Script Interpreter Spawning Credential Scanner - Windows

Severity
high
Author
Swachchhanda Shrawan Poudel (Nextron Systems)
Source
upstream

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.

MITRE ATT&CK coverage

TacticTechniques
ExecutionT1059.007 Command and Scripting Interpreter: JavaScript
Credential AccessT1552 Unsecured Credentials
CollectionT1005 Data from Local System

Event coverage

ProviderEvent IDTitle
Sysmon1Process creation
Security-Auditing4688A new process has been created.

Stages and Predicates

Stage 1: all of selection_parent

or:
ParentImage|endswith: '\bun.exe'
ParentImage|endswith: '\node.exe'

Stage 2: all of selection_child

or:
CommandLine|contains: gitleaks
CommandLine|contains: trufflehog
Image|endswith: gitleaks.exe
Image|endswith: trufflehog.exe

Indicators

Each row is a field, operator, and value that the rule matches. The corpus column counts how many other rules in the catalog look for the same combination: high numbers point to widely-used, community-vetted indicators. Blank or 1 shows that the indicator is specific to this rule.

FieldKindValues
CommandLinematch
  • gitleaks
  • trufflehog
Imageends_with
  • gitleaks.exe
  • trufflehog.exe
ParentImageends_with
  • \bun.exe
  • \node.exe