- Authorize the task before loading untrusted skill content.
- Check the exact target and data at the action boundary.
- Measure blocked attempts, completed effects, and task utility separately.
The carrier can vary; the effect is concrete
Instructions may arrive in a skill file, a tool description, a reference document, or a tool response. The security decision becomes concrete when an agent reads data, writes a file, calls a service, or releases output. A defense can therefore ask whether the proposed effect is authorized by the trusted task and whether the information supporting it is within that task.
APEX formalizes this as an execution-boundary defense and evaluates it across several capability-unit types. ShieldMCP instead focuses on interception and validation of MCP tool calls and responses. They are different architectures and their benchmark scores are not directly comparable.
Write a task contract before untrusted content runs
For a sensitive workflow, define allowed inputs, data classes, output targets, destinations, and actions before loading third-party instructions. At each proposed effect, check the actual target and relevant arguments against that contract. Do not let the skill or tool description rewrite the authorization rule.
For external output, verify that the destination and released fields are specifically required by the task. For filesystem actions, check the path and data source. Keep a human gate for effects whose policy requires one.
Make the boundary observable
Log the triggering package or tool revision, proposed effect, policy decision, approval, and completed side effect. Preserve enough evidence to distinguish blocked attempts from completed effects. Test benign task completion alongside prohibited transfers so that a defense is not rewarded for simply blocking everything.
Read experimental scores in context
APEX’s abstract reports 0% attack success on five of six benchmarks and 0.56% on the sixth; ShieldMCP’s ACL abstract reports reductions under its own red-team setup. These are paper-specific results, not guarantees for a production stack. Check the full methods, baselines, threat model, utility measures, and artifacts before adopting either design.
Task-contract and logging questions here are editorial recommendations, not a claim that these papers tested this exact checklist.
Sources & scope
This guide combines editorial explanation and practical review suggestions. Linked sources support the underlying concepts; this site has not independently replicated their experiments.
S46