By NHI Mgmt Group Editorial TeamPublished 2025-09-12Domain: Agentic AI & NHIsSource: Teleport

TL;DR: Agentic AI built on Amazon Bedrock is being used to trigger Lambda, EC2, S3, and RDS actions through MCP, but shared admin credentials and long-lived access leave request origin, scope, and accountability unclear, according to Teleport. The real security problem is not automation itself but whether each agent action is bound to a unique identity and a short-lived, policy-checked session.


At a glance

What this is: This is an analysis of how Bedrock-driven agent actions should be governed with unique identity, policy enforcement, and session-based access across AWS workloads.

Why it matters: It matters because IAM, NHI, and emerging autonomous controls all fail when agent actions inherit shared credentials, broad permissions, or weak attribution.

By the numbers:

  • When AWS credentials are exposed publicly, attackers attempt access within an average of 17 minutes and as quickly as 9 minutes in some cases.
  • Only 44% of developers are reported to follow security best practices for secrets management, exposing a significant developer behaviour gap.

👉 Read Teleport's analysis of Bedrock agent-initiated actions and scoped access


Context

Bedrock agent-initiated actions expose a familiar identity problem in a new runtime form: an AI-driven request may be legitimate in intent but still unsafe if it inherits broad, shared, or persistent credentials. In this case, the primary keyword is Bedrock agent identity governance, because the control question is who or what is actually authorised to invoke cloud actions, not whether the workflow is automated.

The article argues for unique identity, short-lived certificates, and policy checks for each agent session across Lambda, EC2, S3, and RDS. That framing matters for NHI programmes because MCP can structure requests, but it does not enforce identity-bound accountability on its own. The gap is not orchestration; it is governance of the actor behind the request.

For security teams, the practical issue is whether agentic access can be scoped tightly enough to survive real cloud operations without turning into standing privilege by another name. The examples in the article show that the same access patterns used for humans and CI/CD need to be rethought when the requester is an AI agent acting at runtime.


Key questions

Q: How should security teams govern AI agent access to cloud resources?

A: They should give each agent a unique identity, require policy approval before any session starts, and scope access to one task, one resource set, and one time window. The goal is not just control of automation. It is making every action attributable, reviewable, and revocable at the identity layer.

Q: Why do shared credentials create risk in agentic workflows?

A: Shared credentials erase the line between requester and operator, so security teams cannot tell whether a Lambda invocation, database query, or EC2 session came from the right agent and task. That ambiguity weakens attribution, broadens blast radius, and makes revocation and investigation far harder than they should be.

Q: What breaks when AI agents are given broad cloud permissions?

A: Broad permissions turn a task-specific workflow into general-purpose access. An agent that should touch one S3 prefix or one RDS database can drift into nearby resources, creating overreach, unnecessary data exposure, and weak accountability. The failure is not speed. It is the loss of scope boundaries.

Q: How can teams tell whether agent access is actually controlled?

A: Look for three signals: every approved session maps to one agent identity, each action is tied to a specific resource and purpose, and credentials expire when the task ends. If you cannot trace those three elements in logs, the access model is too loose for production use.


Technical breakdown

MCP as a request carrier, not an authorisation control

Model Context Protocol structures the exchange between an agent and a tool, but it does not decide whether the action should be allowed. In this pattern, the MCP server forwards context such as agent identity, target resource, and task description to an external control plane. The security boundary therefore sits outside the protocol. Without that boundary, the system cannot distinguish a support task from an overbroad request, even if the call looks operationally correct. The architecture only becomes defensible when the request is evaluated against policy before credentials are issued.

Practical implication: treat MCP as transport and place authorisation, identity binding, and audit logging in a separate control plane.

Short-lived certificates change the exposure model for AI agent access

The article describes session-based access using AWS IAM roles and x.509 certificates, which replaces standing credentials with time-bound proof of identity. That matters because a certificate tied to one task cannot be reused as a general-purpose secret. For AI agents, the real control gain is not speed but reduced persistence: access exists only for the approved task window and can be tied to a specific agent identity and purpose. This is the same basic NHI principle used for machine identities, applied to agent-initiated requests.

