Skip to content

Security: per-request harness_config overlay allows process spawn via mcp_servers #337

Description

@qerogram

Problem

Per-request harness_config uses a 2-field blocklist and accepts any LocalAgentConfig field, including mcp_servers. That lets a client inject an MCP stdio command that the SDK spawns at agent start (pre-model, bypasses run_command policy) → arbitrary code execution. Default ax serve has no auth, so this is pre-auth from the network.

Follow-up to #301 / gap left in #194.

Proposed fix

Allowlist only safe per-request fields (model, system_instructions, response_schema, session_continuation_mode); reject the rest.

Branch: https://github.com/qerogram/ax/tree/fix/harness-config-overlay-allowlist
Diff: main...qerogram:ax:fix/harness-config-overlay-allowlist

make test + make test-python (56 passed) on that branch.

Auth/TLS and other harnesses are out of scope for this change.

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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions