Cis AWS Database 4.1
DevOps & Securitycis-aws-database-4.1Cis AWS Database 4.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 Identity and Access Management (IAM) is in use
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
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-4.1/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-aws-database-4-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.
4.1 Ensure AWS Identity and Access Management (IAM) is in use
Description
AWS Identity and Access Management (IAM) lets you securely control your users' access to AWS services and resources. To manage access control for Amazon DynamoDB, you can create IAM policies that control access to tables and data.
Rationale
IAM policies help you control and maintain access to Amazon DynamoDB as needed.
Impact
N/A
Audit Procedure
Using AWS Console
-
Open IAM Console
- Sign in to the AWS Management Console and open the IAM console at https://console.aws.amazon.com/iam/.
-
Navigate to Policies
- In the IAM console, in the navigation pane, choose
Policies.
- In the IAM console, in the navigation pane, choose
-
Create Policy
- Choose
Create policy. - You will be taken to the
Create policypage.
- Choose
-
Choose Service
- Click on
Choose a service. - Type
DynamoDBin the search box and select it.
- Click on
-
Configure Actions
- Under the
Actionssection, select the actions you want to allow the user to perform. - For instance, you can select
Readto allow read actions like GetItem, Scan, Query, etc.
- Under the
-
Set Resources
- Under the
Resourcessection, you can specify which tables this policy applies to. - You can choose "All resources" or specify the ARN (Amazon Resource Name) of specific tables.
- Under the
-
Review Policy
- Click on
Review policy. - Give your policy a name and description.
- Then click
Create policy. - Now, you have an IAM policy.
- Click on
-
Attach Policy
- Navigate to the
Users,Groups, orRolessection in the IAM console. - Choose an existing user, group, or role, or create a new one.
- Once you've selected a user, group, or role, click
Add permissions. - Choose
Attach existing policies directly. - Search for your created policy, select it, and click
Attach policy. - With these steps, you have attached an IAM policy that controls access to DynamoDB resources.
- Navigate to the
Expected Result
IAM policies are in place that control access to DynamoDB tables and data, following the principle of least privilege.
Remediation
Using AWS Console
Follow the same steps as the audit procedure to create and attach IAM policies for DynamoDB access control.
Default Value
By default, no IAM policies are created for DynamoDB access. Users with AWS account root credentials have full access.
References
CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
|---|---|---|---|---|
| v8 | 3.3 Configure Data Access Control Lists | x | x | x |
| v7 | 14.6 Protect Information through Access Control Lists | x | x | x |
Profile
Level 1 | Manual