mirror of
https://github.com/tldr-pages/tldr.git
synced 2025-04-22 00:42:08 +02:00
trufflehog: add page (#12348)
* trufflehog: add page --------- Co-authored-by: K.B.Dharun Krishna <kbdharunkrishna@gmail.com>
This commit is contained in:
parent
d95f9c9480
commit
cc9a6f4509
1 changed files with 36 additions and 0 deletions
36
pages/common/trufflehog.md
Normal file
36
pages/common/trufflehog.md
Normal file
|
@ -0,0 +1,36 @@
|
|||
# trufflehog
|
||||
|
||||
> Find and verify credentials in files, Git repositories, S3 buckets, and Docker images.
|
||||
> More information: <https://github.com/trufflesecurity/trufflehog>.
|
||||
|
||||
- Scan a Git repository for verified secrets:
|
||||
|
||||
`trufflehog git {{https://github.com/trufflesecurity/test_keys}} --only-verified`
|
||||
|
||||
- Scan a GitHub organization for verified secrets:
|
||||
|
||||
`trufflehog github --org={{trufflesecurity}} --only-verified`
|
||||
|
||||
- Scan a GitHub repository for verified keys and get JSON output:
|
||||
|
||||
`trufflehog git {{https://github.com/trufflesecurity/test_keys}} --only-verified --json`
|
||||
|
||||
- Scan a GitHub repository along with its Issues and Pull Requests:
|
||||
|
||||
`trufflehog github --repo={{https://github.com/trufflesecurity/test_keys}} --issue-comments --pr-comments`
|
||||
|
||||
- Scan an S3 bucket for verified keys:
|
||||
|
||||
`trufflehog s3 --bucket={{bucket name}} --only-verified`
|
||||
|
||||
- Scan S3 buckets using IAM Roles:
|
||||
|
||||
`trufflehog s3 --role-arn={{iam-role-arn}}`
|
||||
|
||||
- Scan individual files or directories:
|
||||
|
||||
`trufflehog filesystem {{path/to/file_or_directory1 path/to/file_or_directory2 ...}}`
|
||||
|
||||
- Scan a Docker image for verified secrets:
|
||||
|
||||
`trufflehog docker --image {{trufflesecurity/secrets}} --only-verified`
|
Loading…
Add table
Reference in a new issue