Lion Cipher Lab

Check listening ports against an approved port register

Why it matters

Every listening network service is attack surface. Hardening guidance has said the same thing for decades: run only the services a system needs, and make each one reachable only from where it needs to be. CIS Control 4 includes uninstalling or disabling unnecessary services, and NIST SP 800-123, the server security guide, tells administrators to remove or disable services that are not required. In practice, hosts drift. A developer starts a Java service on 8080 to test something. A database gets reconfigured to listen on all interfaces 'temporarily'. A decommissioned service's approval stays…

What you'll learn

Steps in this lab

  1. Ports, bind addresses and the register
  2. Collect the sockets with ss
  3. Write the register check
  4. Run it and fix what it finds
  5. Make the register a living control

Open the full interactive lab →