Glossary

    Lambda Security

    Compute & Serverless

    Lambda Security covers the practices and configurations needed to run serverless functions securely. Each Lambda function has an execution role that defines what AWS services and resources the function can access.

    Key Security Controls

    • Execution Role: apply least-privilege IAM policies; never use AdministratorAccess
    • Resource-based Policy: controls who/what can invoke the function
    • Function URL Authentication: use AWS_IAM auth type, not NONE (which makes it public)
    • VPC Placement: place functions in a VPC to access private resources; requires ENI permissions
    • Code Signing: ensures only trusted code packages are deployed
    • Environment Variables: encrypt sensitive values with KMS; never store secrets in plaintext
    • Reserved Concurrency: prevents a single function from consuming all account concurrency

    Common Risks

    • Overly permissive execution roles (e.g., s3:* instead of s3:GetObject on a specific bucket)
    • Public function URLs without authentication
    • Secrets hardcoded in environment variables without encryption
    • Event injection through untrusted event sources

    Related AWS Services

    Toc Consulting: AWS Security & Cloud Architecture

    Securing your AWS estate?

    Our team helps engineering teams secure and architect AWS the right way: assessment in week one, a prioritized action plan in week two.