Repository navigation
security: wrap tool results at transport boundary - #78521
zeusbot-ron wants to merge 1 commit into
Conversation
|
Thanks for the context here. I swept through the related work, and this is now duplicate or superseded. Keep open: the PR targets a real shared transport hardening gap, but the current branch still has a marker-spoofing bypass, lacks contributor-owned real behavior proof, and is conflicting against current main. Canonical path: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. So I’m closing this here because the remaining work is already tracked in the canonical issue. Review detailsBest possible solution: Close this stale PR. The latest review rated it F, the branch still lacks merge-ready proof, and there has been no human follow-up after the durable review. Do we have a high-confidence way to reproduce the issue? Yes. Source inspection shows the PR head returns toolResult text unchanged when it contains raw boundary-marker substrings, and the PR discussion includes a provider-payload reproduction of that bypass. Is this the best way to solve the issue? No. The shared transform is a plausible boundary for this hardening, but this implementation must not treat marker substrings inside untrusted tool output as proof that the content is already safe. Security review: Security review needs attention: The diff introduces a concrete security-boundary bypass by trusting raw marker substrings in untrusted tool-result text.
AGENTS.md: found and applied where relevant. What I checked:
Likely related people:
Codex review notes: model internal, reasoning high; reviewed against 010b61746379. |
|
I locally reproduced the transport-boundary behavior against this PR head ( Current PR behaviorHarness shape: assistant For normal hostile tool output, the PR wraps as expected: For attacker-controlled tool output that already contains raw boundary-marker strings, the PR does not wrap it: That matches ClawSweeper's P1: Minimal fix direction tested locallyI tested the simple direction of removing the marker-substring short-circuit and always sending text So the behavior I would want before merge is:
This comment is not a substitute for contributor-owned proof in the PR body, but it gives a concrete repro and expected after-fix behavior. |
|
ClawSweeper PR egg 🎁 Pass real behavior proof to wake the egg and unlock a hatchable treat. Where did the egg go?
|
|
This pull request has been automatically marked as stale due to inactivity. |
|
Closing per ClawSweeper review verdict |
Summary\n- wrap tool-result text at the generic transport boundary using existing external-content security markers\n- preserve already bounded tool results to avoid double-wrapping\n- add regression coverage for wrapped and already-wrapped tool results\n\n## Verification\n- pnpm exec vitest run src/agents/transport-message-transform.test.ts\n- pnpm exec tsc -p tsconfig.core.json --noEmit --pretty false\n- git diff --check