Attack surface

The total set of exposed points an attacker could try to use against a system, from open ports and APIs to user accounts and physical access. A smaller surface is easier to defend.

The attack surface of a system is everything about it that an attacker can reach and interact with. NIST SP 800-53 Rev. 5 defines it in terms of the points on the boundary of a system, component or environment where an attacker can try to get in, affect it or take data out. In practice that includes network services and open ports, web applications and APIs, user and service accounts, remote access paths, removable media, supplier connections, staff who can be socially engineered, and physical access to equipment.

The attack surface is a property of the system, which separates it from an attack vector, the route a particular attack takes. Designers can shrink the surface, and SP 800-53 includes attack surface reduction as an enhancement to its development process control (SA-15). Common techniques are least functionality (removing unneeded services and features), hardening against a security baseline, least privilege, network segmentation and retiring unused accounts. New features, integrations and connected devices tend to enlarge it.

Exam relevance: a scenario is likely to ask what disabling unused services, closing ports or removing default accounts achieves. Candidates are expected to identify attack surface reduction, and to keep the surface (what is exposed) distinct from the vector (how a given attack arrives) and from a vulnerability (a specific weakness).