AWS Builder Center

The Model Proposes, the Structure Disposes: What a Week of Agent Security Reading Keeps Repeating

Seven days of reading agent security articles on Builder Center kept landing on the same conclusion: detection and judgment belong to the model layer, but authority has to live in the structure around it. A synthesis of the week's best writing on injection detection, tool dispatch, MCP identity, and workflow orchestration.

Last week I argued that if a rule matters, it should live in the structure rather than in the prompt. I spent this week reading what other builders are publishing on agent security, and the striking thing is how many of them arrived at the same place independently, each guarding a different door. An injection detector, a tool dispatcher, an MCP gateway, and a Step Functions state machine do not look alike, but the architecture underneath them is converging: let the model propose, and let something deterministic dispose.

Blind the judge, then test the boundary without the model

Two pieces this week treated the enforcement point as something you can isolate and measure. In  Tripwire: stopping prompt injection in Strands agents by hiding the evidence from the judge  by Mohamed Ibrahim A, the judge model never reads the untrusted content at all; it rules on provenance instead of trying to out-read the attacker. The benchmark detail that stayed with me is that the same injection scored 0.36 buried in a full document and well above 0.9 on its own. Granularity, not just model choice, decides whether a detector works.
Abdullah's threat-modeling lab,  The support ticket said "export all customers." Would your Bedrock agent do it? , completes the thought. His dispatcher test feeds in the exact tool proposals a model could return, so the authorization boundary gets verified independently of model sampling or prompt wording. One of his checks has a proposal smuggling tenant context through model-controlled arguments; a plain allowlist of tool names would wave that one through. The guardrail filter stays useful, but as a detection signal. The dispatcher is the authority.

The connector you installed is a privileged identity

Mayank Jain's  MCP Is Not a Security Layer  reframes every MCP server as a privileged service with standing credentials rather than a neutral plug, and backs it with this fall's advisories and the August rug-pull campaign. His five-question install gate is immediately usable, and the point that tool descriptions are fetched at runtime means a server update deserves the scrutiny of a dependency update with production access.
Aryan kumar's  Your AI Agent Has Access to Your Database. What Could Go Wrong?  applies the same logic one layer down. Approval tied to the exact operation and parameters means a changed customer ID forces a fresh authorization decision. My own addition in the comments was to give each tool its own database credential carrying only the grants that tool needs; then even a bug in the allowlist cannot widen access beyond what the connection itself permits. Credentials are structure too, and they enforce themselves.

Identity and workflows belong to the platform, not the prompt

The week's two most practical pieces were about wiring agents into what already exists. Elisha Abriham's  How to Turn Your Existing Workflows and APIs Into Reliable AI Agent Tools  draws a sharp line between discovery and execution: tenant identity stays off the tool listing and attaches only to actual calls, so every identity-bearing request in the audit log is a real data access. His checklist starts by removing every identity attribute from the model's tool parameters, which is the confused-deputy fix in one sentence. The token math (hundreds of tools at tens of tokens each, per connection) also makes server-side scoping a cost decision, not just a security one.
Abhishek's  Stop Letting AI Agents Improvise Critical Workflows: AWS Step Functions Are Now Agent Tools  gives the pattern its cleanest division of labor: the agent decides when to start a workflow and with what input, while the workflow owns how it runs, keeping approvals and retries where they already live. The most reliable agent tool in many organizations will turn out to be a workflow they built years ago.

What detectors are still for

None of this makes detection worthless; it changes its job description. The open-weights release covered in  We opened the weights of Galvanize 3, our prompt-injection detector  by The Long John Silver publishes recall, false-positive rate, and the exact serving threshold, which makes the results reproducible and the limits visible. The 512-token window is the practical weak point, since agent payloads often sit deep inside long tool outputs. Used honestly, a detector is a measurement instrument: it tells you how often attacks reach the boundary, while the boundary itself does the refusing.

A checklist from the week

  • Decide, for each rule, whether it lives in the prompt (a preference) or in the structure (a guarantee). Only the second survives a persuasive attacker.
  • Test your dispatcher with handcrafted malicious tool proposals, not just prompts; assert on what it refuses.
  • Keep identity out of model-controlled parameters; attach it at execution, never at discovery.
  • Give every tool its own credential with minimal grants, and bind human approvals to exact parameters.
  • Gate MCP server installs and updates like privileged dependency changes.
  • Treat detector scores as telemetry with a published threshold, and know your detector's context window.
The week's writers each guarded one door. Put their doors together and you get a building. Which rule in your agent system is still only a sentence in the prompt, and what would it take to move it into the structure?
Any opinions in this article are those of the individual author and may not reflect the opinions of AWS.
Enjoyed reading this content? Let the author know!

Your likes, comments, shares, and saves help creators reach more builders.

Loading recommendations

Loading article