Ensure primary interface ports for Workspaces are not open to all inbound traffic (Automated)
Description
Ensure that the inbound traffic of the primary network interface for all WorkSpaces is not open to all connections 0.0.0.0/0.
Rationale
Attached security groups to the primary elastic network interface (ENI) to manage ports and network communication should not be open to all communication. They should be restricted to what is required by WorkSpaces, the Organization and other services.
Impact
None
Audit Procedure
Using AWS Console
Perform the steps below to confirm security groups are configured correctly.
- Login to the VPC console at https://console.aws.amazon.com/vpc/
- In the left pane, click Your VPCs
- Note the VPC Id for WorkSpaces
- In the left pane, click Security Groups
- In the Filter security groups enter the name of the WorkSpaces VPC
- Select the WorkSpaces Security Group
- Click on Inbound rules
- Confirm that there is no rule for All traffic, All, All, 0.0.0.0/0, -
If there is a rule for Inbound traffic that is open to all traffic and all ip addresses refer to the remediation below.
Expected Result
No security group rules allow unrestricted inbound access (0.0.0.0/0) to all ports.
Remediation
Using AWS Console
Perform the steps below to remove Inbound rule that allows all traffic from all IP addresses.
- Login to the VPC console at https://console.aws.amazon.com/vpc/
- In the left pane, click Your VPCs
- Note the VPC Id for WorkSpaces
- In the left pane, click Security Groups
- In the Filter security groups enter the name of the WorkSpaces VPC
- Select the WorkSpaces Security Group
- Click on Inbound rules
- Click on Edit inbound rules
- Click on Delete for the rule that shows
- All traffic, All, All, 0.0.0.0/0, -
- Click on Save rules
Note: Make sure you have all the required ports add to Inbound rules as listed in the WorkSpaces documentation outlined in the references so that connectivity to WorkSpaces is not impacted.
Default Value
By default, the following open inbound ports are open:
- Inbound TCP on port 4172. This is used for establishment of the streaming connection on the PCoIP protocol.
- Inbound UDP on port 4172. This is used for streaming user input on the PCoIP protocol.
- Inbound TCP on port 4489. This is used for access using the web client.
- Inbound TCP on port 8200. This is used for management and configuration of the WorkSpace.
- Inbound TCP on ports 8201-8250. These ports are used for establishment of the streaming connection and for streaming user input on the DCV protocol.
References
- https://docs.aws.amazon.com/workspaces/latest/adminguide/workspaces-port-requirements.html#gateway_IP
- https://aws.amazon.com/workspaces/resources/?workspaces-whats-new.sort-by=item.additionalFields.postDateTime&workspaces-whats-new.sort-order=desc
- https://d1.awsstatic.com/whitepapers/workspaces/Best_Practices_for_Deploying_Amazon_WorkSpaces.pdf
- https://docs.aws.amazon.com/workspaces/latest/adminguide/workspaces-port-requirements.html
CIS Controls
Controls Version v8:
- 3.3 Configure Data Access Control Lists
Controls Version v7:
- 4.4 Implement and Manage a Firewall on Servers
- 4.5 Implement and Manage a Firewall on End-User Devices
- 12.4 Deny Communication over Unauthorized Ports
- 14.6 Protect Information through Access Control Lists
Profile
Level 1