fix: detect carried exec command forms [AI]#81000
Conversation
|
Codex review: needs real behavior proof before merge. Summary Reproducibility: yes. source inspection gives a concrete path: Real behavior proof Next step before merge Security Review findings
Review detailsBest possible solution: Align risk detection with the allowlist’s positional-carrier contract by covering or failing closed on unquoted Do we have a high-confidence way to reproduce the issue? Yes, source inspection gives a concrete path: Is this the best way to solve the issue? No. The direction is right, but the current patch should handle or fail closed on unquoted Full review comments:
Overall correctness: patch is incorrect Security concerns:
Acceptance criteria:
What I checked:
Likely related people:
Remaining risk / open question:
Codex review notes: model gpt-5.5, reasoning high; reviewed against f506ced2b3a6. |
|
Not applicable to this automation stage; changelog/release-note and external real behavior proof requirements are handled outside auto-pr stages. Quoted comment from @clawsweeper:
|
* fix: detect carried inline exec forms * addressing review-skill * addressing codex review * addressing ci * docs: add changelog entry for PR merge
* fix: detect carried inline exec forms * addressing review-skill * addressing codex review * addressing ci * docs: add changelog entry for PR merge
* fix: detect carried inline exec forms * addressing review-skill * addressing codex review * addressing ci * docs: add changelog entry for PR merge
Summary
Change Type (select all)
Scope (select all touched areas)
Linked Issue/PR
Real behavior proof (required for external PRs)
src/infra/command-analysis/risks.tsandsrc/infra/command-analysis/policy.ts.nullfor a benign carried search case.Root Cause (if applicable)
$0/$@style shell carrier payloads were not recursively inspected before policy decisions.Regression Test Plan (if applicable)
src/infra/command-analysis/risks.test.tsUser-visible / Behavior Changes
Approval-free allowlist execution with strict inline-eval enabled now requires explicit approval for command-executing forms hidden behind shell positional carriers.
Diagram (if applicable)
Security Impact (required)
Yes/No) NoYes/No) NoYes/No) NoYes/No) YesYes/No) NoYes, explain risk + mitigation: command execution policy is more conservative for shell-carried argv forms when strict inline-eval is enabled.Repro + Verification
Environment
Steps
Expected
Actual
null.Evidence
Human Verification (required)
What you personally verified (not just CI), and how:
sh -lc,bash -c, transparentenvwrapper, and benign carried search.Review Conversations
Compatibility / Migration
Yes/No) YesYes/No) NoYes/No) NoRisks and Mitigations