feat(secrets): Betterleaks instead of gitleaks, findings carry over (#516)
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 11m59s
CI / Check (push) Skipped
CI / Detect Changes (pull_request) Skipped
CI / Deploy Agent (pull_request) Skipped
CI / Deploy Dashboard (pull_request) Skipped
CI / Deploy Docs (pull_request) Skipped
CI / Deploy MCP (pull_request) Skipped
CI / Check (pull_request) Successful in 11m59s
- The agent image ships Betterleaks 1.9.0 (MIT, gitleaks' successor by its author; pinned with checksum) instead of gitleaks 8.21.2. It reads our rules/gitleaks.toml unchanged, incl. the #464/#482 allowlists; `git .` replaces `detect --source .`, `dir .` stays. Live validation (which sends secrets to their providers) is never passed and a test pins that; the scan runs without network. - The findings keep the scanner name `gitleaks` (finding_store:: SECRET_SCANNER), so fingerprints (#491) and tracker issues carry over. - RunFindings::adopt_renamed_secrets: a secret now reported under another rule (Betterleaks' composite aws-access-token reports a lone key id as generic-api-key; renamed vendor rules) takes over the stored row of the same target, file and match whose old rule no longer reports it: same id, status, triage and issue, with the new rule, title and severity. - Compared on every fixture tree: identical results, except two planted hard-coded passwords Betterleaks finds in the C firmware fixture (generic-password), added to its nightly baseline. - Docs (tools, guides), test plan check 33. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01EYKjxacrr6K88DruUmP48p
This commit is contained in:
1 parent
908e6b8449
commit
ee30ecfddb
10 files changed
+375
-45
No files matched your search
+29
-7
@@ -264,14 +264,36 @@ A scanner focused on data protection compliance, detecting:
|
||||
- Unencrypted PII storage
|
||||
- Cross-border data transfer issues
|
||||
|
||||
## gitleaks -- Secrets
|
||||
## Betterleaks -- Secrets
|
||||
|
||||
[gitleaks](https://github.com/gitleaks/gitleaks) finds hardcoded secrets and
|
||||
credentials: API keys, tokens, private keys, passwords. On a git checkout it
|
||||
runs `gitleaks detect`, which also looks through the repository's history; on an
|
||||
uploaded archive, which has no history, it scans the files with `gitleaks dir`.
|
||||
Its findings have the type **Zugangsdaten im Code** (Secrets); the dashboard
|
||||
shows the secret shortened.
|
||||
[Betterleaks](https://github.com/betterleaks/betterleaks) (MIT, 1.9.0), the
|
||||
successor of gitleaks by its author, finds hardcoded secrets and credentials:
|
||||
API keys, tokens, private keys, passwords. It reads gitleaks' configuration:
|
||||
Prüfwerk always passes its own `rules/gitleaks.toml` (gitleaks' rules plus ours
|
||||
for Android signing passwords and Firebase keys), so a `.gitleaks.toml` or
|
||||
`.betterleaks.toml` in a scanned repository cannot switch rules off. On a git
|
||||
checkout it runs `betterleaks git`, which also looks through the repository's
|
||||
history; on an uploaded archive, which has no history, it scans the files with
|
||||
`betterleaks dir`. Its findings have the type **Zugangsdaten im Code**
|
||||
(Secrets); the dashboard shows the secret shortened.
|
||||
|
||||
**Since #516 (replacing gitleaks 8.21.2):**
|
||||
|
||||
- The findings keep the scanner name `gitleaks`, so their fingerprints and
|
||||
tracker issues carry over.
|
||||
- Betterleaks has about 270 more rules, and on the nightly fixtures it also
|
||||
finds hard-coded passwords in C/C++ sources (`generic-password`). Four
|
||||
gitleaks rules have no exact counterpart (`datadog-access-token`,
|
||||
`etsy-access-token`, `jfrog-api-key`, `jfrog-identity-token`), and a lone
|
||||
AWS access key id is reported as `generic-api-key`, because Betterleaks'
|
||||
`aws-access-token` pairs the key id with its secret key.
|
||||
- A secret reported under another rule than before keeps its finding (same
|
||||
row, status, triage and issue, now with the new rule), as long as the old
|
||||
rule does not report it any more.
|
||||
- **No live validation.** Betterleaks can check a secret against its
|
||||
provider's API; that sends the secret out, needs DPA wording first, and is
|
||||
never switched on (only the `--validation` flag would). The scan opens no
|
||||
network connection.
|
||||
|
||||
## PLC Control-Logic Analyser
|
||||
|
||||
|
||||
Reference in new issue
Block a user