Adds detection support for Defined Networking tokens (https://docs.defined.net/guides/automating-host-creation/)
I added a fixture in addition to the generator, I think I may be able to use the `generateUniqueToken` instead of the semi-generic option? Let me know if I should update accordingly.
Remove testing fixture
* refactor: fix rule for private keys
Wouldn't match old keys which have been created with the BLOCK statement at the beginning and end of the key.
* fix: rule for private keys
* fix: missing comma
Co-authored-by: Fabian F Groß <fabian.f.gross@deutschebahn.com>
* adding jwt tokens with padding format =
* forgot to run go run main.go
* manually putting database.refractorlog back
Co-authored-by: Esther <esther.ay@snaptravel.com>
* Issue #980: Add support for Telegram Bot API Token
* Replace test with random bot_id length by tests with fixed one.
Add tests for the corner cases.
Co-authored-by: Alex Goncharov <b4bay@users.noreply.github.com>
* refactor: more precise rule for private keys
The current regex didn't match PGP private keys anymore, since they start with `BEGIN PGP PRIVATE KEY BLOCK` and the `BLOCK` never matched for the existing regex. I've made that part optional so that all strings matching for the current regex will still match for the new regex.
* refactor: more precise rule for private keys
Co-authored-by: Fabian F Groß <fabian.f.gross@deutschebahn.com>
* Add sidekiq rules
* Added two new rules for sidekiq
* Other: Add keywords to square rules per Zach's instructions
* Validate now works, but test suite is failing
* Tests are now passing
* Add Sidekiq Rules: Ran go fmt
* * After resolving conflicts, had to rerun the rule generator to add back the semicolon char
* After running tests, had to fix one line in testdata/expected/report/sarif_simple.sarif
* * Added keywords to simple.toml for sidekiq-sensitive-url so that the rule matches what is in gitleaks.toml
Co-authored-by: Andrew Weiner <aweiner@frontrush.com>
* init
* working on default and path config extensions
* adding trace log level, consolidating some code
* cleaning things up, updating generate package
* fix tests
* formatting
* adding tests for extend
* extend not extends
* formatting
* only allow usedefault or path to be set
* update readme
* add note about allowlists
* more readme, expand env var for path
* actually dont support env var. ez attack
* Adding a bunch of new rules, update allowlist to include node_modules and vendor folders, extend helper config functions
* remove ssns from allowlist since default config does not detect ssn
* Adding a bunch of new rules, update allowlist to include node_modules and vendor folders, extend helper config functions
* use func instead of function in stopwords