| name | cis-aws-euc-2.17 |
| description | Ensure WorkSpaces API requests flow through a VPC Endpoint |
| category | cis-end-user-compute |
| version | 1.2.0 |
| author | cyberstrike-official |
| tags | ["cis","aws","end-user-compute","workspaces","vpc-endpoint","network-security"] |
| cis_id | 2.17 |
| cis_benchmark | CIS AWS End User Compute Services Benchmark v1.2.0 |
| tech_stack | ["aws"] |
| cwe_ids | [] |
| chains_with | [] |
| prerequisites | [] |
| severity_boost | {} |
Ensure WorkSpaces API requests flow through a VPC Endpoint (Automated)
Description
For any WorkSpaces API requests setup the connection through an interface endpoint in your VPC.
Rationale
Utilizing a VPC interface endpoint for WorkSpaces API requests keeps the communication within the AWS network.
Impact
This feature can only be used for connecting to WorkSpaces API endpoints.
Audit Procedure
Using AWS CLI
Perform the steps to determine if WorkSpaces is using a VPC endpoint for API:
- Run the WorkSpaces
describe-workspace-budles command:
aws workspaces describe-workspace-bundles --endpoint-url
VPC_Endpoint_ID.workspaces.Region.vpce.amazonaws.com
- Example output of that command:
--endpoint-name Endpoint_Name
--body "Endpoint_Body"
--content-type "Content_Type"
Output_File
Confirm the --endpoint-name is equal to the VPC Endpoint that you have created. If the endpoint name does not match what you created or is blank, refer to the remediation below.
Expected Result
WorkSpaces API requests are routed through the configured VPC endpoint.
Remediation
Using AWS Console
Perform the steps below if you need to create a VPC interface endpoint.
- Log in to the VPC console at https://console.aws.amazon.com/vpc/
- In the left pane, click Endpoints
- Click Create Endpoint.
- For Service category, ensure that AWS services is selected.
- For Service Name, choose Workspaces. For Type, ensure that it indicates Interface.
- Complete the following information:
- For VEC, select a VPC in which to create the endpoint.
- For Subnets, select the subnets (Availability Zones) in which to create the endpoint network interfaces. Not all Availability Zones may be supported for all AWS services.
- To enable private DNS for the interface endpoint, for Enable Private DNS Name, select the check box.
- For Security group, select the security groups to associate with the endpoint network interfaces.
- Click Create endpoint
Using AWS CLI
- Run the create-vpc-endpoint command:
aws ec2 create-vpc-endpoint --vpc-id vpc-ec43eb89 --vpc-endpoint-type
interface --service-name com.amazonaws.us-east-1.elasticloadbalancing --
subnet-id subnet-abababab --security-group-id sg-1a2b3c4d