Skip to main content

More Info:

EC2 security groups prefixed with launch-wizard should not be in use in order to follow AWS security best practices.

Risk Level

Low

Address

Security

Compliance Standards

  • APRA CPS 234 (Australia)
  • BSI C5 (Germany)
  • Brazil LGPD
  • CCPA / CPRA (California)
  • CIS Critical Security Controls v8
  • CMMC 2.0
  • CSA Cloud Controls Matrix v4
  • Cloudanix Best Practice
  • DPDPA
  • Digital Operational Resilience Act (EU)
  • ISO/IEC 27017
  • ISO/IEC 27018
  • ISO/IEC 27701
  • KSA PDPL
  • MAS Technology Risk Management (Singapore)
  • MITRE ATT&CK (Cloud)
  • NIS2 Directive
  • NIST SP 800-171
  • NYDFS 23 NYCRR 500
  • SWIFT Customer Security Controls Framework
  • Sarbanes-Oxley IT General Controls
  • UK NCSC Cyber Assessment Framework

Triage and Remediation

Remediation

Using Console

Here are the step by step instructions to remediate the “Security Group Name Prefixed With launch-wizard Should Not Be Used” misconfiguration in AWS using the AWS console:
  1. Log in to the AWS Management Console.
  2. Go to the EC2 Dashboard.
  3. Click on the “Security Groups” option in the left-hand menu.
  4. Identify the security group(s) that have a name prefixed with “launch-wizard”.
  5. Select the security group(s) that need to be remediated.
  6. Click on the “Actions” button, and then select “Edit Group Name”.
  7. Rename the security group(s) to a more descriptive and meaningful name that does not include the “launch-wizard” prefix.
  8. Click on the “Save” button to save the changes.
Once you have completed these steps, the security group(s) will no longer have a name prefixed with “launch-wizard”, and the misconfiguration will be remediated.

To remediate the misconfiguration “Security Group Name Prefixed With launch-wizard Should Not Be Used” for AWS using AWS CLI, follow these steps:
  1. Open the AWS CLI on your local machine or on the AWS EC2 instance.
  2. Run the following command to list all the security groups in your account:
  3. Identify the security group that has a name prefixed with “launch-wizard”.
  4. Run the following command to rename the security group:
    Replace <security-group-id> with the ID of the security group that you want to rename, and <new-security-group-name> with a new name for the security group that does not have “launch-wizard” prefix. For example:
  5. Verify that the security group has been renamed successfully by running the following command:
    Replace <security-group-id> with the ID of the security group that you have renamed. The output should show the new name of the security group.
To remediate the security group name prefixed with launch-wizard in AWS using Python, you can follow the below steps:
  1. Import the required modules:
  1. Connect to the AWS account:
  1. Get all the security groups:
  1. Loop through all the security groups and check if the name is prefixed with launch-wizard:
  1. The above code will delete all the security groups that have a name prefixed with launch-wizard. If you want to rename the security group, you can use the below code:
  1. The above code will rename all the security groups that have a name prefixed with launch-wizard to new-name. You can also update the description of the security group as per your requirement.
Note: Before deleting or renaming the security group, make sure that it is not being used by any instances or services.
Applying this change will cause terraform plan to show:
  • A new aws_security_group being created with the non–launch-wizard name.
  • All affected aws_instance (or ENI-attaching resources) updated in-place to use the new security group ID.
  • The old launch-wizard security group being destroyed (if it was previously managed by Terraform and you removed its resource block).

Additional Reading: