OpenParable
Skip to content
← Back to skills

Cis AWS Database 7.12

DevOps & Security
cis-aws-database-7.12

Cis AWS Database 7.12 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 DocumentDB has delete protection 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-7.12/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-12, 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.12 Ensure DocumentDB has delete protection enabled (Manual)

Description

Ensure that delete protection is enabled on database instances to prevent accidental or unauthorized deletion. This setting safeguards critical databases by requiring explicit disabling of delete protection before deletion, reducing the risk of data loss through human error or malicious activity.

Rationale

Delete protection provides a safeguard against inadvertent or malicious deletion of critical databases. By requiring deliberate action to disable deletion protection, organizations mitigate risks associated with accidental data deletion and enhance the overall resilience of their data storage platform.

Impact

Failure to enable delete protection increases the risk of irreversible data loss, potential service disruption, and operational downtime.

Audit Procedure

Using AWS CLI

List deletion protection status for all DocumentDB clusters:

aws docdb describe-db-clusters \
  --query "DBClusters[*].{DBClusterIdentifier:DBClusterIdentifier,DeletionProtection:DeletionProtection}"
  • DeletionProtection: true => Deletion protection is enabled.
  • DeletionProtection: false => Deletion protection is not enabled (non-compliant).

Expected Result

All DocumentDB clusters should have DeletionProtection set to true.

Remediation

Using AWS CLI

Enable deletion protection on a specific cluster:

aws docdb modify-db-cluster \
  --db-cluster-identifier <cluster-identifier> \
  --deletion-protection \
  --apply-immediately
  • Replace with your DocDB cluster ID.
  • This change is applied immediately without downtime.
  • Once enabled, the cluster cannot be deleted without first disabling deletion protection.

Default Value

Deletion protection is disabled by default when creating a new Amazon DocumentDB cluster.

References

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

CIS Controls

Controls VersionControlIG 1IG 2IG 3
v811 Data Recovery

Profile

Level 1 | Manual