Zach
fa9fadbb84
possibly could just be an idiot
2025-05-13 22:06:12 -05:00
Zach
d5e7364bcf
skip windowS
2025-05-13 21:57:33 -05:00
Zach
e0ea9cefde
one tmp dir to rule them all, I think
2025-05-13 21:39:09 -05:00
Zach
56e409d9f1
Merge branch 'master' of github.com:gitleaks/gitleaks into archive-handling
2025-05-13 20:34:56 -05:00
Zachary Rice
82f7e32b71
Diagnostics ( #1856 )
...
* init diagnostics
* update usage readme
2025-05-13 09:22:20 -05:00
Richard Gomez
f97a9ee872
chore: include decoder in debug log ( #1853 )
2025-05-12 21:54:55 -05:00
bplaxco
78eebaca9d
Percent/URL Decoding Support ( #1831 )
...
* Add initial percent decoding support
* Refactor multi encoding support
* Add detect tests to confirm positions
* Avoid a few extra passes during decoding
* Do multiple passes for finding encodings re
* Fix issue with overlapping encodings when doing separate passes
v8.26.0
2025-05-12 11:22:36 -05:00
Richard Gomez
6f967cad68
fix(kubernetes): remove slow element from pat ( #1848 )
2025-05-02 20:16:30 -05:00
Richard Gomez
88f56d3695
feat: identify slow file ( #1479 )
2025-05-01 07:39:13 -05:00
Zach
9609928c02
rm 1password detect test since we test it in cfg gen
2025-04-30 09:57:28 -05:00
Jordan Bradford and Richard Gomez
23cb69fba4
feat(rules): Add 1Password secret key detection ( #1834 )
...
* Add `1password-secret-key` detection
* Document key details
* Update cmd/generate/config/rules/1password.go
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
* Generate new `.toml`
* Use `GenerateSampleSecrets` to test more scenarios
* Comment lowercase `fps`
* Decrease entropy
---------
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
2025-04-30 09:30:58 -05:00
Richard Gomez
d1c77598da
fix(detect): test all allowlists ( #1845 )
v8.25.1
2025-04-30 08:29:57 -05:00
Richard Gomez
4451b455f3
feat(config): define multiple global allowlists ( #1777 )
v8.25.0
2025-04-29 08:49:04 -05:00
7fb21a4e61
feat(rules): Add Perplexity AI API key detection ( #1825 )
...
* feat(rules): Add Perplexity AI API key detection
* Fix generation
* Fix imports
* Update cmd/generate/config/rules/perplexity.go
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
* Update cmd/generate/config/rules/perplexity.go
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
* Update cmd/generate/config/rules/perplexity.go
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
* Adjust regex, add imports
* Generate config
---------
Co-authored-by: vno <vno@serity.io >
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
2025-04-28 14:06:48 -05:00
Zach
5f210c9d35
rm comments
2025-04-28 09:43:17 -05:00
Zach
770baf7458
first pass at archive handling
2025-04-28 09:39:22 -05:00
Richard Gomez
f6193bc92c
feat(gcp): increase rule entropy ( #1840 )
2025-04-26 19:28:32 -05:00
San Tran
9bc725786d
Adding clickhouse scanner ( #1826 )
...
* Adding clickhouse scanner
* removing mention of aws as i used it as template
2025-04-16 16:10:47 -05:00
Richard Gomez
b6cc71aa3a
fix(baseline): work with --redact ( #1741 )
2025-04-13 09:40:15 -05:00
Richard Gomez
cfdeb0d7e0
feat(rule): validate & sort rule when generating ( #1817 )
2025-04-12 10:09:19 -05:00
Nicholas and Nicholas Wittstruck
107a41827b
Add support for GitLab Runner Tokens (Routable) ( #1820 )
...
This commit adds support for GitLabs routable runner 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/1819
Co-authored-by: Nicholas Wittstruck <1283061+nwittstruck@users.noreply.github.com >
v8.24.3
2025-04-09 09:35:56 -05:00
Yann Lacroix
7fac002325
bump repo version in pre-commit example ( #1815 )
2025-04-06 19:32:32 -05:00
bplaxco
4b541044e8
Fix currentLine out of bounds error ( #1810 )
...
Because `segment.adjustMatchIndex(matchIndex)` was above
`segment.lineEndIndex(currentRaw, matchIndex[1]-matchIndex[0])` there
were cases where it would cause an out of bounds error.
This change resolves the issue by just assuming the whole segment is a
opaque chunk of text and starts at the boundaries of the segment instead
so that the order doesn't matter as much.
The other option would have been to reorder the assignments and add
tests to account for that case, but I figured this option is less likely
to have gotchas when working with different encoding formats at the
potential expense of getting an extra line or two if an encoding format
in the future ever allows multiple lines of encoded content to be
considered a single segment.
2025-04-02 20:10:47 -05:00
Joost Voskuil
af7d5bcb83
add support for Azure DevOps platform in SCM detection and link ( #1807 )
...
* feat: add support for Azure DevOps platform in SCM detection and link generation
* feat: add support for visualstudio.com in Azure DevOps platform detection
* feat: consolidate Azure DevOps platform detection for dev.azure.com and visualstudio.com
2025-03-31 08:38:08 -05:00
mmpnelson
3e8cd2d1ab
Add MaxMind license key rule ( #1771 )
...
* Add MaxMind license key rule
* Address review feedback for MaxMind license key rule
2025-03-29 08:42:16 -05:00
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