Richard Gomez
3fdaefdaa3
fix(meraki): restrict keyword case ( #1722 )
2025-01-22 10:25:45 -06:00
Richard Gomez
f3ae52e138
feat(generic-api-key): detect base64 ( #1598 )
2025-01-22 09:27:45 -06:00
Richard Gomez
d2ffffecbd
fix(git): remove .git suffix for links ( #1716 )
2025-01-21 19:17:26 -06:00
Richard Gomez
a43dc0d3d0
chore: refine generic-api-key fps + trace logging ( #1720 )
2025-01-21 08:29:24 -06:00
Richard Gomez
69ed20e25e
fix(generate): move newline out of char range ( #1719 )
2025-01-21 08:25:27 -06:00
Richard Gomez
3f4d91fc22
build: support either stdlib or 3rd-party regexp ( #1706 )
2025-01-20 10:45:31 -06:00
Richard Gomez
049f5b2435
chore(detect): update trace logging ( #1713 )
2025-01-20 09:30:59 -06:00
Richard Gomez
7a6183dab0
feat(git): redact passwords from remote URL ( #1709 )
2025-01-19 15:17:07 -06:00
Richard Gomez
3c7f3f0e08
feat(git): include link in report ( #1698 )
2025-01-19 14:03:57 -06:00
Richard Gomez
0e3f4f7abb
chore: reduce generic-api-key fps ( #1707 )
...
Based on scanning ziglang/zig and oven-sh/bun
2025-01-19 07:37:39 -06:00
Richard Gomez
ad7a4fb4ea
feat: general fp tweaks ( #1703 )
2025-01-17 19:13:33 -06:00
Richard Gomez
b2cf03c7e3
chore(generate): use \x60 instead of literal ( #1702 )
2025-01-17 09:37:50 -06:00
Richard Gomez
977236cb5f
fix: unaligned 64-bit atomic operation panic ( #1696 )
2025-01-15 06:45:37 -06:00
Richard Gomez
0e5f644b67
feat(config): disable extended rule ( #1535 )
2025-01-14 18:52:57 -06:00
Richard Gomez
c4526b2c55
refactor(generic-api-key): remove hard-coded 'magic' ( #1600 )
2025-01-13 19:57:25 -06:00
Richard Gomez
748076d976
chore(generate): add failing test case ( #1690 )
2025-01-13 10:21:29 -06:00
Richard Gomez
db8e5e672e
feat(generate): use multiple allowlists ( #1691 )
2025-01-13 08:49:12 -06:00
Richard Gomez
973c794cf0
chore(rules): include fps in reference ( #1471 )
2025-01-13 08:40:20 -06:00
Richard Gomez
ab38a46986
refactor: central logger ( #1692 )
2025-01-13 08:09:22 -06:00
Richard Gomez
7357adca5e
build: add 'toolchain' to go.mod ( #1682 )
2024-12-30 10:08:24 -06:00
Richard Gomez
4c3da6ebb7
refactor(detect): create readUntilSafeBoundary + add tests ( #1676 )
2024-12-28 15:14:49 -06:00
Richard Gomez
efe40cae39
fix: only use non-empty secret groups ( #1632 )
2024-12-20 20:53:44 -06:00
Richard Gomez
7cb5f6f64c
build: upgrade sprig v2->v3 ( #1674 )
2024-12-20 19:44:18 -06:00
Richard Gomez
0bf13fc25a
feat(dir): better chunking ( #1665 )
2024-12-12 10:27:27 -06:00
Richard Gomez
83e99bacf1
feat(report): allow user-defined templates ( #1650 )
2024-12-10 18:56:11 -06:00
Richard Gomez
3c0e068b69
fix(kubernetes): only match 'kind: secret' ( #1649 )
2024-12-05 10:22:34 -06:00
Richard Gomez
ed205a5f63
fix(dir): skip opening file&dir if allowlist matches ( #1653 )
2024-12-05 08:35:42 -06:00
Richard Gomez
6018012b7e
fix: increase chunk size 10kb -> 100kb ( #1652 )
2024-12-01 19:42:40 -06:00
Richard Gomez
c1add1d268
feat(dir): continue on permission error ( #1621 )
2024-11-05 07:58:36 -06:00
Richard Gomez
48ea14bd47
feat: update global & generic allowlist ( #1618 )
2024-10-30 19:23:23 -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
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 )
2024-10-28 08:25:25 -05:00
Richard Gomez
b6e0eeeb0a
fix(config): ignore jquery/swagger w/o version ( #1607 )
2024-10-28 08:18:42 -05:00
Richard Gomez
961f2e674f
feat(generic-api-key): tune false positives ( #1606 )
2024-10-27 19:24:06 -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
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
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 )
2024-10-17 19:15: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'
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
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 )
2024-10-07 07:30:01 -05:00
Richard Gomez
00bb82153e
feat: add PrivateAI rule ( #1548 )
2024-10-06 07:28:47 -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
Richard Gomez
c5b15c9d74
refactor(config): keyword map ( #1538 )
2024-09-30 07:32:25 -05:00
Richard Gomez
4e8d7d3790
fix: handle pre-commit and staged ( #1533 )
2024-09-27 19:11:48 -05:00
Richard Gomez
ed19c4e8b4
fix(config): extend allowlist & handle extend when validating ( #1524 )
2024-09-25 08:20:19 -05:00
Richard Gomez
989ef19fb0
refactor(kubernetes-secret): tweak variable chars ( #1520 )
2024-09-25 08:02:15 -05:00
Richard Gomez
191eb43841
Revert "remove validate config test temporarily" ( #1529 )
...
* Revert "remove validate config test temporarily"
This reverts commit 1a6d2b0a7a .
* style: fix lint error
2024-09-25 08:01:26 -05:00
Richard Gomez
78f7d3f5df
feat: create fly.io rule ( #1528 )
2024-09-24 16:09:15 -05:00
Richard Gomez
9e06824372
Restrict Etsy keywords ( #1491 )
...
* feat(etsy): tweak keywords
* fix(etsy): make identifiers case sensitive
The prior commit didn't work because the identifiers are made intentionally case insensitive.
See: https://github.com/gitleaks/gitleaks/blob/4e43d1109303568509596ef5ef576fbdc0509891/cmd/generate/config/utils/generate.go#L35-L37
2024-09-18 10:24:41 -05:00
Richard Gomez
db782603f7
feat(github): add entropy to rule ( #1489 )
2024-09-18 10:23:44 -05:00
Richard Gomez
df126a7473
feat(gcp): update api key rule ( #1481 )
2024-09-18 10:23:18 -05:00
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
Richard Gomez
128cd22f7c
fix(rule): comment out errant validation case ( #1509 )
...
This should be re-enabled once a more suitable fix is implemented.
2024-09-16 06:17:26 -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
Richard Gomez
1aae66d564
feat(config): update rule validation ( #1466 )
2024-08-22 09:55:44 -05:00
Richard Gomez
f361c5ef71
fix(detect): handle EOF with bytes ( #1472 )
2024-08-19 14:00:47 -05:00
Richard Gomez
525c4b4451
refactor(sarif): remove |name| and change |shortDescription| ( #1473 )
2024-08-19 09:11:31 -05:00
Richard Gomez
c0fda4358e
Use rule id for config validation error ( #1463 )
...
* chore(config): use rule id for error
* feat(config): ensure rule.id is not empty
2024-08-08 15:47:34 -05:00
Richard Gomez
d3c4b9078e
Use first non-empty group if secretGroup isn't set ( #1459 )
...
* feat(detect): secret is first non-empty group
* test: fix errors
- update capture groups
- update expected data
2024-08-07 12:10:05 -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
Richard Gomez
c1345e1b2b
feat(openshift): add user token ( #1449 )
2024-08-05 20:22:31 -05:00
Richard Gomez
ed34259e9c
feat(jwt): detect base64-encoded tokens ( #1256 )
2023-08-30 10:39:10 -05:00
Richard Gomez
e9135cf0b5
fix(jwt): longer segment lengths ( #1214 )
2023-08-29 10:54:09 -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
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
Richard Gomez
06db3b91d7
chore(config): fix inconsistent generated values ( #1200 )
2023-06-16 11:27:53 -05:00
Richard Gomez
463d24618f
feat(slack): update token regex ( #1161 )
2023-06-15 07:17:01 -05:00
Richard Gomez and Richard Gomez
7f53b033fe
feat: add warning for quoted --log-opts values ( #1160 )
...
Co-authored-by: Richard Gomez <richard@rbcrt.com >
2023-06-14 09:26:24 -05:00
Richard Gomez
91ff8f9b70
Ignore all comits when .gitleaksignore fingerprint lacks SHA ( #1156 )
...
* fix: .gitleaksignore without sha in fingerprint
* chore: add prior commit to .gitleaksignore
2023-06-13 13:42:51 -05:00
Richard Gomez
51ca0f89b9
fix(detect): extra secret from group before checking allowlist ( #1152 )
2023-04-19 11:57:24 -05:00
Richard Gomez
81cf30855c
Fix G307 warning: Deferring unsafe method "Close" on type "*os.File" ( #1154 )
...
* fix: check potential error from file.Close
* fix(detect): use existing logger
2023-04-19 11:56:08 -05:00
Richard Gomez
bd8b145bea
fix(detect): avoid panic with verbose flag ( #1143 )
...
* fix(detect): avoid panic with verbose flag
* chore: fix minor syntax error
* fix: properly print secret with colour
* fix(detect): use lineEndIdx
2023-04-19 11:55:33 -05:00