Commit b3dbd0e
feat: fluxgate v0.4.0 — close mitigation detection gaps from manual triage
Four new detection capabilities based on Red Hat triage analysis:
- Gap 1: Actor guards — detect github.actor == 'bot[bot]' gates (→ info)
and human actor restrictions (→ downgrade by 1)
- Gap 2: Action-based permission gates — recognize actions-cool/check-user-permission
and similar third-party permission-checking actions as maintainer checks
- Gap 3: Cross-job needs: gating — follow needs: chains to detect environment
approval gates on upstream authorize jobs (→ downgrade by 1)
- Gap 4: Path isolation — detect fork code checked out to subdirectory with
no direct execution, downgrade confidence to pattern-only
Also adds fork guard to Fluxgate's own CI workflow (fixes FG-006 self-finding).
Validated against 11 triage findings: 5 false criticals corrected automatically,
2 false positives eliminated, 2 clean criticals unchanged.
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>1 parent b77235d commit b3dbd0e
File tree
12 files changed
+1196
-7
lines changed- .github/workflows
- cmd/fluxgate
- internal/scanner
- test/fixtures
12 files changed
+1196
-7
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| 14 | + | |
14 | 15 | | |
15 | 16 | | |
16 | 17 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
17 | | - | |
| 17 | + | |
18 | 18 | | |
19 | 19 | | |
20 | 20 | | |
| |||
0 commit comments