Detection rules › Sigma
PUA - TruffleHog Execution
Detects execution of TruffleHog, a tool used to search for secrets in different platforms like Git, Jira, Slack, SharePoint, etc. that could be used maliciously. While it is a legitimate tool, intended for use in CI pipelines and security assessments, It was observed in the Shai-Hulud malware campaign targeting npm packages to steal sensitive information.
MITRE ATT&CK coverage
| Tactic | Techniques |
|---|---|
| Credential Access | T1552.001 Unsecured Credentials: Credentials In Files |
| Discovery | T1083 File and Directory Discovery |
Event coverage
| Provider | Event ID | Title |
|---|---|---|
| Sysmon | 1 | Process creation |
| Security-Auditing | 4688 | A new process has been created. |
Stages and Predicates
Stage 1: selection_img
Image|endswith: '\trufflehog.exe'
Stage 2: all of selection_cli_platform
or:
CommandLine|contains: ' Confluence '
CommandLine|contains: ' Git '
CommandLine|contains: ' GitHub '
CommandLine|contains: ' Jira '
CommandLine|contains: ' SharePoint '
CommandLine|contains: ' Slack '
CommandLine|contains: ' docker --image '
CommandLine|contains: ' gcs '
CommandLine|contains: ' s3 '
Stage 3: all of selection_cli_verified
CommandLine|contains: ' --results=verified'
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.
| Field | Kind | Values |
|---|---|---|
CommandLine | match |
|
Image | ends_with |
|