mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-29 12:44:22 +01:00
Add Sonar rule (#1756)
This commit is contained in:
1 parent
3fa5a3a954
commit
818e32f7a4
3 files changed
+34
No files matched your search
@@ -2941,6 +2941,12 @@ description = "Uncovered a Snyk API token, potentially compromising software vul
|
||||
regex = '''(?i)[\w.-]{0,50}?(?:snyk[_.-]?(?:(?:api|oauth)[_.-]?)?(?:key|token))(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12})(?:[\x60'"\s;]|\\[nr]|$)'''
|
||||
keywords = ["snyk"]
|
||||
|
||||
[[rules]]
|
||||
id = "sonar-api-token"
|
||||
description = "Uncovered a Sonar API token, potentially compromising software vulnerability scanning and code security."
|
||||
regex = '''(?i)[\w.-]{0,50}?(?:sonar[_.-]?(login|token))(?:[ \t\w.-]{0,20})[\s'"]{0,3}(?:=|>|:{1,3}=|\|\||:|=>|\?=|,)[\x60'"\s=]{0,5}([a-z0-9=_\-]{40})(?:[\x60'"\s;]|\\[nr]|$)'''
|
||||
keywords = ["sonar"]
|
||||
|
||||
[[rules]]
|
||||
id = "sourcegraph-access-token"
|
||||
description = "Sourcegraph is a code search and navigation engine."
|
||||
|
||||
Reference in new issue
Block a user