liveBook · Manning

Attack surface

As explained in Secure APIs

An attack surface is the collection of exposed interfaces, components, and entry points through which an attacker may affect a system.

An attack surface is the collection of exposed interfaces, components, and entry points through which an attacker may affect a system. For APIs, it includes public resources, older versions, internal endpoints, connected devices, and supporting infrastructure. section 1.6 section 5.0

A larger or poorly modeled attack surface gives threat actors more opportunities to bypass business checks, obtain sensitive information, hijack devices, or abuse system functionality. Connecting devices to APIs can expose homes, stores, vehicles, and private networks. section 1.6

A forgotten endpoint

An organization may protect its current API while leaving an older version or internal endpoint less protected. An attacker searches those entry points and uses the weaker path to trigger requests or reach sensitive information. Similar failures occur when a mortgage API allows applicants to skip sequential risk checks or when a laundry-service API permits free use. section 1.6 section 5.0

Reduce the attack surface by:

  • Inventorying APIs, versions, endpoints, devices, and infrastructure. section 9.0
  • Restricting direct exposure with bastion servers, a demilitarized zone, and controls that prevent lateral movement. section 9.0
  • Using API gateways and WAFs for consistent access controls, secure configuration, visibility, and monitoring, while recognizing their limitations. section 9.0

How Secure APIs covers it

How deep it goes
Explains endpoints, versions, devices, and infrastructure, then reaches gateways, WAFs, and network restrictions without treating them as complete protection.
Examples
Uses mortgage workflows, a laundry-service API, vulnerable IoT devices, old API versions, and internal endpoints as concrete exposure examples.
What you can do after
Operate/configure API exposure by inventorying entry points, restricting infrastructure, and applying gateway, WAF, and access-control measures.
How it connects
Connects API security with access control, API gateways, WAFs, IoT devices, internal endpoints, and lateral movement.

Also explained in

Compare how 4 books explain attack surface →

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.