Skip to content

Commit

Permalink
Remove negative lookahead from gitleaks generic API secret regex (#3424
Browse files Browse the repository at this point in the history
…) (#3428)

* Remove negative lookahead from gitleaks generic API secret regex

* add @ as possible character in a secret

Co-authored-by: Pieter De Cremer (Semgrep) <[email protected]>
  • Loading branch information
r2c-argo[bot] and 0xDC0DE authored Jul 12, 2024
1 parent e16d7b3 commit dc88c20
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 4 deletions.
18 changes: 17 additions & 1 deletion generic/secrets/gitleaks/generic-api-key.txt
Original file line number Diff line number Diff line change
Expand Up @@ -209,4 +209,20 @@ clientToken: "pub4306832bdc5f2b8b980c492ec2c11ef3",
// ok: generic-api-key
keys: 'privkey1.json',
// ok: generic-api-key
"Keywords": "asdsadsadsaUSAdusadusadsa",
"Keywords": "asdsadsadsaUSAdusadusadsa",


# ruleid: generic-api-key
jenkins.api.token=MbBdK@Rz-NppWpBGAYPDUks7zoc

# ruleid: generic-api-key
jenkins.api.token=MbBdKRz_NppWpBGAYPDUks7zoc

# ruleid: generic-api-key
jenkins.api.token=MbBdKRzNppWpBGAYPDUks7zoc

# ruleid: generic-api-key
jenkins.api.token=MbBdKRz-NppWpBGAYPDUks7zoc

# ruleid: generic-api-key
jenkins.api.token=MbBdK@RzNppWpBGAYPDUks7zoc
Loading

0 comments on commit dc88c20

Please sign in to comment.