By NHI Mgmt Group Editorial TeamBased on OFFENSAI: “AWS Lambda Managed Instances: A Security Overview” (December 3, 2025)

TL;DR: AWS Lambda Managed Instances run Lambda functions on EC2-backed infrastructure with explicit restrictions on role attachment, instance access, and runtime modification, according to OFFENSAI’s security overview. The design reduces obvious attack paths but also shifts practitioner attention toward isolation, credential handling, and runtime trust boundaries in hybrid serverless environments.


At a glance

What this is: AWS Lambda Managed Instances move Lambda onto EC2-backed infrastructure while blocking direct instance access and role attachment, changing how practitioners should think about runtime trust boundaries.

Why it matters: IAM, cloud security, and NHI teams need to reassess how temporary credentials, execution isolation, and underlying host controls interact when serverless workloads are no longer abstracted from the instance layer.


Context

Lambda Managed Instances is AWS's attempt to blend serverless execution with managed EC2 capacity. The security question is what happens when a function still behaves like Lambda from the outside, but now inherits more of the operational and isolation characteristics of instance-backed compute.

That matters for identity and access governance because the control surface shifts from only function permissions to the boundary between function identity, host-level controls, and ephemeral runtime access. When direct instance administration is blocked, practitioners have to assume the platform is enforcing stronger separation than ordinary managed node models and verify where that trust boundary really sits.


Key questions

Q: What breaks when serverless functions run on managed instances instead of abstracted runtime pools?

A: The main break is the assumption that the platform fully abstracts host behavior. When functions run on managed instances, security teams must account for host-backed execution, shared runtime state, and platform-enforced boundaries around identity and access. The risk shifts from obvious host administration to opaque credential handling and isolation guarantees.

Q: Why do managed serverless runtimes create new identity governance questions?

A: Because the function still needs credentials, but those credentials now operate inside a managed instance boundary that operators cannot directly inspect. That raises questions about who or what receives the temporary identity, how long it persists, and whether any host-level path could widen privilege beyond the function's intended scope.

Q: What signs show that a serverless control plane is too opaque to trust?

A: The warning signs are blocked administration paths, unclear credential handoff mechanisms, and runtime layers that cannot be independently validated. If teams cannot observe how execution is isolated or how identities are issued, the control plane may be secure by design but still unproven for the organisation's risk appetite.

Q: How should teams govern managed serverless instances in relation to EC2 controls?

A: They should treat them as a separate operating model, not as ordinary EC2 and not as classic serverless either. Governance should focus on execution boundary validation, temporary credential scope, and whether the platform prevents privilege drift between function identity and underlying compute.


Technical breakdown

EC2-backed Lambda execution and isolation boundaries

Lambda Managed Instances appear to run functions on EC2 instances that AWS provisions inside the customer account, but the platform prevents ordinary instance administration. That means the runtime is no longer a pure abstract service layer. It becomes a managed compute substrate with explicit isolation around role attachment, direct access, and likely host-to-function mediation. The important security detail is not the EC2 label itself, but the fact that function execution now depends on a host boundary that practitioners cannot freely inspect or alter. That changes the threat model from simple function abuse to questions about what isolation guarantees the platform must enforce across shared runtime state.

Practical implication: Treat the host layer as part of the trust boundary and review whether your serverless assumptions still hold when execution is instance-backed.

Why blocked instance profile attachment matters for NHI governance

The explicit deny on attaching or modifying IAM instance profiles closes a classic path where operators overextend permissions onto a runtime host. In NHI terms, it reduces the chance that a workload gains a separate, more powerful machine identity than the function already has. That matters because machine identities often drift into privilege sprawl when platform automation and manual administration overlap. Here, AWS is trying to keep the function role distinct from any underlying instance role, which is the right direction for limiting credential confusion and preventing host-level privilege from becoming an alternate access path.

Practical implication: Verify that your own workload identity model does not create a second, unmanaged identity on top of the function role.

Containerd, Bottlerocket, and the runtime control stack

The article's inspection of the AMI suggests Bottlerocket, containerd, and several AWS-managed services such as Elevator and Fluxpump form the control stack behind Lambda Managed Instances. That implies layered isolation rather than a single monolithic runtime. Network presetup, cgroup setup, worker environment setup, and telemetry each suggest separate control points that shape execution, resource limits, and observability. For practitioners, the key issue is that security assurance depends on the interaction of these layers. If one layer is opaque, you still need to know which identity, network, and telemetry controls you can independently validate at the workload level.

Practical implication: Document which parts of the runtime boundary you can verify, and avoid assuming container isolation alone explains the full security posture.


Threat narrative

Attacker objective: An attacker would aim to break out of the function boundary or misuse temporary runtime credentials to reach broader AWS resources.

  1. Entry would most likely start with a weakness in the function runtime boundary or shared execution environment rather than with direct host login, because standard instance access methods are unavailable.
  2. Credential or role abuse would centre on any path that exposes the Lambda function's temporary credentials or lets an attacker pivot from function context into host context.
  3. Impact would be lateral movement or cross-tenant style abuse through the serverless execution layer if isolation guarantees failed, especially where multiple invocations share the same managed instance.

Read and download The State of NHI & AI Agent Breach Report 2026, covering 200+ breaches impacting Non-Human Identities including AI Agents.


NHI Mgmt Group analysis

Lambda Managed Instances widen the serverless trust boundary without eliminating the need for identity governance. The security story is no longer just about function permissions. It now includes the platform's handling of host isolation, runtime identity, and opaque temporary access paths. For practitioners, that means serverless reviews should extend beyond code and trigger into workload identity and execution boundary checks.

Blocking direct instance access is a governance control, not just an operational convenience. If operators can neither attach instance profiles nor connect through standard EC2 methods, the platform is preventing a class of privilege escalation that often turns managed compute into unmanaged compute. The underlying lesson is that host access and machine identity must be treated as separate control layers. Practitioners should verify that their own runtime models do not allow identity drift between function and host.

Mutable infrastructure assumptions are breaking down in managed serverless environments. Lambda Managed Instances suggests the market is moving toward compute that is flexible at the pricing and performance layer but more rigid at the control layer. That is a useful direction for security, because persistence and manual tampering become harder when the runtime is immutable. For practitioners, the implication is clear: governance has to focus on entitlement, isolation, and telemetry rather than on host administration.

Cloud workload identity becomes the decisive control when execution moves inside opaque managed instances. The article points to temporary credentials, runtime trust, and shared instance execution as the real security questions. That makes workload identity hygiene more important than traditional server access thinking. For practitioners, the control objective is to know exactly which identity is acting, for how long, and within which boundary.

Execution boundary trust gap: the platform can remove direct admin paths and still leave unanswered questions about how a function receives and uses credentials at runtime. That gap is where abuse would likely emerge if isolation failed. Practitioners should treat any opaque credential handoff mechanism as a governance issue until it is observable and bounded.

What this signals

Serverless governance is moving from instance administration to execution-boundary assurance. Lambda Managed Instances show why cloud teams can no longer rely on the old split between serverless and EC2. The more important question is whether the runtime boundary, not the host shell, is what security can actually validate.

Cloud workload identity will matter more than host access in managed execution models. Once direct instance operations are removed, the meaningful control points are credential issuance, runtime scope, and telemetry. Security teams should expect their serverless reviews to look more like workload identity assurance than infrastructure hardening.

Immutable managed runtimes reduce persistence opportunities, but they do not remove trust assumptions. The control challenge shifts to proving that identity handoff, network separation, and shared-instance isolation behave as expected. That is where practitioners should concentrate their validation effort.


For practitioners

  • Review workload identity assumptions Map where Lambda function identity ends and underlying instance controls begin, then confirm that no secondary instance-level identity is available to operators or code.
  • Validate runtime isolation boundaries Test which administration paths are blocked, which telemetry paths remain visible, and whether shared execution creates any privilege or state leakage between invocations.
  • Inventory temporary credential flows Document how ephemeral credentials are issued, scoped, and refreshed inside managed serverless runtimes so the trust chain is visible to security and IAM teams.
  • Reassess serverless threat models Update cloud security reviews to include host-backed execution, opaque managed control planes, and the possibility that isolation failures would look different from classic EC2 compromise.

Key takeaways

  • Lambda Managed Instances narrow direct attack paths, but they also move the core security question to runtime trust and identity handling.
  • The article shows a platform designed to block instance-profile abuse and direct host access, which reduces obvious privilege escalation opportunities.
  • Security teams should revisit serverless threat models so they cover workload identity, credential issuance, and isolation boundaries as first-class controls.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

OWASP Non-Human Identity Top 10 addresses the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5 and CSA Cloud Controls Matrix set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-04 — Insecure AuthenticationThe article asks how Lambda functions receive temporary credentials inside a managed runtime.
NHI-05 — Overprivileged NHIThe post focuses on blocking instance-profile attachment that could widen workload privilege.
NHI-08 — Environment IsolationShared managed instances make isolation between invocations and runtime layers the key issue.
Recommendation — Validate how temporary credentials are issued and scoped inside managed serverless runtimes. Prevent workload identities from inheriting broader host-level privilege than the function requires. Test whether isolation boundaries prevent cross-invocation state or privilege leakage.
NIST CSF 2.0PR.AA-05 — Access Permissions, Entitlements and AuthorizationsThe main governance issue is how permissions and entitlements are bounded inside managed execution.
Recommendation — Review entitlements so Lambda functions retain only the access needed for their runtime role.
NIST SP 800-53 Rev 5IA-5 — Authenticator ManagementThe article centres on temporary credential handling in a managed runtime.
Recommendation — Manage ephemeral authenticators so runtime credentials are issued, scoped, and revoked predictably.
CSA Cloud Controls MatrixIAM — Identity and Access ManagementCloud workload identity and entitlement control are central to the article's security implications.
Recommendation — Apply cloud IAM controls to separate function identity from underlying instance administration.

Key terms

  • Lambda Managed Instances: A managed execution model where Lambda functions run on EC2-backed infrastructure while AWS still controls the underlying host layer. The security significance is that the service remains serverless in operation but inherits more explicit runtime boundary and identity questions from instance-backed compute.
  • Workload Identity: The identity assigned to a software workload, such as a containerised application, serverless function, or microservice, enabling it to authenticate to other services without storing static credentials.
  • Execution boundary: The point at which an authorised task turns into a real system change, such as writing data, deleting records, spending money, or invoking a downstream tool. In AI governance, controlling the execution boundary matters more than simply approving access, because harm occurs when actions are allowed to complete unchecked.
  • Local Trust Assumption: A security design choice that treats requests from a local process, localhost, or nearby proxy as inherently safe. In agent deployments, that assumption can fail because the agent may front remote traffic or inherit trust that should only exist after strong authentication and authorisation.

Deepen your knowledge

The NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, and workload identity. It helps practitioners connect identity controls to the runtime environments their programmes actually rely on.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 18, 2026.
Updated on October 12, 2026.
NHI Mgmt Group, the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org