Feat/nuget config password rule (#1540)

* feat: add new rule nuget-config-password

* docs: correct function names within CONTRIBUTING.md
This commit is contained in:
Roger Meier authored and GitHub committed 2024-10-04 08:19:15 -05:00
1 parent bf8a49fc29
commit f6e549901c
4 files changed
+76 -11

No files matched your search

+16
View File
@@ -2442,6 +2442,22 @@ keywords = [
"npm_",
]
[[rules]]
id = "nuget-config-password"
description = "Identified a password within a Nuget config file, potentially compromising package management access."
regex = '''(?i)<add key=\"(?:(?:ClearText)?Password)\"\s*value=\"(.{8,})\"\s*/>'''
path = '''(?i)nuget\.config$'''
entropy = 1
keywords = [
"<add key=",
]
[rules.allowlist]
regexes = [
'''33f!!lloppa''','''hal\+9ooo_da!sY''','''^\%\S.*\%$''',
]
[[rules]]
id = "nytimes-access-token"
description = "Detected a Nytimes Access Token, risking unauthorized access to New York Times APIs and content services."