Skip to main content

07 - References & Standards

This reference module aggregates industry security standards, vulnerability databases (CVEs), regulatory compliance controls, cloud provider documentation, and open-source security tools for serverless architectures.


🛑 Real-World CVEs & Serverless Vulnerabilities

CVE / IdentifierAffected TargetVulnerability ClassDescription / Impact
CVE-2022-22965Spring Framework (Spring Cloud Function)Remote Code Execution (Spring4Shell)ClassLoader manipulation flaw in Spring Cloud Function serverless deployments allowing remote code execution via HTTP requests.
CVE-2021-44228Log4j2 Java LibraryRemote Code Execution (Log4Shell)Impacted Java-based AWS Lambda and Azure Functions utilizing vulnerable Log4j2 logging frameworks via unvalidated event string logging.
CVE-2019-11358jQuery / Serverless Node.js dependenciesPrototype PollutionPrototype pollution in serverless Node.js handlers resulting in global property injection and execution context hijacking across warm starts.
AWS-2023-001AWS EventBridge / Lambda TriggersEvent InjectionUnsanitized event mapping payload flaws allowing parameter tampering in downstream FaaS execution pipelines.
CVE-2020-11022Unsanitized Lambda LayersSupply Chain HijackingVulnerable third-party dependencies packaged in public AWS Lambda Layers enabling cross-account code execution.

🏛️ Industry Frameworks & Compliance Scopes

1. OWASP Serverless Top 10 Mapping Table

OWASP Risk IDVulnerability TitlePrimary Mitigation Strategy
SAS-01Injection (Event Data Injection)Schema validation (Zod, Pydantic), safe subprocess arrays, parameterized database queries.
SAS-02Broken AuthenticationEnforce API Gateway JWT/Cognito authorizers, mutual TLS (mTLS), and IAM authentication.
SAS-03Insecure Deployment ConfigurationHarden CORS policies, enforce HTTPS transport, block public S3 event triggers.
SAS-04Over-Privileged Execution RolesEnforce per-function IAM execution roles, eliminate wildcard (*) resources, use IAM boundaries.
SAS-05Inadequate Function MonitoringCentralize structured JSON logging, forward logs to CloudWatch/SIEM, audit CloudTrail events.
SAS-06Shared Secrets InsecurityFetch credentials dynamically from AWS Secrets Manager / Parameter Store with in-memory TTL cache.
SAS-07Denial of Wallet (DoW)Configure API Gateway rate limits, set strict function execution timeouts, enforce concurrency caps.
SAS-08Insecure Third-Party DependenciesScan Lambda Layers and npm/pip packages using Snyk, Trivy, and pip-audit in CI/CD pipelines.
SAS-09Improper Exception HandlingSanitize error responses, strip stack traces and AWS internal request IDs from user HTTP outputs.
SAS-10Insecure State & StorageEncrypt /tmp disk storage, purge temporary files in finally handlers, enforce KMS CMK encryption.

2. NIST SP 800-53 Control Mapping

Control IDControl NameServerless Implementation Requirement
AC-2Account ManagementEnforce automated lifecycle management for serverless IAM execution roles.
AC-6Least PrivilegeIsolate execution roles per function; enforce resource-scoped IAM condition keys.
AU-2Event LoggingEnable CloudTrail Data Events for Lambda Invoke and API Gateway execution logs.
SC-7Boundary ProtectionDeploy Lambda functions inside private VPC subnets with NAT Gateway / VPC Endpoints.
SC-28Protection of Information at RestEnforce KMS Customer Managed Keys (CMK) for Secrets Manager, SSM, DynamoDB, and S3.
IA-2Identification and AuthenticationImplement OAuth2/OIDC claims validation at the API Gateway authorizer layer.

3. CIS Amazon Web Services Foundations Benchmark (v2.0.0)

  • Section 3.1: Ensure CloudTrail is enabled in all regions for Lambda data events.
  • Section 4.1.1: Ensure no IAM policies grant wildcard * administrative rights to Lambda functions.
  • Section 5.1: Ensure API Gateway endpoints enforce TLS 1.2+ encryption in transit.

☁️ Official Cloud Provider Documentation

AWS (Amazon Web Services)

Microsoft Azure

Google Cloud Platform (GCP)


🛠️ Security Tooling & Open-Source Repositories

Static Security Analysis (SAST) & IaC Scanners

  • Checkov: Static analysis tool for Infrastructure-as-Code (Terraform, CloudFormation, SAM, Serverless Framework).
    Repo: https://github.com/bridgecrewio/checkov
  • Semgrep: Lightweight static analysis engine with custom serverless rule support.
    Repo: https://github.com/returntocorp/semgrep
  • Tfsec: Terraform static security scanner.
    Repo: https://github.com/aquasecurity/tfsec

IAM Audit & Privilege Analysis

  • Prowler: Open-source AWS, Azure, and GCP security assessment and compliance tool.
    Repo: https://github.com/prowler-cloud/prowler
  • CloudSplaining: AWS IAM policy assessment tool for identifying over-privileged permissions.
    Repo: https://github.com/salesforce/cloudsplaining
  • Policy Sentry: IAM least-privilege policy generator.
    Repo: https://github.com/salesforce/policy_sentry

Serverless Plugins

  • serverless-iam-roles-per-function: Serverless Framework plugin for per-function role creation.
    Repo: https://github.com/functionalone/serverless-iam-roles-per-function
Share this guide