Kashif Khan and Richard Gomez
c6424a6fc3
added sourcegraph token rule ( #1736 )
...
* added sourcegraph token rule
* updated ruleid
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
* added more true positive test cases
---------
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
2025-01-31 09:34:37 -06:00
Richard Gomez
6411402d43
feat(config): add rule for .p12 files ( #1738 )
2025-01-31 09:33:38 -06:00
Jan-Otto Kröpke
d71d95d65e
add deno.lock to default exclusions ( #1740 )
...
* add deno.lock to default exclusions
* Update config.go
2025-01-31 09:32:41 -06:00
Richard Gomez
7fc11bb264
refactor(config): use non-capture groups for allowlists ( #1735 )
...
Non-capture groups appear to be measurably faster.
2025-01-28 19:54:20 -06:00
Aris Zagakos
36c52c6b73
chore: Enhance curl-auth-user to detect empty usernames or passwords ( #1726 )
2025-01-27 08:49:40 -06:00
Richard Gomez
1f323d8b69
fix(cmd): read log-opts before GitLogCmd ( #1730 )
2025-01-27 08:41:33 -06:00
Zachary Rice
d88bc094f7
facebook keyword
2025-01-22 19:15:25 -06:00
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
Zachary Rice
d6a828a530
great branch name ( #1721 )
...
* great branch name
* update test
2025-01-21 19:52:05 -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
Zachary Rice
52b895a603
newline literal ( #1718 )
2025-01-20 21:37:19 -06:00
Richard Gomez
3f4d91fc22
build: support either stdlib or 3rd-party regexp ( #1706 )
2025-01-20 10:45:31 -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
Kashif Khan and Richard Gomez
e977850ab4
added new rule for cisco meraki api key ( #1700 )
...
* added new rule for cisco meraki cloud api key
* Updated style preference
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
* updated keywords
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
* Added entropy
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
* resolved comments
---------
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
2025-01-17 19:17:49 -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
Ben-grmbl
a3f623cc69
chore(regex): simplify secretPrefix, suffix ( #1620 )
...
combined character ranges,
removed duplicates in same character range,
replaced \x060 with literal `
combined \s with \r\n
2025-01-15 18:21:44 -06:00
Roger Meier
7bad9f7654
chore(gcp): add firebase example keys to the gcp-api-key allowlists ( #1635 )
2025-01-15 06:47:08 -06:00
Richard Gomez
977236cb5f
fix: unaligned 64-bit atomic operation panic ( #1696 )
2025-01-15 06:45:37 -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
rmdwe
f0d4499064
Add comma as operator for GenerateSemiGenericRegex ( #1679 )
...
* feat: add comma as operator for GenerateSemiGenericRegex
* test: fix tests.
2025-01-13 08:21:45 -06:00
Richard Gomez
ab38a46986
refactor: central logger ( #1692 )
2025-01-13 08:09:22 -06:00
Ben-grmbl
7edfc6b5d5
chore(tests): test cases for generate.go ( #1623 )
...
GenerateSemiGenericRegex,
GenerateUniqueTokenRegex
to clarify and document current behavior
2024-12-20 20:55:10 -06:00
Kenichi Kamiya
2930537190
fix: generate report file even if no findings ( #1673 )
2024-12-20 10:17:23 -06:00
ahrav
a91c6717a0
replace std library regex engine with go-re2 ( #1669 )
2024-12-20 09:53:01 -06:00
Zachary Rice
8a8306288e
log bytes ( #1670 )
2024-12-20 05:46:25 -06:00
Bert Coppens
f6966057f5
feat: add settlemint api keys detection ( #1663 )
...
* feat: add settlemint api keys detection
* fix regex creation
* use GenerateUniqueTokenRegex
* trigger ci
* ensure tokens have min length of 12
* ensure to set minLength on settlemint token pattern
* set base entropy for settlemint detectors
* update settlemint token regexes to be more precise
2024-12-13 09:18:30 -06:00
Richard Gomez
83e99bacf1
feat(report): allow user-defined templates ( #1650 )
2024-12-10 18:56:11 -06:00
e393d299bc
Add support for GitLab routable tokens ( #1656 )
...
* Add support for GitLab routable tokens #1655
This commit adds support for GitLabs routable tokens.
For the specification see:
https://handbook.gitlab.com/handbook/engineering/architecture/design-documents/cells/routable_tokens/#proposal
Issue: https://github.com/gitleaks/gitleaks/issues/1655
* Add support for GitLab routable tokens #1655
This commit adds increases the entropy.
For the specification see:
https://handbook.gitlab.com/handbook/engineering/architecture/design-documents/cells/routable_tokens/#proposal
Issue: https://github.com/gitleaks/gitleaks/issues/1655
* add word boundary to regex
Co-authored-by: Ben-grmbl <173737458+Ben-grmbl@users.noreply.github.com >
* chore: re-generate gitleaks.toml
Co-authored-by: Ben-grmbl <173737458+Ben-grmbl@users.noreply.github.com >
---------
Co-authored-by: Nicholas Wittstruck <1283061+nwittstruck@users.noreply.github.com >
Co-authored-by: Ben-grmbl <173737458+Ben-grmbl@users.noreply.github.com >
2024-12-06 07:41:41 -06:00
naveen
263ce82365
Add freemius secret key detection ( #1611 )
2024-12-05 10:37:53 -06:00
Richard Gomez
3c0e068b69
fix(kubernetes): only match 'kind: secret' ( #1649 )
2024-12-05 10:22:34 -06:00
Bryce Thuilot
f3adda07ca
feat: use STDOUT when report file not specified ( #1642 )
...
* feat: use STDOUT when report file not specified
Signed-off-by: Bryce Thuilot <bryce@thuilot.io >
* fix: update tests
Signed-off-by: Bryce Thuilot <bryce@thuilot.io >
* fix: use only '-' for stdout report
Signed-off-by: Bryce Thuilot <bryce@thuilot.io >
---------
Signed-off-by: Bryce Thuilot <bryce@thuilot.io >
2024-12-05 09:44:07 -06:00
Richard Gomez
ed205a5f63
fix(dir): skip opening file&dir if allowlist matches ( #1653 )
2024-12-05 08:35:42 -06:00
Ben-grmbl
7f77987d91
feat: detect sentry.io tokens in the new format ( #1640 )
...
sntrys_..., sntryu_...
2024-11-19 09:46:19 -06:00
Ben-grmbl
4e303d0284
fix(easypost): only detect tokens of correct length ( #1628 )
2024-11-05 11:50:41 -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
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