turbot/tailpipe-mod-aws-cloudtrail-log-detections

Detection: RDS DB Instance Master Password Updated

Overview

Detect when the master password for an Amazon RDS database instance was updated. Unauthorized or unmonitored password changes can disrupt operations, compromise database access, or indicate malicious intent. Monitoring password updates ensures the confidentiality, availability, and integrity of the database.

References:

Usage

Run the detection in your terminal:

powerpipe detection run aws_cloudtrail_log_detections.detection.rds_db_instance_master_password_updated

Snapshot and share results via Turbot Pipes:

powerpipe login
powerpipe detection run aws_cloudtrail_log_detections.detection.rds_db_instance_master_password_updated --share

SQL

This detection uses a named query:

select
tp_timestamp as timestamp,
string_split(event_source, '.')[1] || ':' || event_name as operation,
request_parameters ->> 'dBInstanceIdentifier' as resource,
user_identity.arn as actor,
tp_source_ip as source_ip,
tp_index as account_id,
aws_region as region,
tp_id as source_id,
*
from
aws_cloudtrail_log
where
event_source = 'rds.amazonaws.com'
and event_name = 'ModifyDBInstance'
and (request_parameters -> 'masterUserPassword') is not null
and error_code is null
order by
event_time desc;

Tags