OpenParable
Skip to content
← Back to skills

Cis AWS Database 3.9

DevOps & Security
cis-aws-database-3.9

Cis AWS Database 3.9 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 Monitoring and Logging 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-3.9/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/cis-aws-database-3-9, 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.

3.9 Ensure Monitoring and Logging is Enabled (Manual)

Description

This control ensures that monitoring and logging are enabled for Amazon RDS instances to detect, investigate, and respond to security events and operational issues.

Rationale

Monitoring and logging provide visibility into database activity, enabling detection of unauthorized access, performance issues, and security incidents.

Impact

If the individual is not monitoring and logging their activity it allows the attacker to attack the system and extract or destroy data.

Audit Procedure

Using AWS Console

  1. Sign into the AWS Management Console

  2. Open the Amazon RDS Console

  3. Select the RDS Instance

    • Choose the Amazon RDS instance you want to enable monitoring and logging.
    • Click on the instance name to access its details page.
    • In the instance details page, navigate to the Configuration or Monitoring & Logs section.
  4. Enable Enhanced Monitoring

    • Under the Monitoring section.
    • Click on the Modify button or Edit option to enable enhanced monitoring.
    • Choose the desired monitoring granularity (1-minute or 5-minute intervals) and the retention period for the monitoring data.
    • Click Continue or Save to apply the changes.
  5. Enable Enhanced Logging

    • Under the Logs or Monitoring & Logs section.
    • Click on the Modify button or Edit option to enable enhanced logging.
    • Choose the desired log types to enable, such as general, error, slow query, or audit logs.
    • Configure the log file retention period based on your needs.
    • Select the destination for the logs, such as Amazon CloudWatch Logs or an Amazon S3 bucket.
    • Configure the log format and other settings if applicable.
    • Click Continue or Save to apply the changes.
  6. Configure CloudWatch Alarms (Optional)

    • Click Alarms in the Amazon RDS console menu.
    • Click Create alarm to create a CloudWatch alarm to monitor specific metrics or log events.
    • Configure the alarm threshold, actions to take when the threshold is breached, and notification settings.
    • Click Create to create the CloudWatch alarm.
  7. Monitor and Analyze the Metrics and Logs

    • Monitor the metrics and logs in the Amazon RDS console or by accessing CloudWatch or the configured log destination.
    • Use the metrics and logs to gain insights into your RDS instance's performance, behavior, and issues.
    • Analyze the metrics and logs to identify areas for optimization, troubleshoot problems, or detect anomalies.
  8. Set Up Automated Actions (Optional)

    • In the Amazon RDS console, click on Event subscriptions in the left-side menu.
    • Click Create event subscription to set up automated actions based on specific events or log entries.
    • Configure the event pattern, target actions, and notification settings.
    • Click Create to create the event subscription.
  9. Monitor and Respond to Alerts

    • Monitor the CloudWatch alarms and event notifications for any alerts or triggers based on the configured thresholds.
    • Respond to alerts promptly by investigating and resolving the underlying issues or taking appropriate actions.

Expected Result

Enhanced Monitoring should be enabled, and appropriate log types (general, error, slow query, audit) should be configured and published to CloudWatch Logs or S3.

Remediation

Using AWS Console

Follow the audit steps above to enable Enhanced Monitoring and configure logging. Set up CloudWatch alarms for critical metrics and event subscriptions for automated alerting.

Default Value

Enhanced Monitoring is disabled by default. Basic monitoring with 1-minute CloudWatch metrics is available by default. Database engine logs must be explicitly enabled and published.

References

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

CIS Controls

Controls VersionControlIG 1IG 2IG 3
v88 Audit Log Management
v76 Maintenance, Monitoring and Analysis of Audit Logs

Profile

Level 1 | Manual