What is Attack surface?
Every point where an attacker could try to get into, affect or pull data out of a system: exposed services, user accounts, APIs, third-party connections and people. Shrinking it is often cheaper than defending it.
Attack surface covers the technical (internet-facing servers, open ports, cloud storage, APIs, VPN gateways), the human (staff who can be phished or phoned) and the supply chain (vendors with access, software dependencies). Attack surface management means keeping an accurate inventory, because the systems that get breached are often the ones nobody knew were exposed: a forgotten test server, an old subdomain, a public storage bucket. Reducing it, by turning off unused services, removing stale accounts and closing unneeded ports, removes whole classes of risk at once, which is why "what is exposed?" is usually the first question in an assessment.
Source: NIST CSRC Glossary (NIST SP 800-53 Rev. 5).
Practice it in a lab
Free, hands-on labs that teach Attack surface. 22 more labs also cover it.
- Cut a container's attack surface with a distroless image — and measure what you removed (intermediate, ~60 min)
- Map your own attack surface with OWASP Amass (intermediate, ~60 min)
- Read Amass output: map an org's attack surface and spot the assets nobody remembers (intermediate, ~40 min)
- Catch shadow IT before an attacker does: track attack-surface drift with Amass (advanced, ~90 min of hands-on work, deliberately split across two sessions at least a few days apart (you cannot diff two runs taken ten minutes apart and learn anything))
- Collect passive OSINT on a domain you own (beginner, ~50 min)
- Find your exposed assets with Shodan (beginner, ~30 min)
- Fingerprint a web app's technologies with WhatWeb (beginner, ~35 min)
- Harden your SSH server (beginner, ~25 min)
Related terms
Related
- Cut a container's attack surface with a distroless image — and measure what you removed
- Map your own attack surface with OWASP Amass
- Read Amass output: map an org's attack surface and spot the assets nobody remembers
- Catch shadow IT before an attacker does: track attack-surface drift with Amass
- Collect passive OSINT on a domain you own
- Find your exposed assets with Shodan
- Fingerprint a web app's technologies with WhatWeb
- Harden your SSH server
- Sandbox
- Vulnerability
- Firewall
- Common Vulnerabilities and Exposures
- Cybersecurity glossary
- Free cyber labs