You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Simplify HTML markup to plain markdown, update the git --help output
to reflect current flags and subcommands, and fix minor formatting
inconsistencies.
Co-authored-by: Cursor <cursoragent@cursor.com>
To learn more about TruffleHog and its features and capabilities, visit our [product page](https://trufflesecurity.com/trufflehog?gclid=CjwKCAjwouexBhAuEiwAtW_Zx5IW87JNj97Ci7heFnA5ar6-DuNzT2Y5nIl9DuZ-FOUqx0Qg3vb9nxoClcEQAvD_BwE).
28
30
29
-
</div>
31
+
30
32
31
33
# :globe_with_meridians: TruffleHog Enterprise
32
34
33
-
Are you interested in continuously monitoring **Git, Jira, Slack, Confluence, Microsoft Teams, Sharepoint (and more)** for credentials? We have an enterprise product that can help! Learn more at <https://trufflesecurity.com/trufflehog-enterprise>.
35
+
Are you interested in continuously monitoring **Git, Jira, Slack, Confluence, Microsoft Teams, Sharepoint (and more)** for credentials? We have an enterprise product that can help! Learn more at [https://trufflesecurity.com/trufflehog-enterprise](https://trufflesecurity.com/trufflehog-enterprise).
34
36
35
37
We take the revenue from the enterprise product to fund more awesome open source projects that the whole community can benefit from.
36
38
37
-
</div>
39
+
38
40
39
41
# What is TruffleHog 🐽
40
42
@@ -66,7 +68,7 @@ Join the [Secret Scanning Discord](https://discord.gg/8Hzbrnkr7E)
To guard against malicious git configs in local scanning (see CVE-2025-41390), TruffleHog clones local git repositories to a temporary directory prior to scanning. This follows [Git's security best practices](https://git-scm.com/docs/git#_security). If you want to specify a custom path to clone the repository to (instead of tmp), you can use the `--clone-path` flag. If you'd like to skip the local cloning process and scan the repository directly (only do this for trusted repos), you can use the `--trust-local-git-config` flag.
@@ -439,56 +438,133 @@ Each subcommand can have options that you can see with the `--help` flag provide
-h, --help Show context-sensitive help (also try --help-long and --help-man).
448
-
--log-level=0 Logging verbosity on a scale of 0 (info) to 5 (trace). Can be disabled with "-1".
449
-
--profile Enables profiling and sets a pprof and fgprof server on :18066.
450
-
-j, --json Output in JSON format.
451
-
--json-legacy Use the pre-v3.0 JSON format. Only works with git, gitlab, and github sources.
452
-
--github-actions Output in GitHub Actions format.
453
-
--concurrency=20 Number of concurrent workers.
454
-
--no-verification Don't verify the results.
455
-
--results=RESULTS Specifies which type(s) of results to output: verified (confirmed valid by API), unknown (verification failed due to error), unverified (detected but not verified), filtered_unverified (unverified but would have been filtered out). Defaults to all types.
456
-
--allow-verification-overlap
447
+
-h, --[no-]help Show context-sensitive help (also try --help-long and --help-man).
448
+
--log-level=0 Logging verbosity on a scale of 0 (info) to 5 (trace). Can be
449
+
disabled with "-1".
450
+
--[no-]profile Enables profiling and sets a pprof and fgprof server on :18066.
451
+
-j, --[no-]json Output in JSON format.
452
+
--[no-]json-legacy Use the pre-v3.0 JSON format. Only works with git, gitlab,
453
+
and github sources.
454
+
--[no-]github-actions Output in GitHub Actions format.
455
+
--concurrency=12 Number of concurrent workers.
456
+
--[no-]no-verification Don't verify the results.
457
+
--results=RESULTS Specifies which type(s) of results to output: verified (confirmed
458
+
valid by API), unknown (verification failed due to error),
459
+
unverified (detected but not verified), filtered_unverified
460
+
(unverified but would have been filtered out). Defaults to
461
+
verified,unverified,unknown.
462
+
--[no-]no-color Disable colorized output
463
+
--[no-]allow-verification-overlap
457
464
Allow verification of similar credentials across detectors
458
-
--filter-unverified Only output first unverified result per chunk per detector if there are more than one results.
465
+
--[no-]filter-unverified Only output first unverified result per chunk per detector if there
466
+
are more than one results.
459
467
--filter-entropy=FILTER-ENTROPY
460
468
Filter unverified results with Shannon entropy. Start with 3.0.
461
469
--config=CONFIG Path to configuration file.
462
-
--print-avg-detector-time
470
+
--[no-]print-avg-detector-time
463
471
Print the average time spent on each detector.
464
-
--no-update Don't check for updates.
465
-
--fail Exit with code 183 if results are found.
472
+
--[no-]no-update Don't check for updates.
473
+
--[no-]fail Exit with code 183 if results are found.
474
+
--[no-]fail-on-scan-errors
475
+
Exit with non-zero error code if an error occurs during the scan.
466
476
--verifier=VERIFIER ... Set custom verification endpoints.
467
-
--custom-verifiers-only Only use custom verification endpoints.
477
+
--[no-]custom-verifiers-only
478
+
Only use custom verification endpoints.
479
+
--detector-timeout=DETECTOR-TIMEOUT
480
+
Maximum time to spend scanning chunks per detector (e.g., 30s).
468
481
--archive-max-size=ARCHIVE-MAX-SIZE
469
482
Maximum size of archive to scan. (Byte units eg. 512B, 2KB, 4MB)
470
483
--archive-max-depth=ARCHIVE-MAX-DEPTH
471
484
Maximum depth of archive to scan.
472
485
--archive-timeout=ARCHIVE-TIMEOUT
473
486
Maximum time to spend extracting an archive.
474
-
--include-detectors="all" Comma separated list of detector types to include. Protobuf name or IDs may be used, as well as ranges.
487
+
--include-detectors="all" Comma separated list of detector types to include. Protobuf name or
488
+
IDs may be used, as well as ranges.
475
489
--exclude-detectors=EXCLUDE-DETECTORS
476
-
Comma separated list of detector types to exclude. Protobuf name or IDs may be used, as well as ranges. IDs defined here take precedence over the include list.
477
-
--version Show application version.
478
-
-i, --include-paths=INCLUDE-PATHS
479
-
Path to file with newline separated regexes for files to include in scan.
480
-
-x, --exclude-paths=EXCLUDE-PATHS
481
-
Path to file with newline separated regexes for files to exclude in scan.
482
-
--exclude-globs=EXCLUDE-GLOBS
483
-
Comma separated list of globs to exclude in scan. This option filters at the `git log` level, resulting in faster scans.
484
-
--since-commit=SINCE-COMMIT
485
-
Commit to start scan from.
486
-
--branch=BRANCH Branch to scan.
487
-
--max-depth=MAX-DEPTH Maximum depth of commits to scan.
488
-
--bare Scan bare repository (e.g. useful while using in pre-receive hooks)
489
-
490
-
Args:
491
-
<uri> Git repository URL. https://, file://, or ssh:// schema expected.
490
+
Comma separated list of detector types to exclude. Protobuf name
491
+
or IDs may be used, as well as ranges. IDs defined here take
492
+
precedence over the include list.
493
+
--[no-]no-verification-cache
494
+
Disable verification caching
495
+
--[no-]force-skip-binaries
496
+
Force skipping binaries.
497
+
--[no-]force-skip-archives
498
+
Force skipping archives.
499
+
--[no-]skip-additional-refs
500
+
Skip additional references.
501
+
--user-agent-suffix=USER-AGENT-SUFFIX
502
+
Suffix to add to User-Agent.
503
+
--[no-]version Show application version.
504
+
505
+
Commands:
506
+
help [<command>...]
507
+
Show help.
508
+
509
+
git [<flags>] <uri>
510
+
511
+
Find credentials in git repositories.
512
+
513
+
github [<flags>]
514
+
Find credentials in GitHub repositories.
515
+
516
+
github-experimental --repo=REPO [<flags>]
517
+
Run an experimental GitHub scan. Must specify at least one experimental sub-module to run:
518
+
object-discovery.
519
+
520
+
gitlab --token=TOKEN [<flags>]
521
+
Find credentials in GitLab repositories.
522
+
523
+
filesystem [<flags>] [<path>...]
524
+
Find credentials in a filesystem.
525
+
526
+
s3 [<flags>]
527
+
Find credentials in S3 buckets.
528
+
529
+
gcs [<flags>]
530
+
Find credentials in GCS buckets.
531
+
532
+
syslog --format=FORMAT [<flags>]
533
+
Scan syslog
534
+
535
+
circleci --token=TOKEN
536
+
Scan CircleCI
537
+
538
+
docker [<flags>]
539
+
Scan Docker Image
540
+
541
+
542
+
travisci --token=TOKEN
543
+
Scan TravisCI
544
+
545
+
postman [<flags>]
546
+
Scan Postman
547
+
548
+
elasticsearch [<flags>]
549
+
Scan Elasticsearch
550
+
551
+
jenkins --url=URL [<flags>]
552
+
Scan Jenkins
553
+
554
+
huggingface [<flags>]
555
+
Find credentials in HuggingFace datasets, models and spaces.
556
+
557
+
stdin
558
+
Find credentials from stdin.
559
+
560
+
multi-scan
561
+
Find credentials in multiple sources defined in configuration.
562
+
563
+
json-enumerator [<path>...]
564
+
Find credentials from a JSON enumerator input.
565
+
566
+
analyze
567
+
Analyze API keys for fine-grained permissions information.
492
568
```
493
569
494
570
For example, to scan a `git` repository, start with
@@ -613,7 +689,7 @@ Depending on the event type (push or PR), we calculate the number of commits pre
@@ -734,4 +809,4 @@ the stability of the public APIs at this time.
734
809
735
810
# License Change
736
811
737
-
Since v3.0, TruffleHog is released under a AGPL 3 license, included in [`LICENSE`](LICENSE). TruffleHog v3.0 uses none of the previous codebase, but care was taken to preserve backwards compatibility on the command line interface. The work previous to this release is still available licensed under GPL 2.0 in the history of this repository and the previous package releases and tags. A completed CLA is required for us to accept contributions going forward.
812
+
Since v3.0, TruffleHog is released under a AGPL 3 license, included in `[LICENSE](LICENSE)`. TruffleHog v3.0 uses none of the previous codebase, but care was taken to preserve backwards compatibility on the command line interface. The work previous to this release is still available licensed under GPL 2.0 in the history of this repository and the previous package releases and tags. A completed CLA is required for us to accept contributions going forward.
0 commit comments