CloudWiki
Rules
Medium

Ensure on-premises internal network connected to Direct Connect is not publicly accessible via EC2 instance

Security & Compliance
No items found.
Description

In order to prevent unauthorized access and keep your on-premises network that is connected to direct connect secure, you should ensure your private network is not routed through the public internet. To mitigate these risks, it is recommended to use appropriate security measures such as enabling firewalls and configuring security groups and network ACLs.

Remediation

To ensure that your on-premises internal network connected to Direct Connect is not publicly accessible via an EC2 instance, you can follow these steps:

  1. Configure your Direct Connect connection to use a private virtual interface. This ensures that your traffic stays within your private network and is not routed through the public internet.
  2. Configure your VPC to use a private subnet for your EC2 instance. This means that the EC2 instance is not accessible from the internet and can only communicate with other resources in your VPC.
  3. Configure your security groups and network access control lists (ACLs) to restrict access to your EC2 instance. You can configure your security groups to allow access only from specific IP addresses or ranges, and you can configure your ACLs to restrict traffic to specific protocols and ports.
  4. Disable the public IP address for your EC2 instance, if it is not required. This ensures that the EC2 instance is not publicly accessible from the internet.
  5. Use a VPN connection between your on-premises network and your VPC, rather than routing traffic through the internet. This ensures that your traffic stays within your private network and is not exposed to the public internet.
  6. Regularly review your security measures and update them as necessary to ensure that your on-premises network remains secure and protected.

By following these steps, you can ensure that your on-premises internal network connected to Direct Connect is not publicly accessible via an EC2 instance, and that your network remains secure and protected.

Enforced Resources
Note: Remediation steps provided by Lightlytics are meant to be suggestions and guidelines only. It is crucial to thoroughly verify and test any remediation steps before applying them to production environments. Each organization's infrastructure and security needs may differ, and blindly applying suggested remediation steps without proper testing could potentially cause unforeseen issues or vulnerabilities. Therefore, it is strongly recommended that you validate and customize any remediation steps to meet your organization's specific requirements and ensure that they align with your security policies and best practices.