AGENTSEC06-BP03 Establish trust boundaries between agents
A flat agent network gives every affected agent a direct path to every other one. Trust zones segmented at the network and IAM layers, with application-layer verification of caller identity, stop one affected agent from escalating across the whole system.
Desired outcome:
-
Agents operate within clearly defined trust zones, accepting instructions only from authorized coordinators and rejecting requests from agents outside their trust boundary.
-
Network segmentation enforces trust boundaries at the infrastructure layer and IAM policies enforce them at the API layer.
-
An affected agent in one trust zone can't directly issue instructions to agents in higher-trust zones without passing through authorization controls.
Common anti-patterns:
-
Deploying all agents in a flat network without segmentation, letting any agent communicate directly with any other regardless of trust level so an issue spreads laterally.
-
Relying on network-level trust boundaries alone without application-layer authorization, so any agent that reaches another agent's endpoint can issue instructions.
-
Not validating the identity of the coordinator agent before executing instructions, letting any agent impersonate a coordinator and issue unauthorized commands.
-
Treating all internal agents as implicitly trusted while implementing trust boundaries only for external-facing agents, producing a flat internal trust model that amplifies the impact of any internal issue.
Benefits of establishing this best practice:
-
Trust zone segmentation contains the impact of an affected agent to its own trust zone, helping prevent lateral movement.
-
Layered enforcement at both the network level (VPC segmentation, security groups) and the application level (IAM policies, agent identity validation) provides defense-in-depth.
-
Documented trust architecture supports automated compliance checks that catch drift as configurations evolve.
Level of risk exposed if this best practice is not established: High
Implementation guidance
Trust boundary controls apply regardless of the inter-agent protocol used, whether A2A, MCP, or custom REST. The network-layer controls (VPC segmentation, security groups, AWS PrivateLink) and IAM-layer controls (resource-based policies, IAM Conditions) enforce boundaries independent of the application protocol. Protocol-specific guidance applies on top of these common controls.
A trust zone architecture starts with tiers that reflect actual risk: public, internal operational, privileged. Enforce the tiers at the network with separate Amazon VPCs or VPC security groups, and use Amazon VPC peering or AWS Transit Gateway with route table controls to restrict inter-zone communication to only the required paths. Network segmentation alone doesn't verify the caller's identity, so pair it with application-layer authorization.
Amazon
Bedrock AgentCore Runtime
Resource-based policies on agent endpoints explicitly list the IAM
principals authorized to invoke each agent. IAM Conditions
restrict invocations to agents within the same trust zone or to
specific coordinator agent roles. AWS PrivateLink keeps cross-zone
agent communications on private network paths.
Policy
in Amazon Bedrock AgentCore
Compliance validation detects drift from the intended network posture. AWS Config managed rules, vpc-sg-open-only-to-authorized-ports for unintended public ingress, restricted-ssh for SSH access from 0.0.0.0/0, vpc-sg-port-restriction-check for port-level restrictions, cover baseline network hygiene. Trust-zone-specific validation (that security group rules reference only CIDR ranges or security group IDs from the same trust zone) needs custom AWS Config rules backed by AWS Lambda, and alarms fire on any configuration change that would create unauthorized cross-zone connectivity.
Implementation steps
-
Design trust zone tiers: Define tiers (public, internal operational, privileged) and document the authorized communication paths between zones.
-
Segment at the network layer: Create separate Amazon VPCs or security groups for each trust zone and configure network controls (VPC peering, AWS Transit Gateway route tables) to enforce zone boundaries.
-
Enforce identity at the application layer: For agents on Amazon Bedrock AgentCore Runtime
, configure A2A agent card discovery with authentication requirements that enforce trust-level validation. For agents not on AgentCore Runtime, use Amazon API Gateway with AWS Lambda authorizers for custom trust boundary enforcement. -
Apply resource-based IAM policies: List only authorized coordinator principals in each agent endpoint's resource policy, with IAM Conditions restricting invocations by trust zone.
-
Reinforce at the tool layer with Policy: Configure Cedar policies in Policy in Amazon Bedrock AgentCore
with conditions on calling principal identity and trust level. -
Keep cross-zone traffic private: Implement AWS PrivateLink for cross-zone agent communications.
-
Validate configurations continually: Deploy AWS Config managed rules (vpc-sg-open-only-to-authorized-ports, restricted-ssh, vpc-sg-port-restriction-check) for baseline hygiene and custom AWS Config rules for trust-zone-specific validation, alarming on any change that would create unauthorized cross-zone connectivity.
Resources
Related best practices:
Related documents:
Related services: