mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 05:04:22 +01:00
added sourcegraph token rule (#1736)
* added sourcegraph token rule * updated ruleid Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com> * added more true positive test cases --------- Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com>
This commit is contained in:
1 parent
6411402d43
commit
c6424a6fc3
3 files changed
+45
No files matched your search
@@ -2939,6 +2939,16 @@ 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 = "sourcegraph-access-token"
|
||||
description = "Sourcegraph is a code search and navigation engine."
|
||||
regex = '''(?i)\b(\b(sgp_(?:[a-fA-F0-9]{16}|local)_[a-fA-F0-9]{40}|sgp_[a-fA-F0-9]{40}|[a-fA-F0-9]{40})\b)(?:[\x60'"\s;]|\\[nr]|$)'''
|
||||
entropy = 3
|
||||
keywords = [
|
||||
"sgp_",
|
||||
"sourcegraph",
|
||||
]
|
||||
|
||||
[[rules]]
|
||||
id = "square-access-token"
|
||||
description = "Detected a Square Access Token, risking unauthorized payment processing and financial transaction exposure."
|
||||
|
||||
Reference in new issue
Block a user