liveBook · Manning

Security hardening

As explained in Secure APIs

Server hardening is the practice of reducing a server's attack surface by disabling unnecessary services, restricting access, and applying restrictive security configurations.

Security hardening reduces a server’s attack surface by removing unnecessary entry points and tightening access. For an API server, this limits unauthorized access and makes port scans, malicious traffic, and DDoS attacks harder to turn into system compromise or service disruption. section 9.3

A practical hardening checklist includes:

  • Close unnecessary ports and disable or remove unnecessary protocols and services. section 9.3
  • Remove or restrict privileged users and groups, create strict firewall rules, and secure remote-access endpoints. section 9.3
  • Use specialized malicious-traffic protection for DDoS and port scanning, and evaluate how providers integrate with existing infrastructure. section 9.3

An exposed service

A port scan discovers an unprotected Jenkins server on port 8080. Hardening closes unneeded ports, restricts access, and applies firewall rules before an attacker can hijack the service. section 9.3

How Secure APIs covers it

How deep it goes
Details a hardening checklist but stops short of provider-specific configuration procedures.
Examples
Uses an exposed Jenkins server on port 8080 to demonstrate how port scanning supports service hijacking.
What it assumes
Assumes responsibility for configuring on-premises or cloud servers but teaches the principal hardening controls directly.
What you can do after
Operate/configure managed servers by reducing exposed services, restricting privileged access, and securing remote endpoints.
How it connects
Connects server hardening with DDoS protection, port scanning, firewalls, remote access, and WAFs.

Also explained in

Compare how 2 books explain security hardening →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Secure APIs. The section links point to the parts of the book it draws on.