| name | cis-aws-compute-6.1 |
| description | Ensure you are using VPC Endpoints for source code access |
| category | cis-compute |
| version | 1.1.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","compute","app-runner","vpc-endpoint","encryption","privatelink"] |
| cis_id | 6.1 |
| cis_benchmark | CIS AWS Compute Services Benchmark v1.1.0 |
| tech_stack | ["aws"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
6.1 Ensure you are using VPC Endpoints for source code access (Manual)
Description
App Runner needs access to your application source, so it can't be encrypted. Therefore, be sure to secure the connection between your development or deployment environment and App Runner.
Rationale
Client-side encryption isn't a valid method for protecting the source image or code that you provide to App Runner for deployment. Using a VPC endpoint, you can privately connect your VPC to supported AWS services and VPC endpoint services that are powered by AWS PrivateLink.
Note that this isn't required if you are deploying your app runner directly from an ECR image as ECR images can be independently encrypted.
Impact
N/A
Audit Procedure
Using AWS Console
- Login to the AWS Console using https://console.aws.amazon.com/vpc/
- On the left hand side, click Endpoints.
- On the
Endpoints page.
- Review all the endpoints listed under name.
- Locate the Endpoint assigned and configured for App Runner.
- If there is no Endpoint set for App Runner refer to the remediation below.
- Either click the check box, Actions, View Details or click on the VPC endpoint ID.
- Confirm these settings:
1. Service name - `com.amazonaws."region".apprunner`
**Note - "Region" will reflect the region that you are operating in.
2. Status - Available
3. VPC ID - correctly associated for use with the service
4. Subnets tab - correctly associated for use with the service
5. Security Groups tab - correctly associated for use with the service
6. Policy tab - correctly configured for use with the service
- If the settings listed above are not correct refer to the remediation below.
Using AWS CLI
N/A - This control is manual and console-based.
Expected Result
A VPC endpoint for App Runner exists with service name com.amazonaws."region".apprunner, status is Available, and VPC ID, Subnets, Security Groups, and Policy are correctly configured.
Remediation
Using AWS Console
To create an interface endpoint for an App Runner:
- Login to the AWS Console using https://console.aws.amazon.com/vpc/
- On the left hand side, click Endpoints.
- Click
Create endpoint.
- Under Service category, choose AWS services.
- For Service name, select
com.amazonaws."region".apprunner. "Region" will reflect the region that your are operating in.