# Is every SSH, RDP and database port closed to the whole internet (0.0.0.0/0 and ::/0)?

Facts read 16 Nov 2026. Page reviewed 16 Nov 2026.

Question 9 of the assessment asks: Is every SSH, RDP and database port closed to the whole internet (0.0.0.0/0 and ::/0)? Open administrative ports are scanned within minutes of appearing, and a single weak or leaked credential is then enough.

## Why it matters

Open administrative ports are scanned within minutes of appearing, and a single weak or leaked credential is then enough.

## Answers and what each is worth

| Answer | Value |
| --- | --- |
| Yes, none are open | 1 |
| Open on a few exceptions | 0.5 |
| No or not known | 0 |

## How to check it in each cloud

- **AWS:** Describe security groups with ip-permission.cidr 0.0.0.0/0 on ports 22, 3389, 3306, 5432 and 1433, or use the matching AWS Config managed rules.
- **Azure:** In Network security groups, search inbound rules with source Any or Internet on those ports, or use the Defender for Cloud recommendation for management ports.
- **Google Cloud:** List firewall rules (gcloud compute firewall-rules list) with source range 0.0.0.0/0 and allowed ports 22, 3389 or database ports.

## The fix

Remove every inbound rule from 0.0.0.0/0 and ::/0 on ports 22, 3389 and database ports, and use brokered access instead. Effort: low.

## Where it comes from

- Google Cloud security best practices VPC firewall rules: [VPC firewall rules overview](https://cloud.google.com/vpc/docs/firewalls)
- Microsoft cloud security benchmark NS-1: [source](https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-v2-network-security)
- NIST SP 800-53 Rev. 5 SC-7: [source](https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final)

## Related pages

- [Question 10: Network reachability, private service endpoin](/questions/private-service-endpoints/)
- [Question 11: Network reachability, no default public ip](/questions/no-default-public-ip/)
- [Question 12: Network reachability, brokered admin access](/questions/brokered-admin-access/)

## Sources

- Google Cloud security best practices VPC firewall rules: https://cloud.google.com/vpc/docs/firewalls (read 16 Nov 2026)
- Microsoft cloud security benchmark NS-1: https://learn.microsoft.com/en-us/security/benchmark/azure/mcsb-v2-network-security (read 16 Nov 2026)
- NIST SP 800-53 Rev. 5 SC-7: https://csrc.nist.gov/pubs/sp/800/53/r5/upd1/final (read 16 Nov 2026)

Last reviewed 16 Nov 2026. Canonical: https://cloudsecurityriskassessment.com/questions/no-open-admin-ports/
