mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 13:14:22 +01:00
feat: add settlemint api keys detection (#1663)
* feat: add settlemint api keys detection * fix regex creation * use GenerateUniqueTokenRegex * trigger ci * ensure tokens have min length of 12 * ensure to set minLength on settlemint token pattern * set base entropy for settlemint detectors * update settlemint token regexes to be more precise
This commit is contained in:
1 parent
0bf13fc25a
commit
f6966057f5
3 files changed
+94
No files matched your search
@@ -2743,6 +2743,27 @@ regex = '''\b(sntryu_[a-f0-9]{64})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
entropy = 3.5
|
||||
keywords = ["sntryu_"]
|
||||
|
||||
[[rules]]
|
||||
id = "settlemint-application-access-token"
|
||||
description = "Found a Settlemint Application Access Token."
|
||||
regex = '''\b(sm_aat_[a-zA-Z0-9]{16})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
entropy = 3
|
||||
keywords = ["sm_aat"]
|
||||
|
||||
[[rules]]
|
||||
id = "settlemint-personal-access-token"
|
||||
description = "Found a Settlemint Personal Access Token."
|
||||
regex = '''\b(sm_pat_[a-zA-Z0-9]{16})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
entropy = 3
|
||||
keywords = ["sm_pat"]
|
||||
|
||||
[[rules]]
|
||||
id = "settlemint-service-access-token"
|
||||
description = "Found a Settlemint Service Access Token."
|
||||
regex = '''\b(sm_sat_[a-zA-Z0-9]{16})(?:['|\"|\n|\r|\s|\x60|;]|$)'''
|
||||
entropy = 3
|
||||
keywords = ["sm_sat"]
|
||||
|
||||
[[rules]]
|
||||
id = "shippo-api-token"
|
||||
description = "Discovered a Shippo API token, potentially compromising shipping services and customer order data."
|
||||
|
||||
Reference in new issue
Block a user