Skip to content

Tool containment testing + triage (camera, browser) #850

Closed as not planned
Closed as not planned

Description

@samanthamsong

Epic: «Secure & contained node (MXC)» (#837)
Backlog Doc ID: #5 · Priority: P1 · Area: containment

Description
Containment for default tools (e.g., camera, browser).

Definition of done
Default tools run contained with a documented, tested approach.

Part of the «Secure & contained node (MXC)» tracking issue (#837).

Activity

  1. clawsweeper commented on Jun 26, 2026

    @clawsweeper

    Codex review: keeping this open for maintainer follow-up; there is still a little grit to resolve. Reviewed August 2, 2026, 1:58 PM ET / 17:58 UTC.

    Summary
    Keep this collaborator-authored security work open. Current main contains MXC containment and an end-to-end proof for system.run, but the requested default-tool containment remains unimplemented: camera capture is performed by the tray process through MediaCapture, and the browser capability forwards requests to the local browser-control listener. A maintainer must choose the required trust boundary before implementation can safely begin.

    Reproducibility: not applicable. as a failure report. Current-main source directly establishes the present boundaries: camera uses tray-process MediaCapture, browser proxy relays to loopback browser control, and MXC proof covers only system.run.

    Root-cause cluster
    Relationship: same_root_cause
    Canonical: #837
    Summary: This is an explicitly listed child work item of the MXC secure-and-contained-node epic; it is a distinct camera/browser boundary decision rather than a duplicate of the parent tracker.

    Members:

    Proposal only: this assessment does not dispatch repair, suppress jobs, mutate sibling items, close, or merge anything.

    Ways to help us reproduce this

    • Add a screenshot or short recording showing the behavior.
    • Add expected vs actual behavior.

    Maintainer decision needed

    Question Recommendation
    Should the default camera and browser tools be required to run inside an MXC/AppContainer boundary, and what device, filesystem, network, browser-listener, and consent access must that boundary permit? Define contained-tool contracts: Specify a separate least-privilege MXC or broker contract for camera and browser, including allowed device capabilities and browser-control access, then require real MXC proofs.

    Why: Current controls provide consent, allowlisting, loopback scoping, and authenticated browser control, but they do not answer whether these tools can retain their required Windows and browser capabilities while being contained. Choosing that boundary is a security and product contract, not a mechanical repair.

    Next step
    Maintainers must select the camera and browser containment contracts before a safe, bounded implementation can be planned.

    Security
    Needs attention: The issue is security-sensitive because camera and browser paths currently rely on native-process and loopback controls rather than the MXC command-execution boundary.

    Review details

    Best possible solution:

    Choose a threat model and capability contract for camera and browser first, then implement narrow tool-specific containment or brokers with real MXC-capable Windows proofs for allowed use and denied filesystem, network, and listener-access cases.

    Do we have a high-confidence way to reproduce the issue?

    Not applicable as a failure report. Current-main source directly establishes the present boundaries: camera uses tray-process MediaCapture, browser proxy relays to loopback browser control, and MXC proof covers only system.run.

    Is this the best way to solve the issue?

    No. A code fix before a reviewed camera and browser trust-boundary decision would risk either breaking required functionality or claiming containment that the platform contract cannot provide.

    AGENTS.md: found and applied where relevant.

    Remaining risk / open question:

    • A camera AppContainer design may require device-capability, packaging, consent, and media-encoding choices that cannot be inferred from the existing system.run sandbox policy.
    • A browser containment change may break the current authenticated loopback browser-control workflow unless the required listener, network, and token boundary is specified and tested.
    • The existing MXC E2E validates system.run only, so it cannot demonstrate that camera or browser access is contained.

    Codex review notes: model internal, reasoning high; reviewed against 8ac00c5f4977.

    Label changes

    Label justifications:

    • P1: Default native tools remain outside the requested containment boundary in an active security program, but no confirmed exploit or user-facing outage supports P0.
    • impact:security: The requested work defines isolation and trust boundaries for camera access and browser-control requests.
    Evidence reviewed

    Security concerns:

    • [medium] Define the camera containment boundary — src/OpenClaw.Tray.WinUI/Services/CameraCaptureService.cs:69
      The current camera service initializes MediaCapture in the tray process. Any containment implementation must explicitly preserve only the required camera device and encoding access.
      Confidence: 0.96
    • [medium] Define the browser-control trust boundary — src/OpenClaw.Shared/Capabilities/BrowserProxyCapability.cs:77
      The browser capability forwards authenticated HTTP requests to a local browser-control listener. A containment design must specify whether and how the contained component may reach that listener without weakening the current token and owner checks.
      Confidence: 0.94

    What I checked:

    • Camera runs in the tray process: Current main creates and initializes Windows.Media.Capture.MediaCapture directly in the camera service; the registered camera capability invokes that service rather than an MXC executor. (src/OpenClaw.Tray.WinUI/Services/CameraCaptureService.cs:69, 8ac00c5f4977)
    • Browser path is a local HTTP relay: browser.proxy builds a loopback request and sends it with the shared gateway token to the browser-control endpoint. The capability files contain no MXC or AppContainer execution path. (src/OpenClaw.Shared/Capabilities/BrowserProxyCapability.cs:77, 8ac00c5f4977)
    • Existing MXC proof is command-execution specific: The documented real Gateway MXC proof invokes only system.run and verifies mxc-direct-appc; the roadmap separately lists camera regression coverage as remaining test-matrix work. (docs/WINDOWS_NODE_TESTING.md:180, 8ac00c5f4977)
    • Current protections are not containment: The MCP security model keeps camera operations behind consent flows and the browser proxy behind loopback and token controls, but it does not describe an MXC boundary for either tool. (docs/MCP_MODE.md:263, 8ac00c5f4977)
    • Camera feature provenance: Blame attributes the direct MediaCapture camera path to commit 15ed439dc5a3ec2bc8833d2220e9bd38fc1d41a3, authored by Scott Hanselman on July 18, 2026. (src/OpenClaw.Tray.WinUI/Services/CameraCaptureService.cs:69, 15ed439dc5a3)
    • Current main and release check: Current main is 8ac00c5f4977e9a7a3987f712816c10535a09ee3, dated August 1, 2026. The supplied latest release is v0.6.12 at 4166e0fd63f80a9ac330e6e4d9b89066c0e1ac50; it is not an ancestor of current main, and neither source nor release evidence establishes camera/browser MXC containment. (8ac00c5f4977)

    Likely related people:

    • samanthamsong: Authored this child item and the linked MXC secure-and-contained-node tracking epic, so they are the strongest available routing candidate for the required boundary decision. (role: security-program sponsor; confidence: high)
    • Scott Hanselman: Current blame ties the direct camera capture path to Scott's July 18, 2026 commit, making him a likely technical owner for camera containment design. (role: camera-path contributor; confidence: high; commits: 15ed439dc5a3; files: src/OpenClaw.Tray.WinUI/Services/CameraCaptureService.cs)
    • Jeremy McKeehen: Current main's August 1, 2026 browser-control repair is authored by Jeremy and changes the node's browser-proxy activation surface, making him a relevant reviewer for browser compatibility. (role: recent browser-control contributor; confidence: medium; commits: 8ac00c5f4977; files: src/OpenClaw.Tray.WinUI/Services/BrowserProxyActivation.cs, src/OpenClaw.Tray.WinUI/Services/NodeService.cs)
    How this review workflow works
    • ClawSweeper keeps one durable marker-backed review comment per issue or PR.
    • Re-runs edit this comment so the latest verdict, findings, and automation markers stay together instead of adding duplicate bot comments.
    • A fresh review can be triggered by eligible @clawsweeper re-review comments, exact-item GitHub events, scheduled/background review runs, or manual workflow dispatch.
    • PR/issue authors and users with repository write access can comment @clawsweeper re-review or @clawsweeper re-run on an open PR or issue to request a fresh review only.
    • Maintainers can also comment @clawsweeper review to request a fresh review only.
    • Fresh-review commands do not start repair, autofix, rebase, CI repair, or automerge.
    • Maintainer-only repair and merge flows require explicit commands such as @clawsweeper autofix, @clawsweeper automerge, @clawsweeper fix ci, or @clawsweeper address review.
    • Maintainers can comment @clawsweeper explain to ask for more context, or @clawsweeper stop to stop active automation.
  2. added
    P2
    impact:security
    issue-rating: 🌊 off-meta tidepool
    clawsweeper:no-new-fix-pr
    clawsweeper:needs-maintainer-review
    clawsweeper:needs-product-decision
    clawsweeper:needs-security-review
    issue-rating: 🦞 diamond lobster
    clawsweeper:source-repro
    and removed
    issue-rating: 🌊 off-meta tidepool
    on Jun 26, 2026
  3. added
    P1
    and removed
    P2
    on Jun 26, 2026
  4. added theissue type on Jun 26, 2026
  5. 37 remaining items

  6. added
    clawsweeper:needs-maintainer-review
    issue-rating: 🦞 diamond lobster
    clawsweeper:source-repro
    issue-rating: 🌊 off-meta tidepool
    clawsweeper:needs-security-review
    and removed
    issue-rating: 🌊 off-meta tidepool
    clawsweeper:needs-security-review
    issue-rating: 🦞 diamond lobster
    clawsweeper:source-repro
    on Aug 2, 2026
  7. github-actions commented on Aug 17, 2026

    @github-actions
    Contributor

    This issue has been automatically marked as stale due to inactivity.
    Please add updated OpenClaw Windows details or it will be closed.

  8. github-actions commented on Aug 24, 2026

    @github-actions
    Contributor

    Closing due to inactivity.
    If this still affects OpenClaw Windows, open a new issue with the current version, logs, and fresh reproduction details.

  9. locked as resolved and limited conversation to collaborators on Aug 26, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    P1clawsweeper:needs-maintainer-reviewclawsweeper:needs-product-decisionclawsweeper:needs-security-reviewclawsweeper:no-new-fix-primpact:securityissue-rating: 🌊 off-meta tidepoolstale

    Type

    Fields

    Priority

    High

    Start date

    Sep 2, 2026

    Target date

    Jul 31, 2026

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions