More Info:
Your Amazon Network Load Balancers (NLBs) should be using the latest recommended predefined security policy for TLS negotiation configuration in order to protect their front-end connections against TLS vulnerabilities and meet security requirementsRisk Level
MediumAddress
SecurityCompliance Standards
HITRUST, AWSWAF, HIPAA, GDPR, NISTTriage and Remediation
Remediation
Using Console
Using Console
Sure, I can help you with that. Here are the step-by-step instructions to remediate the NLB SSL/TLS configuration issue in AWS:
- Log in to your AWS Management Console.
- Navigate to the EC2 dashboard.
- Click on the “Load Balancers” option from the left-hand side menu.
- Select the NLB that needs to be remediated.
- Click on the “Listeners” tab.
- Click on the “Edit” button next to the listener that uses SSL/TLS.
- Select the appropriate SSL/TLS policy from the “Security policy” drop-down menu.
- Click on the “Save” button to apply the changes.
Using CLI
Using CLI
To remediate NLBs having the latest SSL/TLS configurations in AWS using AWS CLI, follow these steps:Replace This command will return a list of SSL/TLS policies that are supported by AWS. Identify the latest policy that is suitable for your NLB.Replace
- Check the current SSL/TLS configuration of the NLB by running the following command:
<NLB-ARN>
with the ARN of the NLB that you want to check.- Identify the latest SSL/TLS version that is supported by AWS by running the following command:
- Update the NLB with the latest SSL/TLS policy by running the following command:
<NLB-ARN>
with the ARN of the NLB that you want to update, and <Security-Policy-ID>
with the ID of the latest SSL/TLS policy that you identified in step 2.- Verify that the NLB now has the latest SSL/TLS policy by running the command in step 1 again.
- Repeat the above steps for all NLBs in your AWS environment that need to be updated with the latest SSL/TLS configurations.
Using Python
Using Python
To remediate the misconfiguration “NLBs Should Have Latest SSL/TLS Configurations” for AWS using Python, you can follow these steps:This code will iterate through all the NLBs in your AWS account, check if they have an HTTPS listener, and if so, check if it has the latest SSL/TLS configuration. If it doesn’t, it will modify the listener to use the latest configuration.Note: You will need to have appropriate permissions to modify the NLBs and listeners in your AWS account.
- Install the AWS SDK for Python (Boto3) using pip:
- Create a Boto3 client for the AWS Network Load Balancer (NLB) service:
- Get a list of all the NLBs in your AWS account:
- For each NLB, check if it has the latest SSL/TLS configuration: