exclude credentials as kind key from hardcoded-credentials when the key looks like a dummy password

This commit is contained in:
erik-krogh
2024-05-03 13:58:11 +02:00
parent 880262d462
commit ff85db36e2

View File

@@ -30,7 +30,7 @@ where
// exclude dummy passwords and templates
not (
sink.getNode().(Sink).(DefaultCredentialsSink).getKind() =
["password", "credentials", "token"] and
["password", "credentials", "token", "key"] and
PasswordHeuristics::isDummyPassword(val)
or
sink.getNode().(Sink).getKind() = "authorization header" and