OpenParable
Skip to content
← Back to skills

Cis AWS Database 5.2

DevOps & Security
cis-aws-database-5.2

Cis AWS Database 5.2 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 Network Security is Enabled

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_Database_Services_Benchmark_v2.0.0/cis-aws-database-5.2/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-aws-database-5-2, 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.

5.2 Ensure Network Security is Enabled

Description

Implementing network security for Amazon ElastiCache involves configuring your Virtual Private Cloud (VPC), security groups, and network access controls to control access to your ElastiCache clusters.

Rationale

This helps ensure that the data is safe and protected from any threats and or misconfigurations within the network. This helps to keep a potential hacker getting into the system and compromising the data.

Impact

N/A

Audit Procedure

Using AWS Console

  1. Create or Select a VPC

    • Sign in to the AWS Management Console and open the Amazon VPC console at https://console.aws.amazon.com/vpc/.
    • Create a new VPC or select an existing VPC where you want to deploy your ElastiCache cluster.
  2. Create Subnets

    • In the VPC console, navigate to Subnets in the left-side menu.
    • Create or select the desired subnets within your VPC where you want to deploy your ElastiCache cluster.
  3. Configure Security Groups

    • In the VPC console, navigate to Security Groups in the left-side menu.
    • Create a new security group or select an existing one to configure the security settings for your ElastiCache cluster.
    • Define inbound and outbound rules to control the traffic flow to and from your ElastiCache cluster.
      • Allow inbound traffic from trusted sources (e.g., specific IP ranges or security groups) on the necessary ports used by your ElastiCache cluster.
      • Define outbound rules based on your requirements, such as allowing outbound traffic to specific destinations or ports.
    • Associate the security group with the ElastiCache cluster when creating or modifying it.
  4. Set up Network Access Control Lists (ACLs)

    • In the VPC console, navigate to Network ACLs in the left-side menu.
    • Create or select the appropriate network ACL associated with the subnets used by your ElastiCache cluster.
    • Configure inbound and outbound rules in the network ACL to allow or deny traffic to and from your ElastiCache cluster.
      • Define rules based on your security requirements, allowing only necessary protocols, ports, and IP ranges.
    • Associate the network ACL with the subnets used by your ElastiCache cluster.
  5. Configure Route Tables

    • In the VPC console, navigate to Route Tables in the left-side menu.
    • Create or select the route table associated with the subnets used by your ElastiCache cluster.
    • Add or modify routes to ensure traffic to and from your ElastiCache cluster flows correctly.
      • Ensure that the route table has an appropriate route to the internet gateway or virtual private gateway if external connectivity is required.
    • Associate the route table with the subnets used by your ElastiCache cluster.
  6. Verify Connectivity and Test

    • Launch an Amazon EC2 instance within the same VPC and subnet as your ElastiCache cluster or use an existing one.
    • Connect to the EC2 instance using SSH or other remote access methods.
    • Test the connectivity to your ElastiCache cluster by trying to connect to it using the appropriate client or utility.
    • Verify that the network security settings allow the necessary traffic and deny unauthorized access.

Expected Result

ElastiCache clusters are deployed within a VPC with properly configured security groups, network ACLs, and route tables that restrict access to trusted sources only.

Remediation

Using AWS Console

Follow the same steps as the audit procedure to configure network security for ElastiCache clusters.

Default Value

By default, ElastiCache clusters are created within a VPC but security groups, network ACLs, and route tables may need manual configuration for proper security.

References

  1. https://aws.amazon.com/products/databases/

CIS Controls

Controls VersionControlIG 1IG 2IG 3
v812.2 Establish and Maintain a Secure Network Architecturexx
v711.7 Manage Network Infrastructure Through a Dedicated Networkxx

Profile

Level 1 | Manual