AWS-Redshift-Redshift-Cluster-Default-Master-Username
Severity: Medium
Description: The control checks for common usernames for Redshift Clusters as specified in the specification and ensure a cluster is not using them. The use of default usernames and passwords are common weak points in any system. The master user of the Redshift is granted with certain privileges when creating the Cluster, and it is not recommended to use the master user for any purpose. A unique username should be specified for the master user, protected with a strong password to minimize the chances of security breaches.
Remediation Steps:
Perform following to change the master username for Redshift :
Step 1: Backup Redshift configuration using AWS cli
opy output of the command :Â
aws redshift describe-clusters --cluster-identifier [your-cluster-name] --region [region-name]
Use Unload Copy Utility from awslabs or any other tool of your choice to backup data from old Redshift to S3 bucket, also to load data from s3 bucket to new Redshift Cluster.
Step 2 : Create a new Redshift cluster with a similar configuration
Login to the AWS Management Console at https://console.aws.amazon.com.
Navigate to Redshift console.
In the navigation pane, choose CLUSTERS, then choose Create cluster. The Create cluster page appears.
Choose node type . For Nodes, choose .
In the Cluster details section, specify values for Cluster identifier, Database port, and Master user password.Â
Enter a unique Master user name
Choose Create cluster.
Use the Same Unload Copy Utility to load data from s3 to your Redshift cluster.
Important:
Avoid common master usernames like admin, awsuser, administrator, root, adminuser, master.
AWS doesn't allow to modify master user once a cluster is created.
Reference:
AWS best practices
Blue Hexagon Proprietary