OpenParable
Skip to content
← Back to skills

Cis AWS Compute 12.1

DevOps & Security
cis-aws-compute-12.1

Cis AWS Compute 12.1 is an Agent Skill for devops & security published in the CyberStrikeus/CyberStrike repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.

Ensure AWS Config is Enabled for Lambda and Serverless

View on GitHub ↗
QUICK START

How to use this skill

Bring this guide into your coding agent with a prompt tailored to the tool you use.

  1. Open your project in Codex.
  2. Copy and paste the prompt below.
  3. Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/CyberStrikeus/CyberStrike/blob/HEAD/.cyberstrike/skill/CIS_benchmarks/Cloud_Providers/AWS/CIS_AWS_Compute_Services_Benchmark_v1.1.0/cis-aws-compute-12.1/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-aws-compute-12-1, but wait for my approval before writing files or running scripts.

Copying this prompt does not install or run the skill. Review third-party files before use.

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

  1. Login to AWS Console using https://console.aws.amazon.com
  2. Click All services, click Config under Management & Governance.
  3. This will open up the Config dashboard.
  4. Click Conformance packs
  5. Review the list of conformance packs.
  6. If serverless is listed or included in the conformance pack you built you meet this recommendation.
  7. If serverless is not listed refer to the remediation below.
  8. If none, see remediation section below.
  9. 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

  1. Login to AWS Console using https://console.aws.amazon.com
  2. Click All services, click Config under Management & Governance.
  3. This will open up the Config dashboard.
  4. Click Conformance packs
  5. Click on Deploy conformance pack
  6. Click on Use sample template
  7. Click the down arrow under Sample template
  8. Scroll down and click on Operational Best Practices for Serverless
  9. Click Next
  10. Give it a Conformance pack name Serverless.
  11. Click Next
  12. Click Deploy conformance pack
  13. Click on Deploy conformance pack
  14. Click on Use sample template
  15. Click the down arrow under Sample template
  16. Scroll down and click on Security Best Practices for Lambda
  17. Click Next
  18. Give it a Conformance pack name LambaSecurity.
  19. Click Next
  20. Click Deploy conformance pack
  21. 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

  1. https://docs.aws.amazon.com/lambda/latest/dg/welcome.html

CIS Controls

Controls VersionControlIG 1IG 2IG 3
v88.2 Collect Audit Logs - Collect audit logs. Ensure that logging, per the enterprise's audit log management process, has been enabled across enterprise assets.xxx
v76.2 Activate audit logging - Ensure that local logging has been enabled on all systems and networking devices.xxx

Profile

Level 2 | Manual