PUA - TruffleHog Execution - Linux
A Sigma rule for process creation on Linux, by Swachchhanda Shrawan Poudel (Nextron Systems).
medium 2 ATT&CK techniques 1 program it names 8 everyday examples trip it
What it looks for
detection:
selection_cli_platform:
CommandLine|contains:
- ' docker --image '
- ' Git '
- ' GitHub '
- ' Jira '
- ' Slack '
- ' Confluence '
- ' SharePoint '
- ' s3 '
- ' gcs '
selection_cli_verified:
CommandLine|contains: ' --results=verified'
selection_img:
Image|endswith: '/trufflehog'
condition: selection_img or all of selection_cli_*
The rule’s detection, its selections and fields in order of name. The whole rule, with its references and false positives, is on SigmaHQ, by Swachchhanda Shrawan Poudel (Nextron Systems), under the Detection Rule License 1.1. CmdID evaluates it on a command line alone: a test on what a command line cannot show, such as the parent process or the user, is not met.
Command lines that trip it
Scan a Git repository for verified secrets on the page for trufflehog
trufflehog git https://github.com/trufflesecurity/test_keys --only-verifiedIdentifyScan a GitHub organization for verified secrets on the page for trufflehog
trufflehog github --org trufflesecurity --only-verifiedIdentifyScan a GitHub repository for verified keys and get JSON output on the page for trufflehog
trufflehog git https://github.com/trufflesecurity/test_keys --only-verified --jsonIdentifyScan a GitHub repository along with its Issues and Pull Requests on the page for trufflehog
trufflehog github --repo https://github.com/trufflesecurity/test_keys --issue-comments --pr-commentsIdentifyScan an S3 bucket for verified keys on the page for trufflehog
trufflehog s3 --bucket bucket_name --only-verifiedIdentifyScan S3 buckets using IAM Roles on the page for trufflehog
trufflehog s3 --role-arn iam_role_arnIdentifyScan individual files or directories on the page for trufflehog
trufflehog filesystem path/to/file_or_directory1 path/to/file_or_directory2 ...IdentifyScan a Docker image for verified secrets on the page for trufflehog
trufflehog docker --image trufflesecurity/secrets --only-verifiedIdentify