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
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
Richard Gomez
f3ae52e138
feat(generic-api-key): detect base64 ( #1598 )
2025-01-22 09:27:45 -06:00
Richard Gomez
a43dc0d3d0
chore: refine generic-api-key fps + trace logging ( #1720 )
2025-01-21 08:29:24 -06:00
Richard Gomez
3f4d91fc22
build: support either stdlib or 3rd-party regexp ( #1706 )
2025-01-20 10:45:31 -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
c4526b2c55
refactor(generic-api-key): remove hard-coded 'magic' ( #1600 )
2025-01-13 19:57:25 -06:00
ahrav
a91c6717a0
replace std library regex engine with go-re2 ( #1669 )
2024-12-20 09:53:01 -06:00
Richard Gomez
83e99bacf1
feat(report): allow user-defined templates ( #1650 )
2024-12-10 18:56:11 -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
961f2e674f
feat(generic-api-key): tune false positives ( #1606 )
2024-10-27 19:24:06 -05:00
Ben-grmbl
e97695b852
feat(generic-api-key): exclude keywords ( #1587 )
...
* fix(config.tmpl) missing \n for rules with regexes AND stopwords
patch provided by rgmx
fix(config.tmpl) omit `condition=OR`
* feat(generic-api-key): exclude keywords
prevent matching the rule generic-api-key on e.g.
- public_key
- api_version
- client_id
- client_name
- keyword
- monkey
feat(generic-api-key): review findings
- combine capture groups
- remove mapKey from allowList
fix(generic): make monkey, donkey, case-sensitive
avoids matching on e.g. pokemonKey=
* feat(generic) remove client, add credential
exclude more composite words with key
2024-10-25 15:26:00 -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
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
Liron Biam
8de8938ad4
Enhance Secret Descriptions ( #1300 )
...
* Enhance secret descriptions in gitleaks.toml
* adjust the rule configuration descriptions
* missing spaces in gitleaks.toml
2023-11-29 17:03:11 -06:00
Zachary Rice
e63b657bcf
remove secretgroup from default config ( #1288 )
...
* remove secretgroup from default config
* update test data and AWS
* leave secretgroup
2023-11-10 12:53:07 -06:00
Richard Gomez
18283bb48e
feat(rules): make case insensitivity optional ( #1215 )
2023-08-24 10:41:52 -05:00
Zachary
1fc27eebda
adding access to generic rule keywords and identifiers
2022-07-05 15:33:06 -05:00
Zachary Rice
82e409a434
Limit newlines regex ( #881 )
...
* improve regex to reduce fps with newlines
* remove version from regex and rely on stopwords instead
* add false positive for validation
2022-05-30 12:07:06 -05:00
Zachary Rice
469cd22f61
updating generic regex and algoia regex ( #875 )
2022-05-25 08:00:10 -05:00
Zachary Rice
f93e5dc844
adding a ton of stopwords to the generic rule only as that is the loudest rule ( #851 )
2022-04-21 17:01:21 -05:00
Zachary Rice
8481f0e9cd
adding stopwords ( #849 )
...
* adding stopwords
* format readme, update default config
2022-04-21 08:31:58 -05:00
Zachary Rice
a42b32bdf1
fix EOL in secret suffix ( #847 )
...
* fix EOL in secret suffix
* allow quoted key value syntax
2022-04-20 17:55:07 -05:00
Zachary Rice
3474c58c9e
Generate tps ( #845 )
...
* WIP
* simplify tp generation
2022-04-18 21:59:38 -05:00
Zachary Rice
606bb1a13b
Standardize/alphabetize rules, add cmd/generate/config package ( #840 )
2022-04-12 21:40:48 -05:00