2.1 Ensure the Use of Security Groups (Manual)
Description
Security groups act as a firewall for associated Amazon RDS DB instances, controlling both inbound and outbound traffic.
Rationale
Creating your severity group either inbound or outbound rules. Inbound rules allow an individual to create a rule that permits the traffic to go to a specific port depending on which source it's coming from. Outbound rules enable your instances to connect with one another allow them to connect to the internet. If needed, you can limit the outgoing traffic.
Impact
Without properly configured security groups, the Aurora database instance may be accessible from unintended sources or may not be able to communicate with required services.
Audit Procedure
Using AWS Console
- Open the Amazon Console
- Go to Aurora and RDS (https://console.aws.amazon.com/rds/)
- Click on Databases
- For each database instance click the name of the instance and check that there is at least one VPC security group under Connectivity & security -> Security -> VPC security groups
Expected Result
Each Aurora DB instance should have at least one VPC security group associated with it, with appropriate inbound and outbound rules configured.
Remediation
Using AWS Console
Here is a step-by-step guide on how to create and use Security Groups for an Amazon Aurora instance:
Sign in to AWS Management Console
Navigate to Amazon EC2 Dashboard
- Once you have logged in to the AWS Management Console, navigate to the EC2 service. You can find this under the
Compute category.
Create a New Security Group
- In the EC2 Dashboard, find the
Network & Security section on the left-side navigation pane, then click Security Groups.
- Click on the
Create Security Group button.
Configure the New Security Group
- In the
Create Security Group panel, give your new security group a name and a description.
- Select the VPC in which your Amazon Aurora instance will be deployed.
- Then click
Create.
Add Rules to the Security Group
- After creating the Security Group, you can add inbound and outbound rules.
- For Inbound Rules:
- Click on the
Inbound rules tab, then click Edit inbound rules.
- Click
Add Rule. For the type, select MYSQL/Aurora. For the source, you can specify the IP addresses allowed to access your Amazon Aurora instance.
- For Outbound Rules:
- Click on the
Outbound rules tab, then click Edit outbound rules. Outbound rules allow your instances to communicate with other instances or access the internet. You can restrict outbound traffic if necessary. In most cases, you can leave the default setting, which allows all outbound traffic.
Assign the Security Group to Amazon Aurora
- When launching a new Amazon Aurora instance (in the Amazon RDS dashboard), you can select your new security group in the
Configure advanced settings step.
- If your Aurora instance has already been launched, you can modify it to use the new security group by selecting the instance.
- Click
Modify, and then select the new security group.
Default Value
When an Aurora DB instance is created, it is associated with the default VPC security group unless a custom security group is specified.
References
- https://aws.amazon.com/products/databases/
CIS Controls
| Controls Version |
Control |
IG 1 |
IG 2 |
IG 3 |
| v8 |
3.3 Configure Data Access Control Lists - Configure data access control lists based on a user's need to know. Apply data access control lists, also known as access permissions, to local and remote file systems, databases, and applications. |
x |
x |
x |
| v7 |
14.6 Protect Information through Access Control Lists - Protect all information stored on systems with file system, network share, claims, application, or database specific access control lists. These controls will enforce the principle that only authorized individuals should have access to the information based on their need to access the information as a part of their responsibilities. |
x |
x |
x |
Profile
Level 1 | Manual
1---2name: cis-aws-database-2-13description: Ensure the Use of Security Groups4---56# 2.1 Ensure the Use of Security Groups (Manual)78## Description910Security groups act as a firewall for associated Amazon RDS DB instances, controlling both inbound and outbound traffic.1112## Rationale1314Creating your severity group either inbound or outbound rules. Inbound rules allow an individual to create a rule that permits the traffic to go to a specific port depending on which source it's coming from. Outbound rules enable your instances to connect with one another allow them to connect to the internet. If needed, you can limit the outgoing traffic.1516## Impact1718Without properly configured security groups, the Aurora database instance may be accessible from unintended sources or may not be able to communicate with required services.1920## Audit Procedure2122### Using AWS Console23241. Open the Amazon Console252. Go to Aurora and RDS (https://console.aws.amazon.com/rds/)263. Click on Databases274. For each database instance click the name of the instance and check that there is at least one VPC security group under Connectivity & security -> Security -> VPC security groups2829## Expected Result3031Each Aurora DB instance should have at least one VPC security group associated with it, with appropriate inbound and outbound rules configured.3233## Remediation3435### Using AWS Console3637Here is a step-by-step guide on how to create and use Security Groups for an Amazon Aurora instance:38391. **Sign in to AWS Management Console**40 - If you do not already have an AWS account, you'll need to create one at https://aws.amazon.com.41422. **Navigate to Amazon EC2 Dashboard**43 - Once you have logged in to the AWS Management Console, navigate to the EC2 service. You can find this under the `Compute` category.44453. **Create a New Security Group**46 - In the EC2 Dashboard, find the `Network & Security` section on the left-side navigation pane, then click `Security Groups`.47 - Click on the `Create Security Group` button.48494. **Configure the New Security Group**50 - In the `Create Security Group` panel, give your new security group a name and a description.51 - Select the VPC in which your Amazon Aurora instance will be deployed.52 - Then click `Create`.53545. **Add Rules to the Security Group**55 - After creating the Security Group, you can add inbound and outbound rules.56 - For Inbound Rules:57 - Click on the `Inbound rules` tab, then click `Edit inbound rules`.58 - Click `Add Rule`. For the type, select MYSQL/Aurora. For the source, you can specify the IP addresses allowed to access your Amazon Aurora instance.59 - For Outbound Rules:60 - Click on the `Outbound rules` tab, then click `Edit outbound rules`. Outbound rules allow your instances to communicate with other instances or access the internet. You can restrict outbound traffic if necessary. In most cases, you can leave the default setting, which allows all outbound traffic.61626. **Assign the Security Group to Amazon Aurora**63 - When launching a new Amazon Aurora instance (in the Amazon RDS dashboard), you can select your new security group in the `Configure advanced settings` step.64 - If your Aurora instance has already been launched, you can modify it to use the new security group by selecting the instance.65 - Click `Modify`, and then select the new security group.6667## Default Value6869When an Aurora DB instance is created, it is associated with the default VPC security group unless a custom security group is specified.7071## References72731. https://aws.amazon.com/products/databases/7475## CIS Controls7677| Controls Version | Control | IG 1 | IG 2 | IG 3 |78| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---- | ---- | ---- |79| v8 | 3.3 Configure Data Access Control Lists - Configure data access control lists based on a user's need to know. Apply data access control lists, also known as access permissions, to local and remote file systems, databases, and applications. | x | x | x |80| v7 | 14.6 Protect Information through Access Control Lists - Protect all information stored on systems with file system, network share, claims, application, or database specific access control lists. These controls will enforce the principle that only authorized individuals should have access to the information based on their need to access the information as a part of their responsibilities. | x | x | x |8182## Profile8384Level 1 | Manual