trufflehog Command Examples

Find and verify credentials in files, Git repositories, S3 buckets, and Docker images. More information: https://github.com/trufflesecurity/trufflehog.

trufflehog git {{https://github.com/trufflesecurity/test_keys}} --only-verified

trufflehog github --org={{trufflesecurity}} --only-verified

trufflehog git {{https://github.com/trufflesecurity/test_keys}} --only-verified --json

trufflehog github --repo={{https://github.com/trufflesecurity/test_keys}} --issue-comments --pr-comments

trufflehog s3 --bucket={{bucket name}} --only-verified

trufflehog s3 --role-arn={{iam-role-arn}}

trufflehog filesystem {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}

trufflehog docker --image {{trufflesecurity/secrets}} --only-verified