trufflehog icon indicating copy to clipboard operation
trufflehog copied to clipboard

Add the ability to reverify a secret knowing the secret type

Open CameronLonsdale opened this issue 5 months ago • 6 comments

Description

Reverifying a secret with trufflehog requires re-scanning the source file, since many of the detectors depend on keywords before the secret itself, if you only have access to the secret trufflehog may not identify it as verified.

Preferred Solution

Expose a method to call the verify function on a secret type knowing the secret itself. The scope would be all secrets in trufflehog that have a verifier function, not just those listed in Analyze

Additional Context

It's very similar to the new trufflehog analyze except it's only focused on yes/no verification, not what scopes are present for that secret.

CameronLonsdale avatar May 23 '25 00:05 CameronLonsdale