Skip to content

[2113 by GPT-5.6 Sol] Transport CodeQL: resolve Darwin bounded-command shell-injection finding - #2116

Merged
integry merged 1 commit into
1953-epic-desktop-transport-apifrom
2113/gpt-5.6-sol-transport-codeql-resolve--20260904-1822-sak
Sep 4, 2026
Merged

integry merged 1 commit into
1953-epic-desktop-transport-apifrom
2113/gpt-5.6-sol-transport-codeql-resolve--20260904-1822-sak

Conversation

@propr-dev

@propr-dev propr-dev Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor

AI Implementation Summary

Closes #2113

Branch: 2113/gpt-5.6-sol-transport-codeql-resolve--20260904-1822-sak
Commits: ✅ Changes committed (4930e87)


AI Processing Completed

Execution Details:

Summary:
Implemented the Darwin bounded-command hardening.

  • Added a fixed executable allowlist and command-ID boundary in run-bounded-darwin-command.mjs.
  • Removed direct spawning from CLI/guard executable input.
  • Preserved shell: false, argv boundaries, timeouts, process-group termination, output caps, cleanup, and redacted diagnostics.
  • Removed PATH-dependent npm execution from the Darwin journey.
  • Added adversarial tests for metacharacters, executable substitution, and hostile PATH.
  • Added static contract assertions preventing regression to nodeSpawn(argv[1], ...).

Validation:

  • Desktop suite: 499 tests, 474 passed, 25 platform skips, 0 failures.
  • Focused bounded-command tests: 10/10 passed.
  • ESLint and syntax checks passed.
  • No visual preview generated because the change is non-visual.

Detailed Logs:

  • Conversation: 53 messages
  • Session: 01a06da9-72ce-7d22-9f5b-54363d2873a1

Log files stored at:

  • conversation: /tmp/claude-logs/issue-2113-2026-09-04T18-31-00-710Z-conversation.json
  • output: /tmp/claude-logs/issue-2113-2026-09-04T18-31-00-710Z-output.txt
Latest Conversation Messages

This PR was created automatically by ProPR after processing issue #2113.


💡 Need changes?

Comment on this PR to request refinements — the AI agent monitors comments and will update the implementation based on your feedback. Keep iterating until you're satisfied!

…ed-command s

Implemented by ProPR AI using gpt-5.6-sol model.

Implementation completed successfully.
@integry

integry commented Sep 4, 2026

Copy link
Copy Markdown
Owner

/ultrafix goal=9 max=3

@propr-dev propr-dev Bot added the ultrafix label Sep 4, 2026
@propr-dev

propr-dev Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

🔄 Ultrafix loop started (goal: 9/10, max cycles: 3)

First action: /review

💡 Tip: Remove the ultrafix label from this PR to stop further ultrafix cycles.

@integry

integry commented Sep 4, 2026

Copy link
Copy Markdown
Owner

/review

@propr-dev

propr-dev Bot commented Sep 4, 2026 •

Copy link
Copy Markdown
Contributor Author

✅ AI Code Review Complete requested by @integry

Posted 1 review:

View Task Details

@propr-dev

propr-dev Bot commented Sep 4, 2026

Copy link
Copy Markdown
Contributor Author

🔍 AI Code Review — codex:gpt-5.6-sol

Overall Evaluation

The PR correctly hardens Darwin command execution with a fixed command-ID dispatch boundary and preserves the packaged Connect journey’s working-directory contract. No PR-scoped code blocker is evident, but it needs minor follow-up before merge because two current Windows package-validation checks are failing and several checks remain pending.

✅ Fixed executable boundary — Both supervised and guard-side launches resolve allowlisted IDs to fixed executable paths with shell: false.

✅ Hostile-input coverage — Tests verify executable substitution is rejected, metacharacters remain inert arguments, and node resolution ignores hostile PATH contents.

✅ Equivalent journey invocation — The npm wrapper is replaced with direct Node execution after changing to apps/desktop, matching the smoke script’s relative artifact-path expectations.

Merge blockers

No merge blockers.

Suggestions

These are optional follow-ups and are not sent to /fix.

S1: 🟢 Expand dispatch-table coverage

Add focused tests for every accepted executable alias and command ID, rather than runtime-testing primarily node and statically checking selected cases. The two switches in run-bounded-darwin-command.mjs are currently consistent, so this is optional regression protection rather than a merge requirement.

Score

The implementation appears correct and well tested within scope, but the two authoritative current-head failures prevent a merge-ready rating until their cause is understood, even though they are not traceable to the Darwin-only diff.

Score: 7/10


🤖 Review Details

  • Model: GPT-5.6 Sol
  • Time: 57s
  • Tokens: 40,231 (37,348 in / 2,883 out)
  • Cost: $0.22

View Task


💡 Next step: Comment /fix to address F# merge blockers only.
F# IDs increment across review comments and remain permanent, so selectors such as /fix F3 F5 stay unambiguous across cycles. Suggestions require a separate ordinary follow-up request.

🤖 Review by ProPR

@integry
integry merged commit d4226b2 into 1953-epic-desktop-transport-api Sep 4, 2026
38 of 44 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant