CompTIA Network+ (V9)
Network device hardening checklist for Network+
Hardening means patching and turning off nonessential services so there are fewer ways in. NIST guidance says to run only the services a device needs, change default credentials before first use, and restrict who can use each switch port. On operational technology, test that disabling a service is safe before you do it.
Run only what is needed
NIST defines hardening as a process to eliminate a means of attack by patching vulnerabilities and turning off nonessential services.
NIST SP 800-53 control CM-7, least functionality, says to configure a system to provide only mission-essential capabilities and to prohibit or restrict other functions, ports, protocols and services. Its discussion says organizations consider removing unused software and disabling unused ports and protocols.
NIST SP 800-123 says a server should ideally be a single-purpose host, and to remove services that are not required, disabling any that cannot be removed. Its list of services to remove includes file and printer sharing and remote access programs that do not strongly encrypt their traffic, such as Telnet.
Example: a core switch runs a web management service and a file transfer service that no one uses, alongside SSH. Disabling the two services removes them. An access list in front of them still leaves them running.
Default credentials
SP 800-53 control IA-5 requires changing default authenticators prior to first use.
SP 800-123 notes that default account names and passwords are commonly known to attackers. It says to remove or disable unneeded default accounts, and for accounts that must stay, to change the name where possible and set a password that meets policy.
Port security
Cisco's Catalyst 2960-X guide says port security restricts a port by limiting and identifying the MAC addresses allowed to use it. The default maximum is one secure MAC address per port, and the default violation mode is shutdown, which error-disables the port.
The other modes are protect, which drops unknown sources silently, and restrict, which drops them, increments a counter and logs the violation while the port stays up. Secure addresses can be static, dynamic or sticky; sticky addresses are added to the running configuration.
Example: an IP phone with a PC behind it presents two MAC addresses. With defaults, the second address is a violation and the port shuts down. Raise the maximum to two.
Test first on OT devices
NIST SP 800-82 Rev. 3 lists disabling unused ports and services on OT devices after testing to ensure this will not affect OT operation. On a programmable logic controller, a service that looks idle may still matter, so the test comes first.
Where the exam catches people
- Believing an ACL in front of an unused service is enough: least functionality means disabling services that are not needed.
- Believing default passwords can wait until the next audit: IA-5 says change them before first use.
- Believing port security allows several MAC addresses by default: the default maximum is one, and the default violation mode is shutdown.
- Believing you should disable unused services on a PLC immediately: NIST SP 800-82 says test the impact first.