You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Source: UK AI Open Code Risk & Resilience Governance — 2026-07-27
Risk Scoring
Dimension
Score (1–5)
Notes
Exposure amplification
3
CLI commands invoked in agentic workflows; user-controlled args could reach exec.Command
Patchability
2
Code already has #nosec G204 with written justifications; formal review needed
Detectability
2
exec.Command without shell; exploitation requires controlled argument injection
Operational fragility
2
Low — existing mitigations limit exploit surface
Ownership confidence
5
@dsyme@eaftan@pelikhan@krzysztof-cieslak clearly own this area
Overall
2.8
Medium priority
Findings Summary
Sighthound #48298 flagged 141 CWE-78 command injection findings across pkg/cli/. The top 5 Critical are:
File
Line
Function
Existing #nosec?
pkg/cli/runner_guard.go
94
runRunnerGuardOnDirectory
✅ Yes, with justification
pkg/cli/grant.go
156
grantRunOnImage
✅ Yes, with justification
pkg/cli/poutine.go
201
runPoutineOnFile
Needs verification
pkg/cli/poutine.go
100
runPoutineOnDirectory
Needs verification
pkg/cli/upgrade_command.go
496
relaunchWithSameArgs
Needs verification
Code inspection confirms that runner_guard.go and grant.go have #nosec G204 with detailed inline justifications (path validation, exec.Command without shell). The remaining 139 findings need equivalent audit.
Remediation Action (SLA: Medium — 30 days)
For each of the 141 Sighthound-flagged locations:
Verify exec.Command is called without a shell (no sh -c pattern)
Tier B — Open With Conditions
Source: UK AI Open Code Risk & Resilience Governance — 2026-07-27
Risk Scoring
#nosec G204with written justifications; formal review needed@dsyme@eaftan@pelikhan@krzysztof-cieslakclearly own this areaFindings Summary
Sighthound #48298 flagged 141 CWE-78 command injection findings across
pkg/cli/. The top 5 Critical are:pkg/cli/runner_guard.gorunRunnerGuardOnDirectorypkg/cli/grant.gograntRunOnImagepkg/cli/poutine.gorunPoutineOnFilepkg/cli/poutine.gorunPoutineOnDirectorypkg/cli/upgrade_command.gorelaunchWithSameArgsCode inspection confirms that
runner_guard.goandgrant.gohave#nosec G204with detailed inline justifications (path validation, exec.Command without shell). The remaining 139 findings need equivalent audit.Remediation Action (SLA: Medium — 30 days)
exec.Commandis called without a shell (nosh -cpattern)// #nosec G204 -- <justification>if safe, or fix if not#nosecannotations are accompanied by justification commentsHuman Review Trigger
If any finding is found to lack input validation (no allowlist, no path sanitization), escalate to P1 fix before dismissal.
Related: #48298 | Governance discussion