mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 20:54:22 +01:00
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:
1 parent
bf8a49fc29
commit
f6e549901c
4 files changed
+76
-11
No files matched your search
@@ -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."
|
||||
|
||||
Reference in new issue
Block a user