OpenParable
Skip to content
← Back to skills

Cis AWS Database 7.5

DevOps & Security
cis-aws-database-7.5

Cis AWS Database 7.5 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 to Implement Access Control and Authentication

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

7.5 Ensure to Implement Access Control and Authentication (Manual)

Description

Configure authentication mechanisms for your DocumentDB instances, such as using AWS Identity and Access Management (IAM) users or database users. Define appropriate user roles and permissions to control access to the DocumentDB instances and databases.

Rationale

Proper authentication and access control mechanisms are essential to ensure that only authorized users and applications can access the DocumentDB cluster and its data.

Impact

Implementing access control ensures that the principle of least privilege is followed, reducing the risk of unauthorized data access or modifications.

Audit Procedure

Using AWS Console

  1. Sign into the AWS Management Console

  2. Open the Amazon DocumentDB Console

  3. Select the DocumentDB Cluster

    • Choose the Amazon DocumentDB cluster for which you want to implement access control and authentication.
    • Click on the cluster name to access its details page.
    • In the cluster details page, navigate to the "Configuration" section.
  4. Enable Authentication

    • Under the Network & Security section.
    • Click on the Edit button or Modify option to configure the authentication settings.
    • Enable the option for authentication by choosing the appropriate setting.
    • DocumentDB supports authentication through username and password or through AWS Identity and Access Management (IAM) roles.
  5. Configure Database Users

    • In the cluster details page, navigate to the Users or Database users section.
    • Click the Add user button to create a new database user.
    • Enter the username and password for the database user.
    • Assign appropriate permissions to the user, such as read-only or read-write access to specific databases or collections.
  6. Save the Configuration

    • Click on Save button to apply the authentication and access control configuration.
    • DocumentDB will enforce authentication for connections to the cluster.
  7. Test Authentication

    • Validate that your client applications or tools can connect to the DocumentDB cluster using the configured authentication credentials.
    • Ensure that the authentication process is successfully completed.
  8. Monitor and Manage Access Control

    • Regularly monitor and manage the access control configuration for your DocumentDB cluster.
    • Review and update the permissions assigned to database users as needed.
    • Remove any unnecessary or unused database users to minimize security risks.
  9. Consider IAM Authentication (Optional)

    • If desired, you can also configure IAM authentication for your DocumentDB cluster.
    • Follow the AWS documentation to set up IAM authentication for DocumentDB, if applicable.

Expected Result

Authentication is enforced for all DocumentDB clusters with properly configured database users and appropriate role-based permissions.

Remediation

Using AWS Console

Follow the audit procedure steps to enable authentication, create database users with appropriate permissions, and optionally configure IAM authentication for each DocumentDB cluster.

Default Value

Amazon DocumentDB requires authentication by default. A master username and password are required when creating a cluster.

References

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

CIS Controls

Controls VersionControlIG 1IG 2IG 3
v83.3 Configure Data Access Control ListsXXX
v714.6 Protect Information through Access Control ListsXXX

Profile

Level 1 | Manual