Most AI security gateways check what enters the model and stop watching once inference begins. That gap breaks down the moment an autonomous agent can run SQL queries, fetch URLs, or invoke shell tools. An indirect prompt injection hidden in a retrieved ticket or web page can pass an input classifier, persuade the model to build a malicious tool payload, and reach your execution layer unchallenged.
To close that gap, you need a deterministic boundary between the model's tool intent and the underlying OS, database, or network runtime. While building ToolShield (an MIT-licensed Python runtime proxy), I tested a recursive argument scorer, a consecutive-violation circuit breaker, and structured audit hashing against real attack payloads.…