Merge pull request #8043 from github/esbena/sharpen-hardcoded-credentials

JS: Sharpen hardcoded credentials
This commit is contained in:
Esben Sparre Andreasen
2022-02-21 10:02:58 +01:00
committed by GitHub
8 changed files with 248 additions and 180 deletions

View File

@@ -214,7 +214,8 @@ module PasswordHeuristics {
or
exists(string normalized | normalized = password.toLowerCase() |
count(normalized.charAt(_)) = 1 or
normalized.regexpMatch(".*(pass|test|sample|example|secret|root|admin|user|change|auth).*")
normalized
.regexpMatch(".*(pass|test|sample|example|secret|root|admin|user|change|auth|fake|(my(token|password))|string|foo|bar|baz|qux|1234|3141|abcd).*")
)
}