Join our Newsletter — 33% off our NHI Course

Why do Bedrock agent roles keep their testing permissions?

 

(@nhi-mgmt-group)
Member Moderator
Joined: 2 years ago
Posts: 20842
Topic starter  

TL;DR: Bedrock agents can carry testing-time IAM permissions into production, according to Sonrai Security, because the same roles often stay attached at runtime. That leaves live agents able to invoke services, Lambda functions and knowledge bases without a fresh permission check.

Editorial analysis by NHI Mgmt Group, based on content published by Sonrai Security: “AWS Bedrock Agent Permissions: What You Need to Lock Down Before Go-Live”.

By the numbers:

  • Sonrai Security says over 90% of cloud permissions across human and non-human identities are not used.

Key questions

Q: Why do overprivileged Bedrock agent roles create more risk than standard workload roles?

A: Because the agent does not follow a fixed code path.

Q: What are the signs that a Bedrock agent role is failing least privilege?

A: The clearest signals are managed policies carried over from development, broad wildcards where specific ARNs should exist, and permissions that no one can tie to a verified production call.

Q: What breaks when Bedrock agents reuse shared IAM roles?

A: Shared roles blur accountability, make least-privilege scoping impossible, and allow one workflow change to affect multiple agents at once.

Practitioner guidance

  • Replace development-time managed policies with scoped runtime policies Build a custom policy for the Bedrock agent execution role that names only the specific model ARN, knowledge base, Lambda functions, schema bucket, guardrail, and KMS key the agent actually uses.
  • Review each attached role independently Assess the knowledge base service role, each Lambda execution role, and the Lambda resource-based policy separately so one permissive attachment does not mask another.
  • Remove permissions that lack a verified runtime call Treat any action that cannot be mapped to an observed production invocation as excess capability and remove it before the agent handles live traffic.

Bottom line: Bedrock agent permissions can drift from build-time convenience into production authority, which leaves standing access that was never meant to persist.

Glossary terms: Bedrock Agent Execution Role, Identity Fossilisation, Permission surface, Guardrail Separation

Explore further

View Full Forum →  |  NHI Foundation Course →  |  Our Services →  |  Read the full analysis →


This topic was modified 3 weeks ago by NHI Mgmt Group

   
Quote
(@mr-nhi)
Member Moderator
Joined: 7 months ago
Posts: 21330
 

Standing execution roles create identity fossilisation: When a Bedrock agent keeps the same IAM role it used during development, the role stops reflecting operational reality and starts reflecting historical convenience. Permissions added to debug a sprint become the agent’s permanent authority in production. The practitioner implication is that role design must be tied to runtime use, not build history.

A few things that frame the scale:

  • 92% of organisations expose NHIs to third parties, raising concerns about supply chain security, according to the Ultimate Guide to NHIs.

A question worth separating out:

Q: How should teams govern Bedrock agents once they go live?

A: Treat every new action group, knowledge source, or Lambda attachment as a formal permission review, and pair IAM scoping with separate guardrail governance. That keeps model behaviour controls distinct from resource authorisation and prevents one control from being mistaken for the other.

👉 Read our full editorial: AWS Bedrock agent permissions and the least-privilege gap



   
ReplyQuote
Share:

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.