WKL-04.3: Serverless functions should not have excessive privileges, especially administrative privileges. This is an extension of the IAM excessive privilege control objective as applied specifically to FaaS workloads. Serverless functions should always have resource constraints applied and should never have known privilege escalation entitlements.
  • Control automation: Automated
  • AWS control specification: IAM policies' attached Lambda functions do not have excessive privileges. Look for "*" on the Resource in a policy statement without a conditional. Efforts can focus on IAM actions in this list: https://github.com/primeharbor/sensitive_iam_actions/blob/main/actions.yaml
  • Azure control specification: none
  • GCP control specification: none
  • Third-party (CSPM/CNAPP) control specification: none

Description

  • Control automation: Automated
  • AWS control specification: IAM policies' attached Lambda functions do not have excessive privileges. Look for "*" on the Resource in a policy statement without a conditional. Efforts can focus on IAM actions in this list: https://github.com/primeharbor/sensitive_iam_actions/blob/main/actions.yaml
  • Azure control specification: none
  • GCP control specification: none
  • Third-party (CSPM/CNAPP) control specification: none