mirror of
https://github.com/gitleaks/gitleaks.git
synced 2026-11-30 21:24:21 +01:00
feat(rules): Add 1Password secret key detection (#1834)
* Add `1password-secret-key` detection * Document key details * Update cmd/generate/config/rules/1password.go Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com> * Generate new `.toml` * Use `GenerateSampleSecrets` to test more scenarios * Comment lowercase `fps` * Decrease entropy --------- Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com>
This commit is contained in:
1 parent
d1c77598da
commit
23cb69fba4
5 files changed
+77
-1
No files matched your search
@@ -62,6 +62,13 @@ stopwords = [
|
||||
"014df517-39d1-4453-b7b3-9930c563627c",
|
||||
]
|
||||
|
||||
[[rules]]
|
||||
id = "1password-secret-key"
|
||||
description = "Uncovered a possible 1Password secret key, potentially compromising access to secrets in vaults."
|
||||
regex = '''\bA3-[A-Z0-9]{6}-(?:(?:[A-Z0-9]{11})|(?:[A-Z0-9]{6}-[A-Z0-9]{5}))-[A-Z0-9]{5}-[A-Z0-9]{5}-[A-Z0-9]{5}\b'''
|
||||
entropy = 3.8
|
||||
keywords = ["a3-"]
|
||||
|
||||
[[rules]]
|
||||
id = "1password-service-account-token"
|
||||
description = "Uncovered a possible 1Password service account token, potentially compromising access to secrets in vaults."
|
||||
|
||||
Reference in new issue
Block a user