Cyberstudy
2.5 4.1 In progress

Hardening Concepts

18 flashcards

Summary

Hardening reduces a system's attack surface by changing insecure defaults, removing what isn't needed and enabling protections. The same principles apply to network devices and servers: change default credentials, disable unused services, use secure management, apply least privilege, patch and log.

In plain words

Hardening means changing insecure, well-known defaults. On switches and routers: change default credentials, disable unused services, use SSH and HTTPS instead of Telnet and HTTP, apply ACLs, turn on logging, use port security, enforce strong passwords, and lock the equipment away. On servers: the same basics, plus regular patching, least privilege, host firewalls and IDS, baselines (CIS/STIG), MFA and PAM, and antimalware.

Detailed explanation

  • Hardening: Configuring a system to reduce its vulnerabilities and attack surface.
  • Insecure defaults: Default accounts, open services and permissive settings that attackers know well.

Network devices

  • Change default credentials: Set unique, strong administrative passwords and use central authentication.
  • Disable unused services and ports: Turn off anything not required, such as unused web interfaces.
  • Secure management protocols: Use SSH, HTTPS and SNMPv3 instead of Telnet, HTTP and older SNMP.
  • Access control lists: Restrict management access to administrative networks.
  • Port security: Limit what can connect to switch ports.
  • Logging and monitoring: Send logs to a central collector.
  • Physical security: Lock equipment in secure rooms.

Servers and operating systems

  • Patching: Apply updates regularly.
  • Least privilege: Run services and users with minimal rights.
  • Host firewall and endpoint protection: Filter traffic and detect malware on the host.
  • Strong authentication: MFA and privileged access management for administrators.

Important terms

taken from the text above
Hardening
Configuring a system to reduce its vulnerabilities and attack surface.
Insecure defaults
Default accounts, open services and permissive settings that attackers know well.
Change default credentials
Set unique, strong administrative passwords and use central authentication.
Disable unused services and ports
Turn off anything not required, such as unused web interfaces.
Secure management protocols
Use SSH, HTTPS and SNMPv3 instead of Telnet, HTTP and older SNMP.
Access control lists
Restrict management access to administrative networks.
Port security
Limit what can connect to switch ports.
Logging and monitoring
Send logs to a central collector.
Physical security
Lock equipment in secure rooms.
Patching
Apply updates regularly.
Least privilege
Run services and users with minimal rights.
Host firewall and endpoint protection
Filter traffic and detect malware on the host.
Strong authentication
MFA and privileged access management for administrators.

Examples & real-world scenarios

  • Disabling Telnet on a switch and enabling SSH only.
  • Removing unused server roles and services.
  • Enabling alerts for repeated failed logins.

Scenario

A new router arrives with Telnet management enabled and a default password. Hardening it before deployment (SSH only, new strong credentials, management restricted to the admin VLAN) closes the easy doors.

Common mistakes

  • Leaving management interfaces open to every network.
  • Hardening once and never patching afterwards.

Practical skills

  • Write a hardening checklist for a switch and a server.
  • Harden a VM in your own lab and verify each change.

What I should remember

  • Hardening: Reducing the attack surface through secure configuration.
  • Default credentials: Change them before deployment.
  • Secure protocols: SSH, HTTPS and SNMPv3 for management.
  • Disable unused services: Fewer services means fewer vulnerabilities.