Merge pull request #198 from sauyon/hardcoded-cred-fix

HardcodedCredentials: Exclude passwords that include '0123456789'
This commit is contained in:
Max Schaefer
2019-12-06 09:02:17 +00:00
committed by GitHub Enterprise

View File

@@ -245,7 +245,7 @@ module PasswordHeuristics {
exists(string normalized | normalized = password.toLowerCase() |
count(normalized.charAt(_)) = 1 or
normalized
.regexpMatch(".*(pass|test|sample|example|secret|root|admin|user|change|auth|redacted).*")
.regexpMatch(".*(pass|test|sample|example|secret|root|admin|user|change|auth|redacted|0123456789).*")
)
}
}