By NHI Mgmt Group Editorial TeamDomain: Cyber SecuritySource: OFFENSAIPublished 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 is a new AWS capability that runs Lambda on EC2-backed infrastructure while tightening instance-level access and role modification controls.

Why it matters: It matters because teams using Lambda-style workloads still need to understand where identity, runtime isolation, and temporary credential handling can fail when serverless abstractions sit on managed compute.

👉 Read OFFENSAI's security overview of AWS Lambda Managed Instances


Context

Lambda Managed Instances sits at the boundary between serverless abstraction and managed compute. That boundary matters because identity controls, runtime isolation, and temporary credential handling behave differently once functions execute on EC2-backed infrastructure rather than a fully abstracted platform. The key question for practitioners is not whether the model is serverless enough, but which operational assumptions change when the service owns the host and the customer still owns the workload.

For IAM, PAM, and NHI teams, the relevant issue is how temporary credentials, function roles, and instance-level controls are separated in practice. The article’s initial findings suggest AWS is constraining direct access more aggressively than in other managed compute patterns, which is exactly the kind of design that can either reduce blast radius or hide governance gaps if teams assume the platform has solved the problem for them. That starting position is unusual enough to warrant closer scrutiny rather than complacency.


Key questions

Q: How should teams govern Lambda workloads that run on managed instances?

A: Treat the Lambda execution role as the primary identity boundary and verify that host access cannot be used to widen it. Control-plane restrictions, short-lived credentials, and strict permission scoping matter more than traditional server access in this model. If the role can be inherited, modified, or replayed, the managed instance layer is not actually containing risk.

Q: Why do serverless workloads still need strict NHI governance?

A: Serverless does not remove identity risk because functions still depend on roles, keys, tokens, and permissions to operate. If those identities are over-privileged or exposed, attackers can deploy code, reach data, and hide activity inside trusted cloud APIs. Governance has to follow the identity, not the runtime model.

Q: What breaks when instance-level access is assumed to equal workload access?

A: That assumption breaks the security model by turning infrastructure controls into a shortcut for workload impersonation. In managed compute, the instance is not supposed to be the principal. If operators can reach host-level permissions and infer function credentials, segregation between platform and application identity has already failed.

Q: What should security teams do when cloud providers hide the worker layer?

A: Verify the trust model through identity boundaries, telemetry, and change control rather than expecting direct shell access. If you cannot inspect the worker, you need stronger evidence that the provider can isolate tenants, bind credentials correctly, and revoke access cleanly. The burden shifts from admin access to assurance.


Technical breakdown

How Lambda Managed Instances separates function identity from instance access

Lambda Managed Instances appears to preserve a clear boundary between the Lambda function role and the underlying EC2 instance. The article describes an explicit deny when attempting to attach or modify IAM instance profiles, which means the function environment is not meant to inherit the same mutable privileges as a normal EC2 host. That distinction matters because it limits a common failure mode in managed compute, where workload execution and host administration become too closely coupled. In identity terms, the instance is infrastructure, not the principal that should govern function access.

Practical implication: treat the Lambda role as the security boundary and verify that host-level assumptions do not leak into workload authorisation.

Runtime isolation and the limits of direct instance access

The author reports that SSH, SSM, and EC2 Instance Connect are unavailable, and that even launching a new instance from the same AMI does not grant access. That suggests AWS is layering runtime controls beyond image hardening, likely to isolate function execution from operator access. From a security engineering perspective, this reduces persistence opportunities and makes post-compromise movement harder, but it also means researchers and defenders must reason about indirect evidence, not console assumptions, when evaluating the trust model. The architecture looks closer to a sealed worker environment than a conventional managed node.

Practical implication: focus assurance on isolation guarantees and access boundaries rather than expecting host inspection to be part of normal operations.

Bottlerocket, containerd, and the managed worker control plane

The AMI analysis shows Bottlerocket OS, containerd execution, and internal services such as elevator-agent and fluxpump. Those components point to a layered worker model where network setup, cgroup enforcement, telemetry, and function lifecycle management are separated into distinct services. That architecture is relevant because it shows how cloud platforms reduce attack surface by constraining mutability, but it also concentrates trust in the control plane that orchestrates the worker. For practitioners, the architectural question is whether that control plane can be governed, monitored, and audited with enough fidelity for regulated workloads.

Practical implication: map workload risk to the control-plane services that create, isolate, and observe the worker, not just to the function code itself.


Threat narrative

Attacker objective: The attacker’s objective would be to turn managed Lambda infrastructure into a route for impersonating functions or extracting credentials and runtime secrets.

  1. Entry would likely begin with exposure or misuse of cloud credentials that let an attacker inspect managed runtime artifacts rather than the live Lambda instance itself.
  2. Escalation would come from attempting to abuse role attachment, host access, or AMI-derived artefacts to recover secrets or infer runtime behaviour.
  3. Impact would be the discovery of a trust boundary flaw that enables function impersonation, cross-environment access, or broader cloud compromise.

NHI Mgmt Group analysis

Serverless abstractions do not remove identity governance. They relocate it. Lambda Managed Instances is a reminder that the control problem shifts from host administration to workload identity, runtime isolation, and control-plane trust. The function role remains the object that matters, even when the underlying compute is managed by the cloud provider. Practitioners should evaluate Lambda-like services as identity-bearing execution environments, not as identity-free utilities.

Explicit denial of instance profile attachment is a governance signal, not just a technical detail. The article’s blocked role-attachment attempt suggests AWS is preventing the classic managed-node failure mode where host access becomes a shortcut to workload privilege. That aligns with the broader NHI principle that a service account or workload role should not be trivially escalated through adjacent infrastructure. The practical lesson is to treat host-to-workload privilege bridging as a control failure, not an inconvenience.

Immutable worker design reduces persistence but increases dependence on opaque control-plane behaviour. Bottlerocket, containerd, and internal elevator services imply a tightly orchestrated runtime that is harder to tamper with directly. That improves attack resistance, but it also means defenders need stronger assurance around observability, attestation, and change control in the provider-managed layer. Security teams should assume the hidden layer is part of the trust boundary and ask how it is audited.

Managed compute is now a non-human identity problem as much as a cloud problem. Lambda functions, the roles they assume, and the infrastructure that mediates those roles all behave like governed machine identities. This is where IAM and NHI governance converge with cloud architecture: if a function can be impersonated, rotated, or scoped poorly, the platform’s abstraction does not matter. Teams should align Lambda governance with workload identity controls, not just with serverless deployment practices.

Lambda Managed Instances may narrow one attack surface while exposing another: runtime trust assumptions. The more opaque the worker model becomes, the more important it is to verify how temporary credentials are issued, bound, and revoked inside the execution path. That makes this feature less about serverless convenience and more about whether cloud operators can prove the integrity of ephemeral, identity-scoped execution at scale. Practitioners should demand evidence of how those trust assumptions are enforced.

What this signals

Managed Lambda models will push more teams to treat function roles as lifecycle-managed machine identities. The operational question is no longer whether a serverless service is abstracted enough, but whether the identity attached to it is scoped, rotated, and revoked with discipline. Teams that already struggle with service account visibility should expect that gap to show up quickly in managed compute governance.

Serverless trust now depends on proving what cannot be directly inspected. When direct host access is unavailable, defenders need stronger evidence from telemetry, attestation, and control-plane auditing that temporary credentials are bound to the correct runtime. That makes workload identity assurance a programme issue, not just an engineering detail.

Immutable worker design can reduce blast radius, but it does not remove the need for lifecycle controls. The real challenge is whether the platform can prove that credentials, roles, and runtime bindings die when the task ends. In practice, that is where NHI governance and cloud governance meet.


For practitioners

  • Review Lambda role boundaries Map every Lambda function role to the exact permissions it needs and confirm that no host-level action can widen that scope inside managed instances.
  • Test for control-plane separation Validate that instance-profile operations, SSM-style access, and console-based escalation paths remain blocked in your own managed compute assumptions.
  • Document temporary credential flows Identify how short-lived credentials are issued and revoked for Lambda workloads so the function identity cannot outlive its intended session boundary.
  • Align NHI governance to serverless runtime Treat Lambda execution roles as machine identities subject to lifecycle, scoping, and revocation controls, not as deployment-only artefacts.

Key takeaways

  • Lambda Managed Instances shifts the security discussion from host access to workload identity and control-plane trust.
  • The initial testing shows stronger barriers to role attachment and direct instance access than in many managed compute patterns.
  • Teams should govern Lambda execution roles as machine identities with explicit lifecycle, scope, and revocation 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 and MITRE ATT&CK address the attack and risk surface, while NIST CSF 2.0, NIST SP 800-53 Rev 5 and NIST Zero Trust (SP 800-207) set the governance and control requirements practitioners need to meet.

FrameworkControl / ReferenceRelevance
OWASP Non-Human Identity Top 10NHI-01The post centres on workload identity and managed credential boundaries.
NIST CSF 2.0PR.AC-4Least-privilege access and identity scoping are the main governance issues here.
NIST SP 800-53 Rev 5AC-6Privilege restriction is central to preventing role and host escalation.
NIST Zero Trust (SP 800-207)The feature depends on continuous trust separation between workload and infrastructure.
MITRE ATT&CKTA0006 , Credential Access; TA0004 , Privilege EscalationThe threat discussion centres on credential exposure and attempts to expand privilege.

Map Lambda execution roles to NHI-01 and scope each workload identity to a minimal lifecycle.


Key terms

  • Lambda Execution Role: The IAM role a Lambda function assumes when it runs. It defines what the function can access, so it acts as the workload’s identity boundary rather than a host permission set. In managed compute, this role must be governed like any other machine identity.
  • Managed Compute Boundary: The separation between customer workload logic and provider-managed infrastructure. It limits direct admin access to the worker while shifting trust toward the platform’s control plane, telemetry, and runtime enforcement. Security teams must validate where the boundary starts and ends.
  • 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.

What's in the full article

OFFENSAI's full article covers the operational detail this post intentionally leaves for the source:

  • Step-by-step AMI inspection workflow used to infer how Lambda Managed Instances is built
  • File-level observations from the Bottlerocket image, including Elevator services and binaries
  • The author's direct testing notes on EC2 Instance Profile denial and direct access limitations
  • Tooling references such as investigator.cloud, CloudShovel, and coldsnap for deeper runtime analysis

👉 The full OFFENSAI post covers the AMI analysis, runtime observations, and test results in more detail.

Deepen your knowledge

NHI Foundation Level course, the industry's only accredited NHI security programme, covers NHI governance, machine identity security, secrets management, and identity lifecycle. It helps security and identity practitioners align workload controls with the way modern cloud services actually authenticate and operate.
NHIMG Editorial Note
Published by the NHIMG editorial team on August 18, 2026.
NHI Mgmt Group — the independent authority on Non-Human Identity, IAM, and Agentic AI security. nhimg.org