Ben-grmbl
4e303d0284
fix(easypost): only detect tokens of correct length ( #1628 )
2024-11-05 11:50:41 -06:00
Richard Gomez
c1add1d268
feat(dir): continue on permission error ( #1621 )
2024-11-05 07:58:36 -06:00
amanda-friesen
202106a190
Add human readable description for curl rules ( #1625 )
...
Provides more context to the user than the base rule name.
2024-11-05 07:40:29 -06:00
Taiki Ono
8e94f98e92
Add option to include Line field in report ( #1616 )
...
Signed-off-by: Taiki Ono <taiki@finatext.com >
2024-10-31 15:51:53 -05:00
Zach
dbb42a727d
hm
2024-10-31 08:35:55 -05:00
Zachary Rice
259946000b
Update README.md
2024-10-31 08:31:50 -05:00
Zachary Rice
8ffb980ee5
nop for stupid build
2024-10-31 08:30:57 -05:00
Oscar Blanco and Richard Gomez
4181ad647a
Add new jira api token pattern ( #1601 )
...
* add new jira api token pattern
* Apply suggestions from code review
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
* apply comments from PR
* Apply suggestions from code review
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
* apply comments from PR
---------
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
2024-10-31 08:19:05 -05:00
Richard Gomez
48ea14bd47
feat: update global & generic allowlist ( #1618 )
2024-10-30 19:23:23 -05:00
81f0002845
fix(vault-service-token): ensure that TPS contains digits ( #1614 )
...
* fix(vault-service-token): ensure that TPS contains digits
Chances of randomly generating a 24 letter string without digits:
P = ( (26+26) / (26+26+10) ) ^ 24 = 1.46 %
* fixt
---------
Co-authored-by: Zachary Rice <zricer@protonmail.com >
Co-authored-by: Zachary Rice <zachary.rice@trufflesec.com >
2024-10-30 15:49:06 -05:00
Richard Gomez
c11adc91ad
Generate comprehensive secret samples ( #1484 )
...
* feat(config): comprehensive samples
* refactor(config): use new generate func
* chore(config): comment unsupported cases
* feat(config): enable '?=' case
* feat(config): enable '+=' case
* feat(config): enable escaped json case
* feat(config): enable '<' (xml) case
* feat(config): enable multiline yaml case
* chore(config): add comment case
* feat(config): add php cases
* feat(config): add java case
* chore(config): address review comments
* fix(config): prevent matching '=='
* feat(config): add URL cases
* chore(config): revert regex changes
To be tackled in separate PRs.
2024-10-30 09:34:21 -05:00
Ben-grmbl
d1d9054ef0
fix(aws): detect token in url ( #1615 )
2024-10-30 08:21:14 -05:00
Ben-grmbl
5fe58bf0b0
fix(rules): entropy, uppercase in samples ( #1593 )
...
`go generate` was slightly flaky,
since the example true positive secrets for these rules
did not include uppercase letters
and/or the min entropy was just barely too high
2024-10-29 16:33:09 -05:00
Richard Gomez
5c2e8132f2
feat: tweak rules ( #1608 )
2024-10-29 01:47:12 -05:00
Richard Gomez
43fae355e6
feat(rules): create Octopus Deploy api key ( #1602 )
v8.21.2
2024-10-28 08:25:25 -05:00
Ben-grmbl
a158e4fc15
fix(aws-access-token): only match if correct length ( #1584 )
...
Previously, the rule matched for any long string
containing e.g. ASIA, ACCA somewhere,
as long as the next 16 chars were also uppercase letters.
This change checks for word boundaries before and after the secret.
Also the prefix (AKIA|ASIA|...) was moved from the non-capturing group
into the secret matching group,
since it is part of the token
fix(aws-access-token): non-capture for prefix
Review findings https://github.com/gitleaks/gitleaks/pull/1584/files#r1807793907
2024-10-28 08:19:48 -05:00
Richard Gomez
b6e0eeeb0a
fix(config): ignore jquery/swagger w/o version ( #1607 )
2024-10-28 08:18:42 -05:00
Roger Meier
722e7d8e73
feat: add new GitLab tokens ( #1560 )
...
Closes #1401
2024-10-28 08:15:36 -05:00
Richard Gomez
961f2e674f
feat(generic-api-key): tune false positives ( #1606 )
2024-10-27 19:24:06 -05:00
Zachary Rice
e734fcf01d
Create .gitleaks.toml ( #1605 )
2024-10-27 08:01:40 -05:00
Richard Gomez
7206d6bc56
feat(curl): tweak tps and fps ( #1603 )
2024-10-27 07:43:55 -05:00
Richard Gomez
2db25f1367
feat(config): ignore swagger-ui assets ( #1604 )
...
also, ignore public known checkmarx secret
2024-10-27 07:43:14 -05:00
Ben-grmbl
e97695b852
feat(generic-api-key): exclude keywords ( #1587 )
...
* fix(config.tmpl) missing \n for rules with regexes AND stopwords
patch provided by rgmx
fix(config.tmpl) omit `condition=OR`
* feat(generic-api-key): exclude keywords
prevent matching the rule generic-api-key on e.g.
- public_key
- api_version
- client_id
- client_name
- keyword
- monkey
feat(generic-api-key): review findings
- combine capture groups
- remove mapKey from allowList
fix(generic): make monkey, donkey, case-sensitive
avoids matching on e.g. pokemonKey=
* feat(generic) remove client, add credential
exclude more composite words with key
2024-10-25 15:26:00 -05:00
Richard Gomez
0afb525e59
feat(okta): bump entropy to 4 ( #1599 )
2024-10-25 08:00:59 -05:00
Richard Gomez
2068870c8d
feat: update global allowlist ( #1597 )
2024-10-24 08:17:27 -05:00
Richard Gomez
8cf93b9ad5
refactor(allowlist): deduplicate commits & keywords ( #1596 )
2024-10-24 07:28:55 -05:00
Richard Gomez
50c2818167
feat(config): ignore jquery static assets ( #1595 )
2024-10-23 07:30:48 -05:00
Richard Gomez
455ae0aab7
More rule fixes ( #1586 )
...
* feat: tweak more rules
* fix(curl): update pattern & ignore more stuff
* chore: update .gitleaksignore
2024-10-22 08:23:47 -05:00
Richard Gomez
5407c44e0c
chore: log skipped symlinks ( #1591 )
2024-10-22 08:23:10 -05:00
Richard Gomez
d03d6c401b
feat: match left side of identifier ( #1585 )
2024-10-20 09:38:18 -05:00
Zach
851c11ab1a
what secrets?
2024-10-19 19:58:07 -05:00
Richard Gomez
8cfa6b2e43
fix(rules): add entropy ( #1580 )
2024-10-19 19:49:36 -05:00
Richard Gomez
9152eaa57a
feat(aws): add entropy & allowlist ( #1582 )
2024-10-19 19:47:45 -05:00
Richard Gomez
93acc6e82a
feat(rules): add 1password token ( #1583 )
2024-10-19 19:47:07 -05:00
Richard Gomez
83a57244cd
feat(config): add curl header rule ( #1576 )
2024-10-18 20:06:31 -05:00
Richard Gomez
cf5334fd61
feat: add curl basic auth rule ( #1575 )
v8.21.1
2024-10-17 19:15:30 -05:00
ReRetriever
d07b394b08
Update spelling in README.md ( #1574 )
2024-10-17 10:53:30 -05:00
Richard Gomez
5c03fa4a3e
refactor(allowlist): use iota for condition ( #1569 )
2024-10-16 14:59:37 -05:00
Richard Gomez
12034a71c5
refactor(config): temporarily switch to [rules.allowlist] ( #1573 )
2024-10-16 14:49:34 -05:00
Richard Gomez
aabe381539
Define multiple allowlists per rule ( #1496 )
...
* feat: multiple rule allowlists
* feat(config): add allowlist 'condition'
v8.21.0
2024-10-14 19:17:37 -05:00
Richard Gomez
8ea608595c
build: upgrade gitleaks/go-gitdiff to v0.9.1 ( #1559 )
2024-10-13 06:46:44 -05:00
Rebecca Turner
be9d0f8930
Fix rule extension ( #1556 )
...
* Reimplement the ability to override built-in rules
PR #1524 broke the ability to specify a `[[rules]]` with the same ID as
a built-in rule in order to extend the default configuration.
This PR restores this ability, but merges the provided configuration
with the default rule instead of overwriting the default rule wholesale.
* Add tests
* Append keywords and tags
2024-10-10 16:50:29 -05:00
Richard Gomez
9988e5224c
Update base config allowlist ( #1555 )
...
* feat(config): add String fmt placeholders
* feat(config): ignore font files
* feat(config): ignore repeated characters
2024-10-10 02:05:16 -05:00
Richard Gomez
8fb39ba8dc
feat(azure): detect Azure AD client secrets ( #1199 )
2024-10-09 06:44:19 -05:00
Richard Gomez
14c924dd02
chore: match gitleaks.toml anywhere ( #1553 )
2024-10-08 09:39:44 -05:00
Richard Gomez
b2fbaeb900
feat(config): add placeholder regexes to global allowlist ( #1547 )
v8.20.1
2024-10-07 07:30:01 -05:00
Richard Gomez
00bb82153e
feat: add PrivateAI rule ( #1548 )
2024-10-06 07:28:47 -05:00
Jannik Hollenbach
445abe356b
Bump golang verion used in docker build to match version specified in go.mod ( #1551 )
...
Signed-off-by: Jannik Hollenbach <jannik.hollenbach@owasp.org >
2024-10-06 06:48:00 -05:00
Richard Gomez
1a2f656278
feat: add cohere rule ( #1549 )
2024-10-04 19:39:53 -05:00
Richard Gomez
82d737d851
feat(generate): generate global ( #1546 )
2024-10-04 10:28:34 -05:00