Practical implication: issue short-lived credentials per task and avoid any access path that leaves reusable secrets on the agent side.

Task-scoped cloud permissions are the difference between automation and overreach

The four examples in the article show the same pattern across Lambda, EC2, S3, and RDS: the agent gets only the exact action set and resource scope needed for a single workflow. That means restricting Lambda to approved ARNs, EC2 to tagged remediation nodes, S3 to one prefix and read-only operations, and RDS to specific databases under a readonly role. This is not generic least privilege. It is identity scope translated into cloud resource scope, with audit metadata preserved for every session.

Practical implication: map each agent workflow to explicit resource labels, action limits, and audit fields before allowing production access.


Threat narrative

Attacker objective: The objective is to turn a legitimate agent workflow into broad, reusable cloud access that can reach more data and infrastructure than the approved task required.

  1. Entry occurs when an AI agent or MCP server is given broad cloud credentials that can invoke AWS services without a strong identity distinction between requester and operator.
  2. Credential abuse follows when those shared or long-lived credentials can be reused across tasks, making it impossible to confine access to one Lambda function, EC2 node, S3 prefix, or RDS database.
  3. Impact occurs when the agent can overreach into unrelated systems or data, leaving weak attribution and expanded blast radius across production cloud workloads.

Read our 52 NHI Breaches Analysis report for a comprehensive view of breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Agent-initiated cloud access is still an NHI problem before it becomes an AI problem. The article is about Bedrock actions, but the security issue is the same one that governs service accounts and API tokens: what identity is allowed to touch which resource, under what scope, and for how long. That means the first question is not whether the requester is intelligent, but whether the access path is uniquely attributable and time bound. Practitioners should treat AI agent access as a non-human identity control problem first.

Shared credentials create identity ambiguity that destroys accountability. If the MCP server and the agent both operate through the same admin credentials, the programme cannot distinguish task origin, prove intent, or enforce separate privilege boundaries. This is not merely weak hygiene. It is a governance failure because the identity layer stops describing who performed the action. Practitioners should see any shared credential model for agent work as a direct break in attribution and scope control.

Task-scoped authorisation is the right concept, but only when the task boundary is real. The article’s pattern of per-session access for Lambda, EC2, S3, and RDS points to a named concept we would call agent session blast radius: the maximum cloud exposure an AI agent can reach in one approved task. When that blast radius is narrow, compromise is contained; when it is broad, automation becomes an amplifier. Practitioners should model every agent workflow around this boundary.

Least privilege becomes operationally meaningful only when resource identity and agent identity are both explicit. A policy that says an agent may access S3 or RDS is too coarse if it does not name the precise prefix, database, node tag, or function ARN. The article shows that identity governance for agentic systems lives at the intersection of actor identity, workload identity, and resource identity. Practitioners should rework access design so the request, the subject, and the target are all separately governed.

Automation does not excuse the loss of reviewability. The article argues that AI agents should be treated like human operators, but the better governance lesson is stricter: if a session cannot be audited back to a specific agent, task, and policy decision, it should not be approved for production access. That is the standard that keeps agentic automation inside NIST CSF and NHI governance expectations. Practitioners should make traceability a hard admission control, not a logging afterthought.

From our research:

  • When AWS credentials are exposed publicly, attackers attempt access within an average of 17 minutes and as quickly as 9 minutes in some cases, according to LLMjacking: How Attackers Hijack AI Using Compromised NHIs.
  • DeepSeek accidentally embedded over 11,000 secrets in its training data and left a database exposed online, revealing more than one million sensitive records including chat histories, backend credentials, and API keys.
  • The control lesson is broader than one incident, as the Secret Sprawl Challenge shows how hardcoded secrets, fragmentation, and slow remediation keep exposure windows open.

What this signals

With 43% of security professionals already worried that AI systems will learn and reproduce sensitive information patterns from codebases, the next governance gap is not model quality but access design. If agent workflows inherit broad credentials, the organisation turns content exposure into runtime exposure, and that is a different class of identity failure. For that reason, agent governance has to be built around scoped sessions, not generic automation labels.

