Amazon Bedrock Agents is an AWS capability for building AI agents that use a foundation model to plan tasks, call action groups backed by APIs or Lambda functions, and query knowledge bases. Each agent acts through an IAM service role, so over-broad permissions let a prompt injection reach resources. Defenders scope roles tightly, apply guardrails and review invocation logs.
What Amazon Bedrock Agents Actually Do
Amazon Bedrock Agents are not just model wrappers. They turn a foundation model into an orchestrator that can plan steps, call action groups, and query knowledge bases, which means the agent becomes the decision layer between a user request and the AWS resources it is allowed to reach.
That architecture is powerful because it centralises task execution, but it also concentrates trust. The practical security question is always the same: what can the agent decide to do, and what downstream systems will accept that decision as authorised?
Why the Service Role Boundary Matters
Each agent acts through an IAM service role, so the role is the real enforcement point for what the agent can touch. If that role is too broad, the model can be steered into actions that were never intended by the operator, especially when prompts, retrieved content, or tool outputs contain malicious instructions.
In a Bedrock deployment, the role boundary should be understood as part of the agent design, not as a background AWS detail. Tight scoping reduces the blast radius if the agent is misled, while coarse permissions effectively turn a conversational interface into an over-privileged automation path.
For a broader security view of how to structure those controls, the Amazon Bedrock Security Guide covers the role, guardrail, and logging patterns that sit around the service.
Action Groups, Tools, and Knowledge Bases
Action groups are where Bedrock Agents stop being descriptive and start being operational. When they invoke APIs or Lambda-backed actions, they inherit whatever trust the target service gives them, so the safety of the whole design depends on the quality of the tool boundary, not just the model prompt.
Knowledge bases add a second trust path. They can improve usefulness, but they also create a route for poisoned or misleading content to influence planning, especially when retrieval results are treated as authoritative without filtering, provenance checks, or scope limits.
That is why Bedrock agent architecture should be mapped carefully to the intended use case. A low-risk conversational assistant may need only read-only retrieval, while an operational agent may need explicit confirmation before any irreversible action is taken.
When you are deciding whether the agent is even needed, NHIMG’s AI Agent Frameworks and Platforms Hub (2026) is useful background for understanding where Bedrock sits in the wider agent platform landscape.
Observability, Guardrails, and Review
Security for Bedrock Agents is not complete at deployment time. Invocation logs, trace data, and guardrail settings are the evidence that lets teams see whether the agent is behaving within its intended envelope, and whether a prompt injection or misuse attempt is being absorbed or allowed through.
Review should focus on what the agent tried to do, which tools it selected, which permissions were actually exercised, and whether the outcome matched the expected business action. That makes logs useful not only for incident response, but also for control tuning and post-deployment assurance.
For teams that want a deeper operational checklist, the Amazon Bedrock Agents Security Guide goes deeper into least-privilege action groups, pinned service roles, and logging practices for this service.
When Bedrock Agents Become a Security Problem
Bedrock Agents become risky when their autonomy outpaces their authorization. The main failure modes are over-broad service roles, unsafe action groups, weak confirmation boundaries, and poor review of runtime activity, all of which can turn a prompt-level influence into a real AWS-side action.
That is why the safest mental model is not “the model decides”, but “the role and controls decide, the model only proposes”. If the service role can reach sensitive data, modify infrastructure, or trigger downstream workflows, the agent has to be governed like any other privileged automation path.
If you want a practical method for checking what exists in an AWS environment before tightening controls, How to inventory AI agents in AWS Bedrock helps teams map agents, roles, tools, and credentials before they become harder to govern.
Risk and Threat Considerations
Bedrock Agents introduce a real security exposure because they can convert untrusted language input into tool use, API calls, or Lambda execution. If an attacker can influence the prompt, retrieved content, or tool context, the agent may attempt actions that look legitimate to downstream systems but are not legitimate from the operator’s point of view.
Failure mechanism: Over-permissioned service roles, weak action-group boundaries, and insufficient confirmation controls let prompt injection or malicious content steer the agent into sensitive operations, data access, or exfiltration paths.
Impact: The result can be unauthorized resource access, data leakage, unintended changes in AWS services, or a broader compromise path if the agent can reach privileged APIs, secrets, or operational workflows.
Standards & Framework Alignment
This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.
OWASP Agentic AI Top 10 and OWASP Non-Human Identity Top 10 address the attack and risk surface, while NIST SP 800-53 Rev 5 sets the governance and control requirements practitioners need to meet.
| Framework | Control / Reference | Relevance |
|---|---|---|
| OWASP Agentic AI Top 10 | ASI03 — Identity & Privilege Abuse | Bedrock Agents can abuse delegated role authority through tools and actions. |
| Recommendation — Constrain agent authority so prompts cannot expand tool or resource access beyond intended scope. | ||
| NIST SP 800-53 Rev 5 | IA-9 — Service Identification and Authentication | Bedrock agents and action groups rely on service-to-service trust and scoped execution. |
| AC-6 — Least Privilege | The service role determines what the agent can actually reach or change. | |
| AU-6 — Audit Record Review, Analysis, and Reporting | Invocation logs are central to reviewing agent activity and misuse. | |
| Recommendation — Authenticate agent-to-service interactions and restrict the credentials the agent can present. Minimise agent role permissions to the smallest set of required actions and resources. Review agent logs for unexpected tool calls, data access, and policy violations. | ||
| OWASP Non-Human Identity Top 10 | NHI-05 — Overprivileged NHI | The agent’s service role is a non-human identity boundary that can become overprivileged. |
| Recommendation — Scope the agent’s service role tightly and remove unused permissions. | ||
Practitioner Guidance
Why practitioners should care: Treat each agent as a governed execution surface, not as a harmless chatbot feature. The control question is whether the agent can do anything material without a human or policy boundary intervening first.
Governance implication: Assign ownership for the agent’s service role, action groups, guardrails, and logging together, because these controls only work when they are designed as one boundary. Review them whenever the agent’s tools, knowledge sources, or target resources change.
Practitioner takeaway: If you cannot describe the agent’s maximum plausible action in one sentence, the permissions are probably too broad.
Related resources from NHI Mgmt Group
- How should security teams govern Amazon Bedrock agents as identities?
- How do you secure third-party AI agents such as Amazon Bedrock with Microsoft Entra Agent ID?
- How do you apply Amazon Bedrock Guardrails to Bedrock agents?
- How do you use Amazon Bedrock Guardrails to protect AI agents and applications?
Deepen Your Knowledge
Free weekly newsletter
Subscribe to the NHI & AI Identity Journal
The latest on NHI and Agentic AI security – articles, research, breaches, news and events every week.
Bonus 33% off our NHI Course when you subscribe.
Reviewed and updated by the NHIMG editorial team on November 26, 2026.
NHI Mgmt Group — the #1 independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org