Skip to content

[codex] Wrap click and type_text results as untrusted - #107

Merged
esokullu merged 1 commit into
mainfrom
codex/untrusted-click-type-text-results
May 31, 2026
Merged

[codex] Wrap click and type_text results as untrusted#107
esokullu merged 1 commit into
mainfrom
codex/untrusted-click-type-text-results

Conversation

@esokullu

Copy link
Copy Markdown
Collaborator

Summary

  • Classify click and type_text tool results as untrusted page content in both browser permission registries.
  • Add regression coverage for malicious option text and nested <untrusted_page_content> breakout attempts.
  • Verify _digestToolResult keeps those attacker-controlled strings out of trusted summaries.

Closes #105.

Validation

  • node --check src/chrome/src/agent/permission-gate.js
  • node --check src/firefox/src/agent/permission-gate.js
  • node --check test/run.js
  • git diff --check
  • npm test currently reports 232 passed, 2 failed in existing permission-gate tests (capabilityFor: no side-effecting tool slips through ungated, record_tab (tab + microphone capture) is gated). The new click/type_text untrusted-content regression passes.

@vercel

vercel Bot commented May 31, 2026

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated (UTC)
webbrain Ready Ready Preview, Comment May 31, 2026 5:31am

Copy link
Copy Markdown
Collaborator Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@esokullu
esokullu merged commit 9909a9a into main May 31, 2026
2 checks passed
@esokullu
esokullu deleted the codex/untrusted-click-type-text-results branch May 31, 2026 05:38
esokullu added a commit that referenced this pull request Jul 12, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Prompt-injection: click/type_text splice page-derived <select> option labels into unwrapped tool results

1 participant