Skip to content

[BUG][Medium]- Artifact declarations can bypass host binding grants #92

Open

Description

@arthurianresolve

Summary

An artifact can declare a host tool or extern hole by the name of a privileged function already bound by the embedding host while omitting its capability needs. load checks the artifact's declared ceiling against RuntimeEnv.grants, then resolves the host function by name. If the host relies on those grants to authorize use of prebound functions, the artifact can invoke one without a host owned grant check. This requires a sensitive prebinding; the default CLI does not create one.

Affected code

Suggested resolution

  • Associate each host tool and host hole binding with host owned required capabilities, and enforce them when loading or invoking an artifact.
  • Reject an artifact that omits the requirements of a selected host binding, even when its own declaration is empty.

Acceptance criteria

  • A prebound privileged function cannot be invoked under grants that omit its host owned requirements.
  • A genuinely authorized host binding remains callable.

Related issues

#33 requested general tool support. This ticket concerns authorization of already bound host functions when an artifact understates its needs.

Validation performed

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

Tracking

  • Finding ID: csf_71b7ac962ded99740b31e40d
  • Fingerprint: codex-security/v1:sha256:13c2c8b5996944c54c3cc3eb8cb7861bc011a8f992053bcb2ecf567e07928cc7

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