Interview Prep/Networking/TLS, Certificates & Network Security

How do you audit open ports across your estate?

BeginnerProductionTLS, Certificates & Network Security
Answer

Combine external scanning (nmap, masscan from outside the network, or cloud provider tools like Inspector network reachability), flow-log analysis, and security-group queries.

nmap -Pn -sS -p- --min-rate 1000 -oA scan 203.0.113.0/28
aws ec2 describe-security-groups --filters Name=ip-permission.cidr,Values=0.0.0.0/0 --query 'SecurityGroups[].[GroupId,GroupName]'

Run it on a schedule and diff results, failing the build on unexpected ports.

All Networking questions Roadmap: Networking for DevOps

More on TLS, Certificates & Network Security