Vulnerability Discovery and Analysis

A secrets scanner's default rules miss a client's internal API tokens, which start with "svc_" followed by 32 hex characters. Lowering the entropy threshold far enough to catch them also flags hundreds of commit hashes. What is the BEST way to find the tokens?

Show the answer

Correct answerA. Add a custom regex rule for the svc_ prefix and length

AWhy this is right: A pattern rule on the fixed prefix and length targets the tokens without matching commit hashes.

BWhy not this: SCA matches third-party components to known CVEs and does not search for credentials in code.

CWhy not this: A lower threshold flags more random-looking strings, so hash false positives would multiply.

DWhy not this: DAST tests a running app from outside and does not read repository contents for tokens.

Secrets scanners match known patterns and flag high-entropy strings. Hex tokens have low entropy, so a rule matching the fixed prefix and length finds them precisely. Lowering the threshold further only adds more false positives such as commit hashes.