Agent session blast radius: this is the practical boundary every programme will need to define for Bedrock-style workflows. The article shows why it must include resource scope, task purpose, and session duration together, because any one of those dimensions left loose turns an approved workflow into reusable privilege. Teams that already align identity controls to workload context will absorb this change faster than teams still relying on shared admin access.

For identity leaders, the forward signal is clear: AI agent adoption will increasingly force convergence between NHI governance, cloud entitlement design, and auditability. The control model that worked for human operators and CI/CD does not automatically translate to runtime agents, especially when MCP intermediates requests but does not enforce authorisation. Programmes should prepare to treat agent access as a first-class identity lifecycle problem.


For practitioners

  • Bind each agent workflow to a unique identity Register every Bedrock or MCP-driven agent with a distinct identity so requests can be attributed to one actor, one purpose, and one session. Do not let support, remediation, training, and finance workflows share the same credential path.
  • Replace standing credentials with per-session access Issue short-lived certificates or tokens only after policy approval, and expire them when the task ends. This removes reusable secrets from the agent path and narrows exposure if a request is misrouted.
  • Scope cloud permissions to exact resources and actions Allow Lambda only for approved ARNs, EC2 only for tagged remediation instances, S3 only for the intended prefix, and RDS only for designated databases under read-only permissions.
  • Log task context with every approved action Capture agent ID, requested task, target resource, policy outcome, and session duration for each approval. That metadata is what lets investigators separate legitimate automation from overreach.
  • Review any shared MCP or admin credential model as a design defect If an agent and gateway share the same admin identity, separation of duties has already failed. Break that pattern before expanding automation into production systems.

Key takeaways

  • Bedrock agent access becomes an identity governance issue when the requester can act, but the programme cannot clearly attribute or scope the action.
  • Shared or long-lived credentials are the weak point because they turn task-specific automation into broadly reusable access.
  • The control that matters most is per-session, policy-checked access tied to a unique agent identity, exact resource scope, and complete audit metadata.

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 Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Agentic AI Top 10AG2Agent-driven tool use needs policy gates before runtime actions are allowed.
OWASP Non-Human Identity Top 10NHI-03Short-lived, scoped credentials directly address standing secret risk for agents.
NIST Zero Trust (SP 800-207)PR.AC-4Zero Trust requires continuous verification of each agent session and resource request.

Verify every agent request contextually and authorise only the minimum resource scope.


Key terms

  • Agent Session Blast Radius: The maximum set of resources, actions, and data an AI agent can reach during one approved task. In practice, it is the boundary that determines whether a mistake stays contained or expands into broader cloud access, and it must be defined with resource scope, purpose, and time limits together.
  • Task-Scoped Access: Access granted for one specific job rather than for general use. For agentic systems, task-scoped access means the identity receives only the permissions needed for one workflow, then loses them when the workflow ends. That is the difference between controlled automation and persistent privilege.
  • Mcp Server Identity: The identity assigned to the gateway that mediates agent requests to tools and data sources. It matters because the gateway can become a privilege concentration point if it shares credentials with the agent or inherits broader permissions than the task requires.

What's in the full article

Teleport's full blog post covers the operational detail this post intentionally leaves for the source:

  • Step-by-step policy examples for Lambda, EC2, S3, and RDS access boundaries.
  • The exact request flow between the MCP server and Teleport for issuing short-lived certificates.
  • How Teleport metadata captures agent identity, task description, and resource context for audit trails.
  • The article's practical walkthrough of applying the model across support, remediation, training, and finance agents.

👉 Teleport's full blog post covers the Lambda, EC2, S3, and RDS implementation details.

Deepen your knowledge

AI agent session governance and task-scoped access are core topics in our NHI Foundation Level course, the industry's only accredited NHI security programme. If you are designing controls for Bedrock, MCP, or similar workflows, it is worth exploring.
NHIMG Editorial Note
Published by the NHIMG editorial team on 2025-09-12.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org