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
Frank and Zachary Rice
30c6117aaa
feat: Add optional redaction value, default 100 ( #1229 )
...
This commit introduces an optional value for the --redact flag, allowing
users to specify the extent of redaction for secrets. The valid range of
values is from 0 (no redaction) to 100 (full redaction).
If no value is provided, the default redaction value is set to 100,
resulting in complete redaction by replacing the secret with the term
'REDACTED'. This preserves the original behavior of the --redact flag.
Co-authored-by: Zachary Rice <zachary.rice@trufflesec.com >
2023-08-29 11:03:23 -05:00
Richard Gomez
e9135cf0b5
fix(jwt): longer segment lengths ( #1214 )
2023-08-29 10:54:09 -05:00
Jasper Boeijenga
f65f9157ff
Added yarn.lock file to default allowlist paths ( #1258 )
2023-08-29 10:41:03 -05:00
Richard Gomez
18283bb48e
feat(rules): make case insensitivity optional ( #1215 )
2023-08-24 10:41:52 -05:00
Richard Gomez
9fb36b242d
feat(rules): detect Hugging Face access tokens ( #1204 )
2023-08-24 10:38:19 -05:00
Matjaž Domen Pečan
db4bc0fe76
Resolve #1170 - Enable selection of a single rule ( #1183 )
...
* Gitleaks issue #1170 - Feature request to add a flag to enable a subset of rules on the command line.
* Added documentation.
2023-08-24 09:56:17 -05:00
Warren Parad
3cbcda20d2
Update authress.go to include alternate form account dash (-) ( #1224 )
2023-08-24 09:28:39 -05:00
Richard Gomez
163ec21120
fix(sumologic): improve patterns ( #1218 )
...
This fixes #1149 .
2023-08-23 10:15:20 -05:00
Richard Gomez
b1a2ce7296
fix(plaid): include entropy in go definition ( #1252 )
2023-08-21 09:06:26 -05:00
Richard Gomez
34e67229e6
feat(config): update template logic ( #1201 )
2023-08-17 12:42:07 -05:00
Baruch Odem (Rothkoff)
f0dcd4d9cf
feat: add JFrog API and Identity keys ( #1233 )
...
* first commit
* feat: add JFrog API and Identity key
2023-07-17 07:27:15 -05:00
Richard Gomez
06db3b91d7
chore(config): fix inconsistent generated values ( #1200 )
2023-06-16 11:27:53 -05:00
Zachary Rice
7804d652c0
Revert "Initial set of Azure secrets for #539 ( #1079 )" ( #1197 )
...
This reverts commit 7911ac60d7 .
2023-06-15 07:44:13 -05:00
Dimitri Vasdekis and Jesse Houwing
7911ac60d7
Initial set of Azure secrets for #539 ( #1079 )
...
* Initial secret set
* Covered off all rule types in comments
* Finished Azure and Ansible rules
* About to run go run main.go
* Fixed some rules, but tests need work
* Initial secret set for Azure
Needs work - many tests fail
* Fix remaining Azure secrets - but couldn't get XML to work
* Update .gitignore
Co-authored-by: Jesse Houwing <jesse.houwing@gmail.com >
---------
Co-authored-by: Jesse Houwing <jesse.houwing@gmail.com >
2023-06-15 07:23:08 -05:00
Richard Gomez
463d24618f
feat(slack): update token regex ( #1161 )
2023-06-15 07:17:01 -05:00
Becojo
7dc9ba40a7
Add detection for OpenAI API keys ( #1148 )
...
* Add detection for OpenAI API keys
* Remove `sk-` keyword
2023-06-14 09:02:37 -05:00
Zach
b1d59bf890
fix broken vet, format some stuff
2023-06-13 16:05:04 -05:00
Malte Morgenstern
0dbdde837f
Add junit report format ( #920 )
...
* add junit report format
* add fingerprint to expected test result to fix tests
* fix expected junit test report
2023-06-13 13:37:32 -05:00
wayne-snyk
a685551299
Add makefile variable detections ( #1191 )
...
* add makefile variable definitions
* update snyk tests
* regenerate config
2023-06-12 08:14:15 -05:00
wayne-snyk
ab5fc21e82
Add detection for Snyk tokens ( #1190 )
...
* add snyk token
* add snyk token to rules
* s/snyk_token/snyk
2023-06-09 10:08:48 -05:00
Paulo Correia
6f75511665
Added option to specify .gitleaksignore path ( #1179 )
2023-06-05 17:03:26 -05:00
Oleksandr Redko
6705461b33
Fix typos in *.md, comments and logs ( #1185 )
2023-05-30 07:08:42 -05:00
Zachary Rice
63c3076ea2
No color ( #1136 )
...
* safer out of bounds
* no color option
* readme
2023-03-29 16:56:01 -05:00
Warren Parad
9c6650d14a
Add Authress access key format: https://authress.io/knowledge-base/docs/authorization/service-clients/secrets-scanning/ ( #1131 )
2023-03-28 11:23:34 -05:00
Rafael Figueiredo and Rafael Figueiredo
9701bf1724
Bufix/1100 protect stagged files ( #1121 )
...
* create repo with stagged secrets
* add .gitleaksignore to testdata repo
* fix typo
* add gitleaksignore to detector on protect command
---------
Co-authored-by: Rafael Figueiredo <rfigueiredo@garoa.cloud >
2023-03-21 08:50:34 -05:00
Zach
a5b9c24779
remove extra default on source option
2023-03-21 08:08:04 -05:00
Florian Greinacher
8a31f4a4be
Improve rule descriptions for Stripe and Facebook access tokens ( #1119 )
2023-03-17 09:50:09 -05:00
Caleb Jasik
6b0c303b26
Add Defined Networking API Tokens ( #1096 )
...
Adds detection support for Defined Networking tokens (https://docs.defined.net/guides/automating-host-creation/ )
I added a fixture in addition to the generator, I think I may be able to use the `generateUniqueToken` instead of the semi-generic option? Let me know if I should update accordingly.
Remove testing fixture
2023-03-14 14:46:45 -05:00
wolframhaussig
1fb3a77eb8
Update gitleaks.toml ( #1116 )
...
Use Word Boundaries for EasyPost Tokens
2023-03-14 11:06:17 -05:00
Juan C. Mancebo
11c2ad01a4
Add gradle.lockfile to allowlist ( #1112 )
2023-03-03 10:24:21 -06:00
Joost Voskuil
2dd9946052
Add pnpm-lock.yaml and Database.refactorlo ( #1109 )
2023-02-28 15:07:38 -06:00