bplaxco
bf8a49fc29
Make private key check less greedy and include fifth dash ( #1440 )
...
* Make private key check less greedy and include fifth dash
* Remove trailing space
v8.20.0
2024-10-03 09:50:15 -05:00
Zach
9c354f51c3
print tags if they exist
2024-10-02 20:06:31 -05:00
bplaxco and Richard Gomez
2278a2a97e
Decode Base64 ( #1488 )
...
* Support base64 decoding during scans
rh-pre-commit.version: 2.3.1
rh-pre-commit.check-secrets: ENABLED
* Add failing tests for the case when the match starts outside the decoded value
* Align locations for overlapping, encoded matches
rh-pre-commit.version: 2.3.1
rh-pre-commit.check-secrets: ENABLED
* Add --max-decode-depth flag and update README help output
rh-pre-commit.version: 2.3.1
rh-pre-commit.check-secrets: ENABLED
* Move keywords off of fragment
rh-pre-commit.version: 2.3.1
rh-pre-commit.check-secrets: ENABLED
* Fix comment typo
rh-pre-commit.version: 2.3.1
rh-pre-commit.check-secrets: ENABLED
* Refactor how keywords are used in detect
rh-pre-commit.version: 2.3.1
rh-pre-commit.check-secrets: ENABLED
* Clarify comments and rename method to match
rh-pre-commit.version: 2.3.1
rh-pre-commit.check-secrets: ENABLED
* Improve performance
rh-pre-commit.version: 2.3.1
rh-pre-commit.check-secrets: ENABLED
* Fix issues after rebase
Only adjust matchIndex to fix the following line issue when not working
with encoded segments since they handle adjusting the index themselves.
rh-pre-commit.version: 2.3.1
rh-pre-commit.check-secrets: ENABLED
* Update detect/decoder.go
Don't escape characters that don't need escaping
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
* Update flag help text
rh-pre-commit.version: 2.3.1
rh-pre-commit.check-secrets: ENABLED
* Add meta data tags from decoding
rh-pre-commit.version: 2.3.1
rh-pre-commit.check-secrets: ENABLED
---------
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
2024-10-02 19:33:55 -05:00
Richard Gomez
c5b15c9d74
refactor(config): keyword map ( #1538 )
2024-09-30 07:32:25 -05:00
Roger Meier
a971a324fa
fix: use regexTarget for extend config ( #1536 )
...
* fix: use regexTarget for extend config
* fix: add keywords from base and extended rule into global keywords list
* docs: add an example to extend default rules
* chore: update project URL references
2024-09-29 15:45:56 -05:00
Roger Meier
a0f2f4671c
feat: bump go to 1.22 ( #1537 )
...
support for 1.19 ended, see https://endoflife.date/go
2024-09-29 11:59:46 -05:00
Richard Gomez
4e8d7d3790
fix: handle pre-commit and staged ( #1533 )
2024-09-27 19:11:48 -05:00
recreator66
f8dcd838da
Bugfix/1352 incorrect report multiple lines ( #1501 )
...
* fix: add logic to modify endline & endcolumn
* doc: update comment for #1352
* test: adding test file
* chore: updating generic rule
* test: adding test to TestFromFile #1352 & change static viper ConfigName
* chore: remove interim fix for #1352
* fix: adjust matchIndex[1] to fix #1352
* test: adjust expectedFinding in TestFromFiles
* chore: go fmt
* test: rm identification of start/endlineIndex
* fix: rm unused fmt pkg
2024-09-27 09:41:26 -05:00
Richard Gomez
ed19c4e8b4
fix(config): extend allowlist & handle extend when validating ( #1524 )
v8.19.3
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
Roger Meier
7098f6d958
fix: to many false-positive for gltf files, add gltf suffix to allowlist ( #1527 )
...
Closes #1526
2024-09-24 08:48:25 -05:00
97dbe1ef09
Add support in .gitleaksignore file comment strings ( #1425 ) ( #1502 )
...
* Add support in .gitleaksignore file comment strings (#1195 )
* Apply suggestions from code review
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
---------
Co-authored-by: Zachary Rice <zricezrice@gmail.com >
Co-authored-by: Richard Gomez <32133502+rgmz@users.noreply.github.com >
2024-09-18 13:44:44 -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.
v8.19.2
2024-09-16 06:17:26 -05:00
Zachary Rice
1a6d2b0a7a
remove validate config test temporarily
2024-09-14 05:49:13 -05:00
Zachary Rice
0874ebcc3f
Update README.md
2024-09-14 05:46:28 -05:00
Zachary Rice
9463ffaa5e
fix flag access ( #1506 )
v8.19.1
2024-09-14 04:01:27 -05:00
Zachary Rice
44ad62e0b1
Deprecate detect and protect. Add git, dir, stdin ( #1504 )
...
* init backwards compatible cmd
* update readme, todos
* ...
* moar comments, sprucing up root
* readme change
v8.19.0
2024-09-13 19:44:22 -05:00
Dewan Ishtiaque Ahmed
e93a7c0d26
Update Harness rules to add _ and - in the account ID part. ( #1503 )
2024-09-11 19:48:12 -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
Zachary Rice
6dfcf5e949
Update .gitleaksignore
2024-08-20 06:57:30 -05:00
Richard Gomez
f361c5ef71
fix(detect): handle EOF with bytes ( #1472 )
2024-08-19 14:00:47 -05:00
malmor
8a1ca9ecc9
Added poetry.lock to default allowlist paths ( #1474 )
2024-08-19 11:47:42 -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
niklas-w7 and niklas.w
0334ec1076
add gradle verification-metadata.xml to global allowlist ( #1446 )
...
Co-authored-by: niklas.w <niklas.wissmueller@ext.ibmix.de >
2024-08-05 20:35:54 -05:00
Richard Gomez
c1345e1b2b
feat(openshift): add user token ( #1449 )
2024-08-05 20:22:31 -05:00
Leon and Zach
7697b3e989
(feat): Adding secret detection rule for Kubernetes secrets ( #1454 )
...
* (feat): Adding secret detection rule for Kubernetes secrets
Signed-off-by: localleon <me@lrau.xyz >
* (fix): Limiting kubernetes secret detection only to .yaml/.yml files
Signed-off-by: localleon <me@lrau.xyz >
* (fix): Fixing path validation testing for kubernetes-secret
Signed-off-by: localleon <me@lrau.xyz >
* (fix): refactoring path validation regex for kubernetes secret
* (fix): fixing keyword for kubernetes secret
Signed-off-by: localleon <me@lrau.xyz >
* (fix): fixing config.toml for kubernetes-secret and reording rules/main.go
Signed-off-by: localleon <me@lrau.xyz >
* (feat): Implementing proxmitiy matching for data-key in kubernetes secrets
Signed-off-by: localleon <me@lrau.xyz >
* (fix): Adding regex sugestions for quoted strings and qouted test-cases
* (fix): Updating kubernetes-secret regex to allow '-character before secret e.g if theres quoting
* limit whitespace
---------
Signed-off-by: localleon <me@lrau.xyz >
Co-authored-by: Zach <zricer@protonmail.com >
2024-08-05 20:20:52 -05:00
Zachary Rice
26f34692fa
add version to default
2024-06-14 16:48:12 -04:00
AislingHPE
bc979deb0f
Add go.work and go.work.sum to global allowlist ( #1353 )
2024-06-14 15:31:04 -04:00
Dewan Ishtiaque Ahmed and Zachary Rice
b899915813
Add harness PAT and SAT rules ( #1406 )
...
* Add Harness PAT rule.
* Add support for Harness PAT and SAT.
* Update comment for Harness SAT.
* Consolidate PAT and SAT into Harness API Key
* add ignore and capture group to match
---------
Co-authored-by: Zachary Rice <zachary.rice@trufflesec.com >
2024-06-14 15:30:07 -04:00
Zachary Rice
4c5195b700
Update README.md
2024-06-14 15:22:23 -04:00
becojo and Becojo
02808f45d0
Limit hashicorp-tf-password to .tf/.hcl files ( #1420 )
...
* Limit hashicorp-tf-password to .tf/.hcl files
* fix tests
---------
Co-authored-by: Becojo <Becojo@users.noreply.github.com >
v8.18.4
2024-06-13 11:23:26 -04:00
Zachary Rice
07e1c30592
rm print
2024-06-13 11:14:44 -04:00
Zachary Rice
db63fc1bf4
reduce telegram... todo url and xml for later
2024-06-13 11:14:02 -04:00
Zachary Rice
9a4538c4d6
coderabbit.ai <3
2024-06-13 09:16:17 -04:00
danielap-ma
fe94ef9ca3
Add NewRelic insert key detection ( #1417 )
2024-06-02 18:18:52 -05:00