• Sources: primary, discussion
  • Summary: The AWS MCP Server's aws___run_script tool runs agent-supplied Python in a Lambda sandbox with an AST validator and proxied builtins. The researcher reassigned __match_args__ so class patterns made CPython read blocked attributes internally. A mutable proxy returned by the sandbox's replacement type() then exposed copyreg.__newobj__.__globals__, the real __import__, and os and subprocess. The post, published 2026-10-24, says the work was done with Claude Opus 4.6 and includes a disclosure timeline.
  • Why it matters: Sandboxes that filter Python syntax for agent tools can miss implicit attribute access, so isolation for code-running MCP tools has to hold at the OS or VM layer.