Control: 4.12 Ensure encryption in transit is enabled for Lambda environment variables
Description
As you can set your own environmental variables for Lambda it is important to also encrypt them for in transit protection.
Lambda environment variables should be encrypted in transit for client-side protection as they can store sensitive information.
Remediation
From the Console:
- Login to the AWS Console using https://console.aws.amazon.com/lambda/.
- In the left column, under
AWS Lambda
, clickFunctions
. - Under
Function name
click on the name of the function that you want to review. - Click the Configuration tab.
- In the left column, click
Environment variables
. - In the
Environment variables
section, clickEdit
. - Click the check box for
Enable helpers for encryption in transit
. - Click the
Encrypt
option for all the variable that need to be encrypted. - Repeat steps 2 – 8 for each Lambda function identified in the Audit within the current AWS region.
- Repeat this remediation for all the other AWS regions.
Usage
Run the control in your terminal:
powerpipe control run aws_compliance.control.cis_compute_service_v100_4_12
Snapshot and share results via Turbot Pipes:
powerpipe loginpowerpipe control run aws_compliance.control.cis_compute_service_v100_4_12 --share
SQL
This control uses a named query:
lambda_function_encryption_enabled