mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-12-01 21:44:23 +01:00
Add Cloudflare API and Origin CA keys (#1374)
* add real heroku example * Add Cloudflare API and Origin CA keys --------- Co-authored-by: Baruch Odem <baruch.odem@checkmarx.com>
This commit is contained in:
1 parent
57ac4b3dc7
commit
821b232394
4 files changed
+104
No files matched your search
@@ -177,6 +177,30 @@ keywords = [
|
||||
"clojars",
|
||||
]
|
||||
|
||||
[[rules]]
|
||||
id = "cloudflare-api-key"
|
||||
description = "Detected a Cloudflare API Key, potentially compromising cloud application deployments and operational security."
|
||||
regex = '''(?i)(?:cloudflare)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}([a-z0-9_-]{40})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
keywords = [
|
||||
"cloudflare",
|
||||
]
|
||||
|
||||
[[rules]]
|
||||
id = "cloudflare-global-api-key"
|
||||
description = "Detected a Cloudflare Global API Key, potentially compromising cloud application deployments and operational security."
|
||||
regex = '''(?i)(?:cloudflare)(?:[0-9a-z\-_\t .]{0,20})(?:[\s|']|[\s|"]){0,3}(?:=|>|:{1,3}=|\|\|:|<=|=>|:|\?=)(?:'|\"|\s|=|\x60){0,5}([a-f0-9]{37})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
keywords = [
|
||||
"cloudflare",
|
||||
]
|
||||
|
||||
[[rules]]
|
||||
id = "cloudflare-origin-ca-key"
|
||||
description = "Detected a Cloudflare Origin CA Key, potentially compromising cloud application deployments and operational security."
|
||||
regex = '''\b(v1\.0-[a-f0-9]{24}-[a-f0-9]{146})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
keywords = [
|
||||
"cloudflare","v1.0-",
|
||||
]
|
||||
|
||||
[[rules]]
|
||||
id = "codecov-access-token"
|
||||
description = "Found a pattern resembling a Codecov Access Token, posing a risk of unauthorized access to code coverage reports and sensitive data."
|
||||
|
||||
Reference in new issue
Block a user