CmdID

CmdID / Rules / Linux

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

its detection, as SigmaHQ writes it
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

everyday examples from tldr-pages, CC BY 4.0, each read by CmdID

Scan a Git repository for verified secrets on the page for trufflehog

trufflehog git https://github.com/trufflesecurity/test_keys --only-verifiedIdentify

Scan a GitHub organization for verified secrets on the page for trufflehog

trufflehog github --org trufflesecurity --only-verifiedIdentify

Scan 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 --jsonIdentify

Scan 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-commentsIdentify

Scan an S3 bucket for verified keys on the page for trufflehog

trufflehog s3 --bucket bucket_name --only-verifiedIdentify

Scan S3 buckets using IAM Roles on the page for trufflehog

trufflehog s3 --role-arn iam_role_arnIdentify

Scan individual files or directories on the page for trufflehog

trufflehog filesystem path/to/file_or_directory1 path/to/file_or_directory2 ...Identify

Scan a Docker image for verified secrets on the page for trufflehog

trufflehog docker --image trufflesecurity/secrets --only-verifiedIdentify

Programs and files it names

their pages here

ATT&CK

the techniques it is tagged with
T1083File and Directory Discovery
T1552.001Unsecured Credentials: Credentials In Files