Cloud Defense Logo

Products

Solutions

Company

Book A Live Demo

Rule: VPC Security Groups Should Restrict Ingress Access on Common Ports

Ensure VPC security groups restrict access on specified common ports to enhance network security.

RuleVPC security groups should restrict ingress access on ports 20, 21, 22, 3306, 3389, 4333 from 0.0.0.0/0
FrameworkFederal Financial Institutions Examination Council (FFIEC)
Severity
High

Rule Description:

The VPC security groups should restrict ingress access on ports 20, 21, 22, 3306, 3389, and 4333 from the 0.0.0.0/0 IP range for Federal Financial Institutions Examination Council (FFIEC) compliance. This ensures that only authorized entities can access the specified ports within the VPC.

Troubleshooting Steps:

  1. 1.
    Verify the VPC security group settings: Check if the VPC security groups associated with the resources have the necessary rules to restrict access to the specified ports.
  2. 2.
    Check the inbound rules: Ensure that the ingress rules are defined correctly and restrict access to the necessary IP ranges and ports for FFIEC compliance.

Necessary Codes:

There are no specific codes required for this policy. However, you need to modify the inbound rules of the VPC security groups associated with the resources in your VPC.

Step-by-Step Guide for Remediation:

To restrict ingress access on ports 20, 21, 22, 3306, 3389, and 4333 from the 0.0.0.0/0 IP range for FFIEC compliance, follow these steps:

  1. 1.
    Log in to the AWS Management Console.
  2. 2.
    Open the Amazon VPC service.
  3. 3.
    In the navigation pane, click on "Security Groups."
  4. 4.
    Identify the security groups associated with your VPC resources that need to be modified. Note down their names.
  5. 5.
    Click on the security group you want to modify.
  6. 6.
    In the "Inbound Rules" tab, locate the rule for each port (20, 21, 22, 3306, 3389, and 4333) and delete any existing rule that allows ingress access from the 0.0.0.0/0 IP range.
  7. 7.
    Add a new rule for each port by clicking on the "Add Rule" button.
  8. 8.
    Set the following values for each rule:
    • Type: Custom TCP Rule
    • Protocol: TCP
    • Port Range: Specify the desired port (20, 21, 22, 3306, 3389, or 4333)
    • Source: Choose "Custom" and enter the CIDR range allowed for FFIEC compliance (e.g., 192.0.2.0/24).
  9. 9.
    Repeat steps 7-8 for each port that needs to be restricted.
  10. 10.
    Click on the "Save Rules" button to apply the changes to the security group.
  11. 11.
    Repeat steps 5-10 for each security group that requires modification.
  12. 12.
    Verify the rules by checking the inbound rules for the security groups associated with the resources in your VPC.
  13. 13.
    Test the restricted access by attempting to access the specified ports from an IP address not included in the FFIEC-compliant IP range. The access should be denied.

By following these steps, you can ensure that the VPC security groups restrict ingress access on ports 20, 21, 22, 3306, 3389, and 4333 from the 0.0.0.0/0 IP range for FFIEC compliance.

Is your System Free of Underlying Vulnerabilities?
Find Out Now