Skip to content

security: untrusted workspace .zero/ hooks, plugins, and MCP servers run code without a trust prompt #540

Description

@Vasanthdev2004

A project's .zero/ config — hooks, plugins, and MCP server definitions — is loaded and run as soon as Zero starts in that directory. So if you clone or check out someone else's repo and run a single tool, their hook/plugin/MCP command executes outside the sandbox with no prompt. That's a silent code-execution path on any untrusted repo.

We should gate project-scoped hooks, plugins, and MCP servers behind an explicit per-workspace trust decision — fail closed until the workspace is trusted, with a clear one-time prompt/notice. #529 implements this.

Activity

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

    issue-approvedReviewed and approved by the core team; community PRs may implement this issue.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions