AWS · Compute · Workload Identity Risk
AWS Lambda Execution Role Risk
Intermediate LAB for understanding how Lambda execution roles, function management permissions, iam:PassRole, Secrets Manager access, and KMS decrypt authority combine into workload identity risk.
Overview
Lambda execution role risk appears when a principal can influence code or configuration that runs under a stronger role. This is workload identity risk: the workload performs actions the caller may not be able to perform directly.
Concept Deep Dives
Expand these concepts when studying Lambda workload identity or explaining applied privilege paths.
What is a Lambda execution role?
A Lambda execution role is the IAM role assumed by the Lambda service when a function runs. The function's runtime permissions come from this role, not from the caller who created or invoked the function.
Why does iam:PassRole matter?
iam:PassRole controls whether a principal can attach an IAM role to a service such as Lambda. If a principal can pass a powerful role and create or update a function, a workload identity path may emerge.
What is workload identity risk?
Workload identity risk occurs when an application, function, job, or service runs with permissions that can access sensitive resources, especially when lower-privilege users can influence that workload.
How do Secrets Manager and KMS connect?
Lambda functions often retrieve secrets and decrypt data. If the execution role has Secrets Manager and KMS authority, function code may access sensitive values at runtime.
What should executives understand?
Serverless risk is identity risk. The important question is not only who can call a function, but who can change what it runs as and what protected systems that role can access.
Visual Lambda Workload Identity Model
Lambda execution role risk is easiest to understand as a caller-to-workload identity path.
Example Scenario
A developer can update Lambda code. The function's execution role can retrieve a production secret and decrypt it.
Caller permission: lambda:UpdateFunctionCode allowed
Execution role: secretsmanager:GetSecretValue allowed
Execution role: kms:Decrypt allowed
Function behavior: controlled by caller
Final result: WORKLOAD IDENTITY RISK POSSIBLE
Bridge to Principal LABs
Lambda execution role risk is an applied bridge into Principal LABs because it demonstrates how workload identity can expand authority through role attachment, function code, and runtime permissions.
Governance Boundary
This lab is read-only and deterministic.
Runtime = source of truth
OPA = decision authority
Aegis = bounded intelligence
Frontend = rendering only
- Does not exploit AWS
- Does not mutate infrastructure
- Does not deploy Lambda functions
- Does not update real function code
- Does not pass IAM roles
- Does not invoke AWS APIs against customer accounts
- Does not retrieve secrets or decrypt data
- Does not override OPA
Source Artifacts
metadata.jsonarchitecture.mdindex.html