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
Hi,
I am exploring TruffleHog's secret detection and verification process for local filesystem scans. After reading about TruffleHog's ability to verify secrets via API calls referring to how-trufflehog-verifies-secrets
, I conducted an experiment:
ran TruffleHog on a local file: trufflehog --no-update --local-dev --json --config trufflehog_generic.yaml filesystem test.py
The output I received (partially shown) indicated a detection based on a custom regex rule, but it wasn't verified:
e.g. one of the detected output: {"SourceMetadata":{"Data":{"Filesystem":{"file":"secret.py","line":5}}},"SourceID":1,"SourceType":15,"SourceName":"trufflehog - filesystem","DetectorType":904,"DetectorName":"CustomRegex","DecoderName":"PLAIN","Verified":false,"Raw":"secret is identified as positive.\"\n","RawV2":"","Redacted":"","ExtraData":{"name":"generic-api-key"},"StructuredData":null}
I also noticed that TruffleHog's detections were solely based on the regex rules in trufflehog_generic.yaml file. When I removed all regex from this file, no secrets were detected anymore.
Given these observations, I am wondering:
How can I enable truffleHog to verify the detected secrets?
how can I enable the live API verification feature in my scans?
Thanks.
The text was updated successfully, but these errors were encountered:
Hi,
I am exploring TruffleHog's secret detection and verification process for local filesystem scans. After reading about TruffleHog's ability to verify secrets via API calls referring to how-trufflehog-verifies-secrets
, I conducted an experiment:
ran TruffleHog on a local file:
trufflehog --no-update --local-dev --json --config trufflehog_generic.yaml filesystem test.py
The output I received (partially shown) indicated a detection based on a custom regex rule, but it wasn't verified:
e.g. one of the detected output:
{"SourceMetadata":{"Data":{"Filesystem":{"file":"secret.py","line":5}}},"SourceID":1,"SourceType":15,"SourceName":"trufflehog - filesystem","DetectorType":904,"DetectorName":"CustomRegex","DecoderName":"PLAIN","Verified":false,"Raw":"secret is identified as positive.\"\n","RawV2":"","Redacted":"","ExtraData":{"name":"generic-api-key"},"StructuredData":null}
I also noticed that TruffleHog's detections were solely based on the regex rules in trufflehog_generic.yaml file. When I removed all regex from this file, no secrets were detected anymore.
Given these observations, I am wondering:
Thanks.
The text was updated successfully, but these errors were encountered: