AgentCore Policy Adds Third-Party Guardrails and Streaming Checks

Eric Greene December 02, 2026

On December 1, AWS made third-party guardrails in AgentCore Policy generally available. A policy engine attached to an AgentCore Gateway can now call checks from Check Point, Netskope, Prompt Security, Rubrik and Zscaler in the same Cedar policies that already call Amazon Bedrock Guardrails. The same update added three policy effects that screen a model's response while it streams and mask sensitive text in requests. Teams that run agents behind AgentCore Gateway, and whose security group already licenses one of those products, can now apply the same detections to tool calls and model output without touching agent code.

Where AgentCore Policy sits

Policy in AgentCore evaluates Cedar policies at the gateway. Every tool call to an MCP target and every model call to an inference target is an action, such as RefundTool___process_refund or ClaimsChat___POST:/v1/chat/completions, and the gateway asks the policy engine before it lets the action through. Because the checks run in the gateway and not in the agent, a prompt injection can't talk the agent out of them for requests that go through the gateway. They only cover that path: an agent with credentials and network access to call a tool or model directly bypasses them, so block direct access with IAM and network controls too. A policy in LOG_ONLY mode records its decisions without enforcing them.

Guardrail checks go in a when guardrails condition. Until now the only namespace there was BedrockGuardrails, with checks such as BedrockGuardrails::SensitiveInformation and BedrockGuardrails::ContentFilter. Third-party providers add their own namespaces next to it, so one policy engine can mix both. The third-party guardrail providers page lists each provider ID, which doubles as the namespace: CheckPoint, Netskope, PromptSecurity, Rubrik and Zscaler. The announcement lists CrowdStrike as coming soon. The feature is available in every Region that has AgentCore Policy except AWS GovCloud.

In our Generative AI on AWS with Amazon Bedrock course, AgentCore Policy and third-party guardrails sit in the Guardrails for Bedrock module, after content filters, grounding checks and PII protection. It is one of the AWS and Azure cloud training courses.

Registering a provider

The setup page has four steps.

  1. Store the provider's API key as an API key credential provider in AgentCore Identity, with aws bedrock-agentcore-control create-api-key-credential-provider, and keep the credentialProviderArn it returns. A key in your own Secrets Manager secret also works if the secret carries the tag BedrockAgentCoreThirdPartyGuardrailsSecret = true.
  2. Give the gateway's execution role permission to read the key: bedrock-agentcore:GetWorkloadAccessToken, bedrock-agentcore:GetResourceApiKey and secretsmanager:GetSecretValue on the AgentCore Identity secrets. If the role can't read the key, every request that reaches a third-party check is denied.
  3. Register the provider in the policy engine's policyInformationProviderConfiguration map, keyed by provider ID.
  4. Confirm the registration with get-policy-engine.

Registering on an existing engine looks like this:

aws bedrock-agentcore-control update-policy-engine \
  --policy-engine-id my_policy_engine-a1b2c3d4e5 \
  --policy-information-provider-configuration '{
    "Zscaler": {
      "providerConfiguration": {
        "credentialProvider": {
          "apiKey": {
            "arn": "arn:aws:bedrock-agentcore:us-east-1:123456789012:token-vault/default/apikeycredentialprovider/zscaler-key"
          }
        }
      }
    }
  }'

Two details matter when you write this in infrastructure code. CreatePolicyEngine takes credentialProvider and url directly in each entry, while UpdatePolicyEngine wraps them in providerConfiguration and expects url as an object with an optionalValue field. And AgentCore sends the provider a test request when you register it: a wrong key or URL leaves the engine in UPDATE_FAILED, with the provider and the HTTP status in statusReasons. You also can't remove a provider while any policy still calls its checks; the request fails with a ConflictException.

Writing checks in Cedar

The policy page for third-party checks describes three forms: a guardrail type with content only, a type with categories and content, and a Custom check that evaluates content against a profile you set up with the provider. The content is a data path, such as context.input.reason for a tool argument or $.choices[*].message.content for a Chat Completions answer.

Results come back in one of two shapes. Check Point and Netskope return a level string such as l1_confident or high, which you test with contains. Prompt Security, Rubrik and Zscaler return a confidence score, which you compare with a decimal value; a bare 0.9 isn't valid Cedar here. This policy denies a refund tool call when Zscaler scores the reason argument as likely prompt injection:

forbid(
  principal,
  action == AgentCore::Action::"RefundTool___process_refund",
  resource == AgentCore::Gateway::"arn:aws:bedrock-agentcore:us-west-2:123456789012:gateway/my-gateway-a1b2c3d4e5"
)
when guardrails {
  Zscaler::PromptInjection([context.input.reason]).confidenceScore.greaterThanOrEqual(decimal("0.9"))
};

A forbid grants nothing by itself, so the action still needs a permit, and the docs create guardrail policies with --validation-mode IGNORE_ALL_FINDINGS. The thresholds, and what a level or score means, come from the provider, so the security team that owns the provider account should choose them. For categorized types, aggregations such as maxConfidenceScore(), count() and categories() reduce the results across the categories you named.

The Building AI Agents with Strands Agents and Amazon Bedrock AgentCore course writes AgentCore Policy in Cedar and in natural language, alongside Bedrock Guardrails on Strands models and shadow-mode checks with hooks.

Screening streamed responses

The second half of the release covers output. The streaming guardrails page defines the effects that act on what a target returns:

  • suppressOutput holds the whole response and checks it once at the end.
  • interruptOutput ends a streamed response with an error event; the client keeps what it already received.
  • redactOutput replaces each finding with a label such as {EMAIL} and lets the response continue.
  • redactInput masks a request before the target receives it.

Streaming checks work on inference targets (OpenAI Chat Completions and Responses, Anthropic Messages, and Bedrock InvokeModelWithResponseStream) and on MCP tool responses sent as server-sent events. HTTP targets get suppressOutput only.

The gateway evaluates a stream in windows of 1,024 characters and always holds back the newest window, so a finding split across two windows can still be masked. That changes what users see: a response shorter than about 2,048 characters arrives all at once when the model finishes, and a longer one arrives in steps of about 1,024 characters. The gateway sends no keep-alive events while it holds text, so client read timeouts need room for the delay. When a policy interrupts a stream that has started, the HTTP status is still 200 and the failure arrives as an error event in the format of the API the client called, so client code has to handle it there.

Masking needs a check that reports where each finding is. Every provider's checks work with interruptOutput, but only some work with redactOutput and redactInput: BedrockGuardrails::SensitiveInformation, CheckPoint::PII, two Prompt Security data privacy checks and Zscaler::PII. Netskope and Rubrik checks can interrupt but not mask. Don't put a suppressOutput policy on the same action as redactOutput: the gateway then holds the whole response, and the redact policy denies it instead of masking it.

What to plan for before turning it on

  • Checks fail closed. If the provider can't be reached, rejects the key or returns an error, the request or response is denied and a stream ends. The provider's availability and rate limits become part of your gateway's availability.
  • Streams mean many calls. Each evaluation of a streamed response sends all the text received so far to the provider, so a long answer produces several provider calls.
  • Content leaves AWS. The gateway sends the text named in the policy to the provider, under your agreement with that provider. Whoever approves data handling should review the provider's terms before the first policy goes live.
  • Data paths must match the format. A path that finds no text denies the response. $.content[*].text reads Claude responses on Anthropic Messages but matches nothing in an Amazon Nova response.
  • Test in LOG_ONLY mode first. A LOG_ONLY interrupt or redact policy never ends or masks a response, but it still makes the gateway deliver text in steps, so latency testing in that mode reflects what users will get.
  • Watch it in CloudWatch. Evaluation results, provider latency, errors and final decisions appear in AgentCore Observability and Amazon CloudWatch.