Merge pull request #8395 from alexrford/ruby/clear-text-storage

Ruby: add `rb/clear-text-storage-sensitive-data` query
This commit is contained in:
Alex Ford
2022-03-21 10:05:39 +00:00
committed by GitHub
17 changed files with 626 additions and 258 deletions

View File

@@ -98,7 +98,8 @@ module HeuristicNames {
* suggesting nouns within the string do not represent the meaning of the whole string (e.g. a URL or a SQL query).
*/
string notSensitiveRegexp() {
result = "(?is).*([^\\w$.-]|redact|censor|obfuscate|hash|md5|sha|((?<!un)(en))?(crypt|code)).*"
result =
"(?is).*([^\\w$.-]|redact|censor|obfuscate|hash|md5|sha|random|((?<!un)(en))?(crypt|code)).*"
}
/**