An instruction to ignore generated files can look like an attack to an AI safety check. Amazon says its new stateful Prompt attack check is designed to reduce those false positives, while also helping detect attacks that unfold across several chat turns or appear in tool results. The check is part of a gated preview for multi-turn chat assistants and AI agents.
What changes in each check
Amazon Bedrock Guardrails evaluates a request using the application’s system prompt and relevant session history, rather than looking only at the latest message. That broader context matters for a conversation where the meaning of a new instruction depends on what the assistant or user said earlier.
The application sends its system prompt and the earlier turns to Bedrock Guardrails. The service then selects the context it considers relevant to that turn. The new checks are available through InvokeGuardrailChecks, the software interface applications use to request them.
Two checks cover different risks
The first check, called Stateful Prompt attack, is meant to help distinguish ordinary instructions from attacks. Amazon gives a coding agent told to ignore generated files as an example of a legitimate instruction that could resemble an attack.
The check is also intended to help detect attacks that build across multiple turns or are hidden in results returned by tools. Amazon does not describe a separate action the check takes when it flags a possible prompt attack.
The second check reviews both user prompts and agent tool calls for security threats. It flags connections to domains or IP addresses that AWS threat intelligence marks as malicious, commands that expose credentials or escalate privileges, and tool calls that break a security principle established by the session so far.
Applications choose what happens next
An application can run the security threat check before a tool call happens. If the check flags a problem, the application can stop the call, ask the user to confirm it, or log it.
That leaves the response to a flagged call in the application’s hands: the preview supports blocking it, seeking confirmation, or recording the event. The announcement does not say that every flagged call must be handled in one particular way.
Preview access is limited
The gated preview is available to allowlisted customers in two AWS Regions: US East (N. Virginia) and US West (Oregon). Customers can request access through their AWS account team or the access request link on AWS’s announcement.
The announcement describes a preview, not general availability. It does not say when the feature will be available more widely.
Why it matters
Teams building multi-turn assistants can check context and security threats before an agent uses a tool, then stop the call, ask for confirmation or log it. Access is limited to allowlisted customers in two US regions.
What it means for you
A team running a multi-turn assistant can send its system prompt and earlier turns, then use the security check before a tool runs. Access is currently limited to allowlisted customers in two US regions.
Our take: Checking the conversation and tool calls gives application teams more context for these two kinds of risk. The preview’s limited access means it is too early to know how broadly teams can use it.