Skip to content

[BUG][Medium]- Shared sandbox exposes capabilities across nodes #93

Open

Description

@arthurianresolve

Summary

Sandboxed code from different nodes runs through a shared QuickJS executor. Registration and execution do not pass the current node's declared capabilities, while the executor exposes its installed capability set. If a host installs a sensitive capability for one node, code controlled in another node can use it despite omitting that need. This does not create capabilities absent from the executor.

Affected code

Suggested resolution

  • Project the current node's approved capabilities into each sandbox invocation, or use an executor scoped to that node.
  • Check actual capability use against the node declaration as well as the program ceiling.

Acceptance criteria

  • Code in a node that omits a capability cannot invoke it even when another node declares it.
  • Authorized nodes still receive their declared host capabilities.

Related issues

#33 tracks tool use generally. This ticket concerns isolation between nodes inside the already shared sandbox.

Validation performed

Static source review of upstream main at 72b247e2bddc7337f923461fb27b4127c7d104f3. No runtime exploit or deployed service test was performed.

Tracking

  • Finding ID: csf_2faff7d6a224b90d9b7dd83a
  • Fingerprint: codex-security/v1:sha256:8841d96d9d80c9834407404e3be17d0918da738591af4728212aaaadd06faba1

AI disclosure

OpenAI Codex assisted with the static source review and organization of this issue. No code change is included.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions