Documentation
README
Ensure AWS Config is Enabled for Lambda and Serverless
Description
With AWS Config, you can track configuration changes to the Lambda functions (including deleted functions), runtime environments, tags, handler name, code size, memory allocation, timeout settings, and concurrency settings, along with Lambda IAM execution role, subnet, and security group associations.
Rationale
This gives you a holistic view of the Lambda function's lifecycle and enables you to surface that data for potential audit and compliance requirements.
Impact
Enabling AWS Config for Lambda may incur additional AWS Config costs depending on the number of configuration items recorded and the number of active rules.
Audit Procedure
Using AWS Console
- Login to AWS Console using https://console.aws.amazon.com
- Click
All services, clickConfigunder Management & Governance. - This will open up the Config dashboard.
- Click
Conformance packs - Review the list of conformance packs.
- If
serverlessis listed or included in the conformance pack you built you meet this recommendation. - If
serverlessis not listed refer to the remediation below. - If none, see remediation section below.
- Repeat steps 3-7 for all regions used.
Using AWS CLI
N/A - This control is Console-based audit only.
Expected Result
AWS Config conformance packs include serverless and Lambda security conformance packs for all regions in use.
Remediation
Using AWS Console
- Login to AWS Console using https://console.aws.amazon.com
- Click
All services, clickConfigunder Management & Governance. - This will open up the Config dashboard.
- Click
Conformance packs - Click on
Deploy conformance pack - Click on
Use sample template - Click the down arrow under Sample template
- Scroll down and click on Operational Best Practices for Serverless
- Click Next
- Give it a Conformance pack name
Serverless. - Click Next
- Click
Deploy conformance pack - Click on
Deploy conformance pack - Click on
Use sample template - Click the down arrow under Sample template
- Scroll down and click on Security Best Practices for Lambda
- Click Next
- Give it a Conformance pack name
LambaSecurity. - Click Next
- Click
Deploy conformance pack - Repeat steps 2-20 for all regions used.
Using AWS CLI
N/A - This control is Console-based remediation only.
Default Value
AWS Config is not enabled by default for Lambda and Serverless.
References
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 8.2 Collect Audit Logs - Collect audit logs. Ensure that logging, per the enterprise's audit log management process, has been enabled across enterprise assets. | x | x | x |
| v7 | 6.2 Activate audit logging - Ensure that local logging has been enabled on all systems and networking devices. | x | x | x |
Profile
Level 2 | Manual