Richard Gomez
75dd70e59a
fix(hashicorp): ignore common fps ( #1498 )
...
Based on discussion in https://github.com/gitleaks/gitleaks/issues/1490
2024-09-18 10:22:47 -05:00
Richard Gomez
8510d39ffe
fix(square): make prefix case sensitive ( #1469 )
2024-09-18 10:22:25 -05:00
Richard Gomez
3698060a2b
refactor(kubernetes-secret): collapse rules and update regex ( #1462 )
2024-09-18 10:22:10 -05:00
Zachary Rice
9463ffaa5e
fix flag access ( #1506 )
2024-09-14 04:01:27 -05:00
Zachary Rice
44ad62e0b1
Deprecate detect and protect. Add git, dir, stdin ( #1504 )
...
* init backwards compatible cmd
* update readme, todos
* ...
* moar comments, sprucing up root
* readme change
2024-09-13 19:44:22 -05:00
Dewan Ishtiaque Ahmed
e93a7c0d26
Update Harness rules to add _ and - in the account ID part. ( #1503 )
2024-09-11 19:48:12 -05:00
Richard Gomez
4e43d11093
chore: fix gl workflow error ( #1487 )
2024-08-26 17:47:02 -05:00
Richard Gomez
bd81872eee
Make config generation utils public ( #1480 )
...
* chore(generate): make utils public
* chore(generate): change validate log messages
* chore(generate): split functions into files
* chore(config): add warning for public funcs
2024-08-26 13:11:18 -05:00
Richard Gomez
3be7faa1ff
Update Hashicorp Vault token pattern ( #1483 )
...
* feat(vault): add old pat, tweak new pat
* feat(hashicorp): add entropy to tf rule
2024-08-25 15:19:37 -05:00
malmor
8a1ca9ecc9
Added poetry.lock to default allowlist paths ( #1474 )
2024-08-19 11:47:42 -05:00
Richard Gomez
b4009bfba4
chore: remove unnecessary capture groups ( #1460 )
2024-08-07 12:09:16 -05:00
Richard Gomez
80bd1779e3
Return non-0 exit code from DetectGit ( #1461 )
...
* fix(detect): exit code for git errors
* chore(detect): add consistent error msgs
2024-08-07 10:14:00 -05:00
niklas-w7 and niklas.w
0334ec1076
add gradle verification-metadata.xml to global allowlist ( #1446 )
...
Co-authored-by: niklas.w <niklas.wissmueller@ext.ibmix.de >
2024-08-05 20:35:54 -05:00
Richard Gomez
c1345e1b2b
feat(openshift): add user token ( #1449 )
2024-08-05 20:22:31 -05:00
Leon and Zach
7697b3e989
(feat): Adding secret detection rule for Kubernetes secrets ( #1454 )
...
* (feat): Adding secret detection rule for Kubernetes secrets
Signed-off-by: localleon <me@lrau.xyz >
* (fix): Limiting kubernetes secret detection only to .yaml/.yml files
Signed-off-by: localleon <me@lrau.xyz >
* (fix): Fixing path validation testing for kubernetes-secret
Signed-off-by: localleon <me@lrau.xyz >
* (fix): refactoring path validation regex for kubernetes secret
* (fix): fixing keyword for kubernetes secret
Signed-off-by: localleon <me@lrau.xyz >
* (fix): fixing config.toml for kubernetes-secret and reording rules/main.go
Signed-off-by: localleon <me@lrau.xyz >
* (feat): Implementing proxmitiy matching for data-key in kubernetes secrets
Signed-off-by: localleon <me@lrau.xyz >
* (fix): Adding regex sugestions for quoted strings and qouted test-cases
* (fix): Updating kubernetes-secret regex to allow '-character before secret e.g if theres quoting
* limit whitespace
---------
Signed-off-by: localleon <me@lrau.xyz >
Co-authored-by: Zach <zricer@protonmail.com >
2024-08-05 20:20:52 -05:00
Zachary Rice
26f34692fa
add version to default
2024-06-14 16:48:12 -04:00
AislingHPE
bc979deb0f
Add go.work and go.work.sum to global allowlist ( #1353 )
2024-06-14 15:31:04 -04:00
Dewan Ishtiaque Ahmed and Zachary Rice
b899915813
Add harness PAT and SAT rules ( #1406 )
...
* Add Harness PAT rule.
* Add support for Harness PAT and SAT.
* Update comment for Harness SAT.
* Consolidate PAT and SAT into Harness API Key
* add ignore and capture group to match
---------
Co-authored-by: Zachary Rice <zachary.rice@trufflesec.com >
2024-06-14 15:30:07 -04:00
becojo and Becojo
02808f45d0
Limit hashicorp-tf-password to .tf/.hcl files ( #1420 )
...
* Limit hashicorp-tf-password to .tf/.hcl files
* fix tests
---------
Co-authored-by: Becojo <Becojo@users.noreply.github.com >
2024-06-13 11:23:26 -04:00
Zachary Rice
07e1c30592
rm print
2024-06-13 11:14:44 -04:00
Zachary Rice
db63fc1bf4
reduce telegram... todo url and xml for later
2024-06-13 11:14:02 -04:00
danielap-ma
fe94ef9ca3
Add NewRelic insert key detection ( #1417 )
2024-06-02 18:18:52 -05:00
Tox and toxyl
bb4424d454
Improved Telegram bot token rule regex and added more test cases ( #1404 )
...
Co-authored-by: toxyl <tox@novasonica.com >
2024-06-01 18:56:14 -05:00
Alexandre GUIOT--VALENTIN
575e923cf8
Add intra42 client secret ( #1408 )
...
intra42 is the intranet and API of "42 School", a CS school.
The API is open to all students in 57 campus around the world.
It is thus often subject to credentials leaks on GitHub
See https://42.fr and https://api.intra.42.fr/
2024-06-01 18:55:04 -05:00
shahar4200
39947b0b0d
extend FB access token discovery ( #1407 )
...
* extend FB access token discovery
* validate config
* set upper 40
* set upper 40
2024-05-31 15:51:43 -05:00
Baruch Odem (Rothkoff) and Baruch Odem
79cac73f72
tests: scalingo validation consistent test ( #1359 )
...
* Refactor Scalingo API token regex and add sample token
* improve docs for allowlist
I didn't know it when I made #1358
---------
Co-authored-by: Baruch Odem <baruch.odem@checkmarx.com >
2024-04-29 13:46:16 -05:00
Baruch Odem (Rothkoff) and Baruch Odem
247f423a39
add real (test) standard and restricted keys ( #1375 )
...
Co-authored-by: Baruch Odem <baruch.odem@checkmarx.com >
2024-04-29 13:45:32 -05:00
Baruch Odem (Rothkoff) and Baruch Odem
821b232394
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 >
2024-04-29 13:44:19 -05:00
Baruch Odem (Rothkoff)
db69e8266e
add update token from square ( #1370 )
2024-03-22 13:31:09 -05:00
Baruch Odem (Rothkoff)
4b543280a1
feat: facebook secret, access token, and page access token rules ( #1372 )
...
* Add Facebook secret, access token, and page access token rules
* comment
2024-03-22 13:30:42 -05:00
Baruch Odem (Rothkoff)
979f213b93
update mailchimp with new tokens ( #1376 )
2024-03-22 13:29:59 -05:00
Baruch Odem (Rothkoff)
6c52f878cc
fix: age rule id with dashes ( #1349 )
2024-02-19 09:26:41 -06:00
Kieran Smith
76c9e3175b
Remove IAM identifiers for non-credential resources in the aws-access-token rule ( #1307 )
...
* Remove IAM identifiers for non-credential resources
Only detects:
AWS STS service bearer token
Context-specific credential
Access key
Temporary (AWS STS) access key IDs use this prefix, but are unique only in combination with the secret access key and the session token.
* Update gitleaks.toml
* Update testdata
* Update tests
2024-01-31 13:21:53 -06:00
afe046b3b4
Update stripe rule to not alert on publishable keys ( #1320 )
...
* Update stripe rule to not alert on publishable keys
* run go gen
---------
Co-authored-by: Erin Browning <ebrowning@makenotion.com >
Co-authored-by: Zachary Rice <zachary.rice@trufflesec.com >
2024-01-31 13:13:04 -06:00
Zachary Rice
179c607541
rename filesystem to directory ( #1317 )
2023-12-22 11:08:00 -06:00
Liron Biam
8de8938ad4
Enhance Secret Descriptions ( #1300 )
...
* Enhance secret descriptions in gitleaks.toml
* adjust the rule configuration descriptions
* missing spaces in gitleaks.toml
2023-11-29 17:03:11 -06:00
Zachary Rice
ca7aa14542
Small refactor detect and sources ( #1297 )
2023-11-22 10:37:29 -06:00
Oleksandr Redko
01e60c81e6
chore(config): refactor to go generate; simplify configRules init ( #1295 )
2023-11-21 19:52:50 -06:00
Zach
54f5f04a1f
forgot symlinks
2023-11-19 11:32:10 -06:00
Zachary Rice
221d5c40e7
pretty apparent 'protect' and 'detect' should be merged into one command ( #1294 )
2023-11-19 11:21:40 -06:00
128b50f67b
style: sort the stopwords ( #1289 )
...
* style: sort the stopwords
* run cmd
---------
Co-authored-by: Nick Nungester <nick.nungester@acaglobal.com >
Co-authored-by: Zach <zricer@protonmail.com >
2023-11-18 12:28:17 -06:00
Zachary Rice
e63b657bcf
remove secretgroup from default config ( #1288 )
...
* remove secretgroup from default config
* update test data and AWS
* leave secretgroup
2023-11-10 12:53:07 -06:00
Baruch Odem (Rothkoff)
20fcf5009f
feat: Hashicorp Terraform fields for password ( #1237 )
...
* Hashicorp Terraform fields for password
Fixes #1236
* fix duplicate description
* set caseInsensitive
2023-11-09 14:31:16 -06:00
wayne-snyk
a3ab4e8ac5
refactor: more explicit rules ( #1280 )
2023-10-23 14:11:37 -05:00
Norman Soetbeer
bd9a25a379
bugfix: reduce false positives for stripe tokens by using word boundaries in regex ( #1278 )
2023-10-15 21:41:38 -05:00
Yeonghae Choi
6d0d8b5068
add Infracost API rule ( #1273 )
2023-10-08 20:44:02 -05:00
Brandon Welsch
d9f86d6123
feat(rules): Add detection for Scalingo API Token ( #1262 )
...
* feat(rules): Add detection for Scalingo API Token
* fix(rules): Add boundary on both ends of Scalingo API Token regex to avoid falve positives
2023-09-04 10:20:56 -05:00
Richard Gomez
ed34259e9c
feat(jwt): detect base64-encoded tokens ( #1256 )
2023-08-30 10:39:10 -05:00
Savely Krasovsky
0d5e46fecb
feat: add --ignore-gitleaks-allow cmd flag ( #1260 )
...
* feat: add --ignore-gitleaks-allow cmd flag
* typo: fix
2023-08-30 09:34:59 -05:00
Savely Krasovsky
0b84afa0fa
fix: no-color option should also affect zerolog output ( #1242 )
2023-08-29 11:17:29 -05:00