Tomás Ralph
ddcc75371f
implement new openai regex pattern ( #1780 )
...
* implement new openai regex pattern
* implement key in config generation
* support admin keys, support 58 char length keys
* add examples to tp slice
2025-03-27 17:48:57 -05:00
Thomas Nilsson
9708e65c25
A first attempt adding hooks.slack.com/triggers/ ( #1792 )
...
As described in issue 1791, the hooks.slack.com/triggers should perhaps
also be detected.
Reference
https://slack.com/help/articles/360041352714-Build-a-workflow--Create-a-workflow-that-starts-outside-of-Slack
Feel free to use, change any part of this proposed fix, or to simply
discard it.
(ps. I did a minor typo in a comment in issue 1791, proposing this
change but that was corrected here. ds.)
2025-03-27 13:50:19 -05:00
Richard Gomez
198e41051e
feat(generic): tweak false-positives ( #1803 )
2025-03-24 08:14:46 -05:00
Richard Gomez
e273a970a4
chore: tweak logging and readme for GITLEAKS_CONFIG_TOML feature ( #1802 )
2025-03-22 13:03:09 -05:00
Roger Meier and Richard Gomez
a503b583ba
feat: add option to set config from env var with toml content ( #1662 )
...
* feat: add option to set config from env var with toml content
* Update README.md
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
* fix: check if config provided by GITLEAKS_CONFIG_TOML can be loaded
* docs: move load configuration section to have it before configuration
---------
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
2025-03-22 10:03:52 -05:00
Zach
d5c275d6b2
me dumbass
v8.24.2
2025-03-22 07:04:57 -05:00
Zachary Rice
5361c7c917
mhm ( #1801 )
v8.24.1
2025-03-22 06:50:51 -05:00
Tom Payne
6cc0e386ac
feat(regexp): use standard regexp by default, make go-re2 opt-in ( #1798 )
2025-03-20 19:48:18 -05:00
Zachary Rice
b4df42364d
Update README.md
2025-03-17 19:26:18 -05:00
Jesse Portnoy
4344b00934
Readme badge revisions ( #1744 )
...
* - Added badges:
* Go docs
* Go report card
* License
- Replaced HTML code for badges with Markdown
* Amend CI badge
2025-03-17 16:08:57 -05:00
Zach
f74ced7985
ignore
2025-03-12 20:30:06 -05:00
Zachary Rice
c08cb1dc9a
Fix decoded line allowlist ( #1788 )
...
* fix
* B patch
* buh bye
2025-03-12 20:16:16 -05:00
Nikolas Grottendieck
991a940412
Prevent Yocto/BitBake false positives with generic-api-key rule ( #1783 )
...
* fix: make config template work when providing non-iota values for MatchCondition
https://pkg.go.dev/text/template#hdr-Actions
> {{with pipeline}} T1 {{end}}
> If the value of the pipeline is empty, no output is generated;
> otherwise, dot is set to the value of the pipeline and T1 is
> executed.
Within the `with` block `.MatchCondition` is implicit and must be omitted to
work. The fault/bug was not triggered before because this is the first
non-default MatchCondition apparently.
* feat: exclude false positive matches for Yocto/Bitbake from generic-api-key rule
Fixes #1775
2025-03-11 09:58:56 -05:00
Richard Gomez
ade376ab77
feat(generic): ignore csrf-tokens ( #1779 )
2025-03-06 19:32:36 -06:00
Zach
1c81ae02fa
leet and myspace
2025-03-02 21:00:13 -06:00
Zach
e9b93c6033
report templates
2025-03-02 20:41:52 -06:00
Zachary Rice
de105fca6d
smdh
2025-03-02 20:25:21 -06:00
Richard Gomez
a3be7222a6
feat(report): infer format from file extension ( #1776 )
2025-03-01 10:33:08 -06:00
Zachary Rice
b44958220e
Merge branch 'master' of github.com:gitleaks/gitleaks
2025-02-26 12:07:01 -06:00
Zachary Rice
2f6b9f72d1
tech influencer larp
2025-02-26 12:06:52 -06:00
Richard Gomez
3fdc9c13d2
build: upgrade rs/zerolog, spf13/cobra, and spf13/viper ( #1769 )
...
This eliminates golang.org/x/text@v0.3.0 from the dependency chain, which is associated with a critical CVE that can cause Gitleaks to be flagged in regulated environments.
2025-02-24 08:50:31 -06:00
Christophe Goessen and Christophe Goessen
96b92c3d07
fix: upgrade x/crypto to 0.31.0 to get rid of CVE-2024-45337 ( #1768 )
...
Co-authored-by: Christophe Goessen <christophe@gssn.net >
2025-02-24 08:42:05 -06:00
bplaxco
f6a7439306
Make AddFindings public ( #1767 )
...
- Rename d.addFindings -> d.AddFindings
- Add d.Findings()
To allow other tools using d.Detect() to leverage the code in
AddFindings
2025-02-24 08:28:06 -06:00
Richard Gomez
59fdd904af
fix(cmd): parse platform in detect ( #1765 )
2025-02-20 11:32:47 -06:00
Richard Gomez
c2afd56bbe
Make paths and fingerprints platform-agnostic ( #1622 )
...
* test: windows
* fix: make paths platform-agnostic
this change also fixes, or skips, windows failures
v8.24.0
2025-02-19 19:36:42 -06:00
Ricardo Zandonai
818e32f7a4
Add Sonar rule ( #1756 )
2025-02-19 08:02:35 -06:00
Richard Gomez
3fa5a3a954
Minor false positive improvements ( #1758 )
...
* feat(generic): add 'keypress' to allowlist
* feat(privatekey): ignore empty/impossible matches
* feat(config): ignore 'secrets' that are file paths
* fix(sentry): handle special character at end
Prevent common test error of 'Failed to Validate. True positive was not detected by regex.' because the generated value didn't play nicely with word boundary.
2025-02-19 07:46:09 -06:00
ahrav
2020e6a9ab
Add support for streaming DetectReader ( #1760 )
2025-02-19 07:38:34 -06:00
Daniel Bos
9122a2d359
chore: Update github.com/wasilibs/go-re2 to v1.9.0 ( #1763 )
...
Fixes #1751
2025-02-19 05:15:04 -06:00
Roger Meier
398d0c46dd
docs: describe extended rules take precedence over base rules ( #1563 )
...
Closes #1384
2025-02-11 07:53:00 -06:00
Richard Gomez
ae26eff464
feat(git): disable link generation ( #1748 )
...
Add an option to disable link creation. If there are any weird edge cases, it shouldn't block scanning
2025-02-10 13:15:44 -06:00
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
Daniel Grimm
3188ad6005
Don't exit with error if git repacking is required ( #1711 )
...
Repacking writes a message to stderr but is not problematic. It is
required quite often when using shallow/treeless clones, which is common
in CI/CD environments. Fixes #1168 .
v8.23.3
2025-01-28 19:58:15 -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
v8.23.2
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
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
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
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