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:
Jordan BradfordandRichard Gomez authored and GitHub committed 2025-04-30 09:30:58 -05:00
1 parent d1c77598da
commit 23cb69fba4
5 files changed
+77 -1

No files matched your search

+6
View File
@@ -1,6 +1,12 @@
title = "gitleaks config"
# https://learnxinyminutes.com/docs/toml/ for toml reference
[[rules]]
description = "1Password Secret Key"
id = "1password-secret-key"
regex = '''A3-[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}'''
tags = ["1Password"]
[[rules]]
description = "AWS Access Key"
id = "aws-access-key"