Ensure RDP is restricted to only IP address that should have this access
Scanned 9/3/2026
Install to Claude Code
npx -y skills add CyberStrikeus/CyberStrike --skill cis-aws-compute-5.5 --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Cis Aws Compute 5.5?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-aws-compute-5-5)More formats (shields.io, HTML) on the badges page.
---
name: cis-aws-compute-5.5
description: "Ensure RDP is restricted to only IP address that should have this access"
category: cis-compute
version: "1.1.0"
author: cyberstrike-official
tags: [cis, aws, compute, lightsail, rdp, ip-restriction, access-control, windows, firewall]
cis_id: "5.5"
cis_benchmark: "CIS AWS Compute Services Benchmark v1.1.0"
tech_stack: [aws]
cwe_ids: []
chains_with: [cis-aws-compute-5.3, cis-aws-compute-5.4, cis-aws-compute-5.6]
prerequisites: []
severity_boost: {}
---
# 5.5 Ensure RDP is restricted to only IP address that should have this access (Manual)
## Description
Any ports enable within Lightsail by default are open and exposed to the world. For SSH and RDP access you should identify which IP address need access.
## Rationale
Any ports enable within Lightsail by default are open and exposed to the world. This can result in outside traffic trying to access or even deny access to the Lightsail instances. Removing and adding approved IP address required for access.
## Impact
N/A
## Audit Procedure
### Using AWS Console
1. Login to AWS Console using https://console.aws.amazon.com
2. Click `All services`, click `Lightsail` under Compute.
3. This will open up the Lightsail console.
4. Select the `Windows Instance` you want to review.
5. Go to the Networking section.
6. Confirm that the RDP Port is restricted to an IP address
| Application | Protocol | Port or range / Code | Restricted to |
| ----------- | -------- | -------------------- | ------------- |
| RDP | TCP | 3389 | 101.221.11.11 |
7. If RDP is needed and it is open to `Any IPv4 address` refer to the remediation below.
### Using AWS CLI
1. Run `aws lightsail get-instances`
```bash
aws lightsail get-instances --query "instances[*].name"
```
This command will provide a list of Instance names.
2. Run `aws lightsail get-instance-port-states` for any Windows instances listed
```bash
aws lightsail get-instance-port-states --instance-name <instance_name>
```
This command will provide a list of available Ports for the Instance name.
```json
{
"fromPort": 3389,
"toPort": 3389,
"protocol": "tcp",
"state": "open",
"cidrs": [
"0.0.0.0/0"
],
"cidrListAliases": []
},
```
3. Review the Port 22 settings and confirm that the only IP Addresses that should have access to the instance are listed in the cidrs as shown above.
4. If it is open to all ports (0.0.0.0/0) of there is an IP address listed that shouldn't have access refer to the remediation below.
## Expected Result
RDP (Port 3389) should be restricted to specific IP addresses that require access. The CIDR should not contain `0.0.0.0/0` (open to all).
## Remediation
### Using AWS Console
1. Login to AWS Console using https://console.aws.amazon.com
2. Click `All services`, click `Lightsail` under Compute.
3. This will open up the Lightsail console.
4. Select the `Windows Instance` you want to review.
5. Go to the Networking section.
6. Under IPv4 networking find the SSH rule as shown below.
| Application | Protocol | Port or range / Code | Restricted to |
| ----------- | -------- | -------------------- | ---------------- |
| RDP | TCP | 3389 | Any IPv4 address |
7. Click on the edit icon
8. Click on the check box next to Restrict to IP address
9. Under `Source IP address (192.0.2.0) or range (192.0.2.0-192.0.2.255 or 192.0.2.0/24)` type the IP address' you want.
### Using AWS CLI
1. Run `aws lightsail put-instance-public-ports`
```bash
aws lightsail put-instance-public-ports --instance-name <instance_name> --port-info fromPort=3389,protocol=TCP,toPort=3389,cidrs=110.111.221.100/32,110.111.221.202/32
```
This command will enter the IP addresses that should have access to the instances identified above in the Audit.
2. Run `aws lightsail get-instance-port-states` for the Windows instance to confirm the new setting.
```bash
aws lightsail get-instance-port-states --instance-name <instance_name>
```
This command will provide a list of available Ports and show how the cidr value for Port 3389 is now set.
```json
"portStates": [
{
"fromPort": 3389,
"toPort": 3389,
"protocol": "tcp",
"state": "open",
"cidrs": [
"110.111.221.100/32",
"110.111.221.202/32"
],
"cidrListAliases": []
}
]
```
3. Repeat the remediation below for all other Windows instances identified in the Audit.
## Default Value
RDP (Port 3389) is open to all IPv4 addresses (0.0.0.0/0) by default on Windows Lightsail instances.
## References
1. https://awscli.amazonaws.com/v2/documentation/api/latest/reference/lightsail/index.html#cli-aws-lightsail
## CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
| ---------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------ | ---- | ---- | ---- |
| v8 | 3.3 Configure Data Access Control Lists - Configure data access control lists based on a user's need to know. Apply data access control lists, also known as access permissions, to local and remote file systems, databases, and applications. | x | x | x |
| v7 | 14.6 Protect Information through Access Control Lists - Protect all information stored on systems with file system, network share, claims, application, or database specific access control lists. These controls will enforce the principle that only authorized individuals should have access to the information based on their need to access the information as a part of their responsibilities. | x | x | x |
## Profile
Level 1 | Manual
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!