More Info:

Amazon API Gateway APIs should be accessible only through private API endpoints and must not be visible to the public Internet.

Risk Level

Medium

Address

Security

Compliance Standards

SOC2, NISTCSF, PCIDSS

Triage and Remediation

Remediation

To remediate the misconfiguration “Only Private End-Points Should Access APIs” in AWS, you can follow the steps below:

  1. Login to your AWS Console.

  2. Navigate to the Amazon API Gateway service.

  3. Select the API that you want to remediate.

  4. Click on the “Settings” tab.

  5. Under the “Endpoint Type” section, select the “Private” option.

  6. If you have not already created a VPC endpoint for the API Gateway, create one by clicking on the “Create VPC Link” button.

  7. In the “Create VPC Link” dialog box, select the VPC that you want to use for the endpoint.

  8. Choose the security groups that will be associated with the VPC endpoint.

  9. Click on the “Create” button.

  10. Once the VPC endpoint is created, go back to the API Gateway “Settings” tab.

  11. Under the “Endpoint Configuration” section, select the VPC endpoint that you just created.

  12. Click on the “Save Changes” button.

  13. Test the API to ensure that it is only accessible through the private endpoint.

By following these steps, you have remediated the misconfiguration “Only Private End-Points Should Access APIs” in AWS.

Additional Reading: