EVOPEDIA

← all systems · see it in The System

Attack surface

The sum of the points where an unauthorised user can try to enter data, extract data or control a device or software (src:wp:attack-surface); NIST: the set of points on the boundary of a system where an attacker can try to enter, cause an effect or extract data (as quoted in src:harry-2025-county); formalised by Howard, Pincus and Wing as targets and enablers, channels and protocols, and access rights (src:howard-2005-rasq), and by Manadhata and Wing as entry and exit points, channels and untrusted data items weighted by damage potential against effort (src:manadhata-2008-thesis). Walked from the defender's and researcher's side: what it is made of, how it is measured, what studies found across versions, how organisations inventory, reduce and shift it, how the idea was carried to people, supply chains and clouds, and who pays to shrink it. Every surface is relative to a stated environment and threat: a local and a remote surface for different threats (src:howard-2005-rasq), entry points defined with respect to the environment Es (src:manadhata-2008-thesis); the numbers in measures are each for the one setting their source measured.

Properties published scienceour proposal

Sourced fields, and our own readings.

born at2003 (Howard's MSDN article and RASQ)
born precisionyear
boundaryInside: the entry and exit points, channels and untrusted data items by which outside input reaches a system, and the resources and rights they reach (L1 to L4: the surface itself, a property of one system in one configuration, defined against a given environment and threat). L5 to L7 are the practice that runs on the surface: the measurers and the defender organisations that count, reduce and shift it, and the economics they work in (to be walked as sys:attack-surface-management). The surface does nothing itself; it is acted on from both sides, by attackers and by defenders. Outside: the vulnerabilities themselves (their own system), the attackers, the organisations that run the systems, and the markets and insurers that set what exposure is worth.
nested levelA property and practice of computer security: part of a system's trust structure (where its trust boundaries are crossed), measured and managed inside organisations. One system has as many surfaces as environments it is measured against (local and remote; Manadhata's environment Es).
scaletechnological

Measures (43) published science

characteristic clock: time from disclosure to attacker scans of exposed hostsmere hours
characteristic clock: drift of an unmanaged surface (Red Hat machine re-measured)3 months
RASQ attack vectors (Howard's original set)17 (20 with Pincus and Wing's 3 enablers) vectors
RASQ, Windows NT 4.0 default vs lockdown598.3 -> 395.4 RASQ
RASQ, Windows 2000 default vs lockdown342.2 -> 305.1 RASQ
Linux attack classes (Manadhata and Wing 2004)14 identified, 11 counted classes
open TCP/UDP sockets, Debian vs Red Hat default vs CMU facilities vs used15 / 12 / 40 / 41 sockets
weak file permissions, Debian vs Red Hat default vs CMU facilities vs used7 / 7 / 21 / 37 files
IMAP daemons' attack surface triple (methods, channels, data)Courier <522.00, 2.25, 72.13>; Cyrus <383.60, 3.25, 66.50> damage potential-effort sums
FTP daemons' attack surface triple (methods, channels, data)ProFTPD <312.99, 1.00, 18.90>; Wu-FTPD <392.33, 1.00, 17.60> damage potential-effort sums
SAP service attack surface measurement (method dimension) by versionS1 4649.00; S2 4687.00; S3 5298.44 damage potential-effort sum
resources named in Microsoft security bulletin observationsmethods 202, channels 170, data 108 of 202 observations
relevant patches that reduced the attack surface measurementFirefox 2.0: 67%; ProFTP: 70%; typed-only: 76.9% percent of relevant patches
Firefox files on the approximated attack surface and their share of vulnerabilities8.4% of files, 72.1% of vulnerabilities percent
Windows 8 binaries on the approximated attack surface and their share of vulnerabilities48.4% of binaries, 94.8% of vulnerabilities percent
code-level attack surface concepts covered by prior literature8 of 119 (6.7%) concepts
Linux kernel attack surface reduction by compile-time tailoringabout 50 to 85 percent
compiled kernel source files, distribution vs tailored (LAMP)8,670 -> 1,121 (87% fewer) files
web application code removed by debloating33.1% file-level, 46.8% function-level; up to 60% of known CVEs removed percent
code growth in latest web application versions+82% phpMyAdmin, +99% MediaWiki, +171% Magento percent LLOC
share of remaining functional gadgets introduced by debloating (smallest observed)35 percent
Android apps with a permission gap94 of 742 apps
overprivileged Android applicationsabout one-third of 940 apps
internet-facing devices across US county governments42,735 devices, 51,487 open ports, 82 services, 3,095 counties
county CVEs in CISA's KEV catalogue6 of 852 (0.7%) CVEs
counties exposing remote-access services (most states)more than 50% percent of counties
incident forecast from outside-in features90% true positive, 10% false positive rates
normalised importance of mismanagement features in incident forecasting0.3229 importance
victim vs non-victim classification from outside-in configuration0.73 ± 0.06 accuracy, 0.25 false positive rate
exploitable dangling DNS records467 in 277 Alexa top-10,000 domains and 52 edu zones records
implicit trust per average npm package install79 packages, 39 maintainers count
co-location attack success vs secure reference placement10x higher success, up to $114 cheaper ratio
Gordon-Loeb bound on optimal security investmentabout 37% (1/e) of expected loss, for the forms studied share
works using the term attack surface (systematic review)644 works
characteristic clock: disclosure to first exploit attempts (Heartbleed)less than 24 hours
characteristic clock: defenders' patching plateau (Heartbleed)about 2 weeks
Heartbleed: HTTPS sites in the Alexa Top 1 Million still vulnerable almost two months after disclosure3 percent
Heartbleed: Alexa Top 100 sites unpatched after 24 hours5 sites
Heartbleed: increase in patching by notified operators47 percent
works using the phrase without defining or citing it (systematic review)71 percent of 644 works
themes of attack surface definitions (systematic review)6 (Methods, Adversaries, Flows, Features, Barriers, Reachable Vulnerabilities) themes
misconfigured Amazon S3 buckets (June 2018 subset)11.01% public, 8.46% readable, 2.29% writable percent of buckets
devices with vulnerable speculative execution (Spectre)billions (Intel, AMD, ARM processors) devices

Open contentions (6) open contention

Where sources or readings disagree. Both stay on the map.

Cross-scale patterns seen here (16) our proposal

Shapes that recur when the same kind of problem is solved at different scales, and how each shows in Attack surface. Each links to every other system that shows it.

Valence: what it trades, and with whom (16) published science

Each exchange with a neighbour, read from both sides: who gains, who pays, and what carries it.

Partners and parts published science

Built from / builds (4)

Sits inside / holds (2)

expressed by (22)

floor filled by (18)

represents (1)

Kinds (8)

Notes published science

Layers

The ways it takes in its world, where they meet, and how it acts back, each from L1 (where it meets the world) up.

the attack surface as security engineers and researchers describe it: the ways a system can be reached from outside, up to the protection it is weighed against (reader's view)

  1. L1: What can reach the system: networks, other software and packages, co-tenants, names, people, and the adversary among them
  2. L2: The doors: entry and exit points and channels (sockets, RPC endpoints, pipes, files, web handlers, accounts, system calls, install steps, open ports)
  3. L3: What comes through and what reads it: untrusted data items, carriers, eval functions and parsers
  4. L4: What can be reached, and with what rights: targets and enablers, privilege levels, damage potential against effort
  5. L5: Measurement: relative counts per dimension, RASQ, the triple, surface approximation, integrated organisational surfaces
  6. L6: Reduction and shifting: lockdown, debloating, kernel tailoring, least privilege, input validation and patches, moving target defense, retiring stale assets
  7. L7: Purpose: protection weighed against the features, performance and money exposure buys; who pays for the shrinking

the boardroom (shared floors)

  1. L4: Targets and enablers reached: processes and data the adversary can control, under the access-rights relation; each resource's damage potential against the effort to reach it
  2. L5: Measurement: counts per attack class, the RASQ sum, the methods-channels-data triple, the share of code on the surface, the integrated surface of many organisations, risk scores
  3. L6: Reduction and shifting: remove features and code, restrict rights (least privilege), strengthen pre- and post-conditions, move the surface (moving target defense), retire forgotten assets, focus review
  4. L7: Purpose: a system that does its job with as little exposure as possible, weighed against the features, performance and money the exposure buys

way in: Accounts and access rights: guest, admin, unpassworded, remote access

  1. L1: Users and processes acting as principals, the adversary among them
  2. L2: Enabled accounts, accounts in the admin group, guest accounts, null sessions; exposed remote-access services
  3. L3: The access-rights relation: principals x resources x rights, with privilege levels none < user < root

way in: Cloud control plane: storage and access policies

  1. L1: Cloud storage buckets reachable by name from anywhere
  2. L2: Access control lists and policies left public, readable or writable
  3. L3: Readable files leak keys, credentials and database dumps; writable buckets let attackers overwrite web resources

way in: Counting the running system: attack classes per configuration

  1. L1: A running system in a given configuration (default, lockdown, after use)
  2. L2: Counting tools enumerate instances: open sockets, root services, setuid programs, accounts, weak permissions
  3. L3: Counts per attack class (14 classes for Linux, 11 countable; 20 RASQ vectors for Windows)
  4. L4: Counts weighted by payoff and compared class by class across versions of the same system

way in: Crash dumps: stack traces from the field

  1. L1: Crashes caused by outside activity on users' machines
  2. L2: Crash dump stack traces collected in the vendor's defect repository
  3. L3: Files appearing in stack traces are classed as on the surface (8.4% of Firefox files)
  4. L4: Appearance counts as thresholds (1, 10, 30, 77, 140 traces) trade recall against precision

way in: Dependencies: third-party packages and reused code

  1. L1: Package registries and their maintainers; shared libraries and copied code fragments
  2. L2: Install-time trust: an average npm install trusts 79 packages and 39 maintainers
  3. L3: Shared code carries shared weaknesses: a common attack surface across seemingly unrelated programs

way in: Internet-wide scans seen from outside (OSINT)

  1. L1: All of IPv4 and about 150 million IPv6 addresses, continuously scanned by third parties
  2. L2: Shodan and Censys scans queried by the organisation's domains (passive reconnaissance)
  3. L3: Per-organisation inventories: IPs, ports, services, versions, CVEs with CVSS and EPSS; mismanagement symptoms (open resolvers, untrusted certificates)
  4. L4: Only CPEs with version numbers carried through, to cut false positives; CVE coverage falls to 1003 counties

way in: Money and incentives: markets, insurers, budgets

  1. L1: Software markets with network effects, insurers, budgets of the organisations running systems
  2. L2: Pressure to ship features first; premium discounts; liability placed elsewhere
  3. L3: Features enabled by default to maximise user satisfaction
  4. L4: Optimal investment bounded (Gordon-Loeb: at most about 1/e of expected loss for the forms studied); external damages left out by private optimisers
  5. L5: Free-riding among interdependent defenders (sum-of-efforts, weakest link)

way in: Names that point outward: DNS records

  1. L1: DNS records of an organisation's domains and subdomains
  2. L2: Dangling records: A, CNAME, MX and NS records pointing at released IPs, abandoned third-party services or expired domains
  3. L3: Whoever claims the abandoned resource controls the (sub)domain and can get it a certificate

way in: Network channels: open sockets, RPC endpoints, named pipes

  1. L1: Other machines on the network, including the adversary's, sending messages
  2. L2: Open TCP/UDP sockets, RPC endpoints and named pipes on which a service listens
  3. L3: The service at the channel endpoint reads the protocol's messages; the protocol sets the rules of exchange

way in: People: the deception attack surface

  1. L1: Spear-phishing, obfuscated URLs, spoofed websites, scareware arriving through people's sight and hearing
  2. L2: The user's judgement as the entry point: deception targets the user directly, around technical controls
  3. L3: Susceptibility varies: computer literacy, familiarity, time since last self-study

way in: Permission maps: what an app declares against what it uses

  1. L1: The app's declared permission list and its bytecode
  2. L2: Static analysis maps API methods to permissions (3,957 methods)
  3. L3: The permission gap: declared but unused permissions
  4. L4: The required permission set computed and set against the declared list, app by app (94 of 742 with a gap)

way in: Practitioners' judgement

  1. L1: System administrators and developers who know the systems
  2. L2: An email survey of 20 Linux administrators; collaboration with SAP developers
  3. L3: Judgements on dimensions and on what signals damage potential; findings on channel protocols not conclusive
  4. L4: Responses tested with one-sample t-tests (p < 0.05 counted significant)

way in: Reading the code and its API: entry and exit points

  1. L1: Source code and the API of the system
  2. L2: Call graphs and API scans find direct and indirect entry and exit points
  3. L3: Each point's privilege and access rights scored as a damage potential-effort ratio
  4. L4: Entry points, channels and untrusted data items assembled into the triple

way in: Shared hardware in a public cloud: co-resident tenants

  1. L1: Other tenants' virtual machines placed on the same physical server
  2. L2: Co-location: launching instances to land beside the victim; tests that detect co-residence
  3. L3: Side channels across the shared hardware extract information

way in: Shared processor state: speculative execution side channels

  1. L1: Code running on the same processor (in another process or in the browser)
  2. L2: Branch prediction steered by the attacker; the victim speculatively executes operations correct execution never would
  3. L3: Speculative operations leave measurable side effects that leak the victim's confidential information

way in: Shared-memory channels and untrusted data items: files, directories, registries

  1. L1: Files, directories, registry keys and other persistent data items in a data store
  2. L2: Shared-memory channels and data items an attacker can write; weak ACLs (full control to all principals)
  3. L3: Untrusted data items read by an entry point or written by an exit point

way in: The kernel interface: system calls and loaded features

  1. L1: Unprivileged local processes, an attacker's among them, calling into the kernel
  2. L2: The system call interface and the features compiled in or loadable (file systems, socket types, drivers)
  3. L3: Kernel code reachable from the entry points in the static call graph

way in: The organisation's internet-facing estate: IPs, ports, services

  1. L1: The public internet: IP addresses, domains, open ports of an organisation
  2. L2: Exposed services: 51,487 open ports, 82 services across county governments; DNS, remote access, file sharing
  3. L3: Software versions (CPEs) behind the services, matched to CVEs

way in: The vendor's update and build pipeline: signed updates

  1. L1: The vendor's build system and update servers (SolarWinds Orion)
  2. L2: A signed update accepted because it is signed: the ability to sign and ship malicious code
  3. L3: Payloads (Sunburst, Teardrop, Sunshuttle) run inside the trusted product; economy of mechanism and least privilege not observed

way in: The vulnerability record: CVEs, bulletins, patches

  1. L1: CVE entries, vendor bulletins, distribution advisories and patches
  2. L2: Resources named in each bulletin mapped to the surface's dimensions (202 observations from 110 Microsoft bulletins)
  3. L3: Payoffs: attack classes that appear more often in CVEs weighted higher
  4. L4: The k attack classes chosen for measurement: the top by payoff, or those that can be counted

way in: Web content and scripting: dynamic pages, HTML documents, script engines

  1. L1: Web servers and mail senders, the adversary's site among them, sending HTML
  2. L2: Browser and mail client receive the document; dynamic web pages, web handlers, ISAPI filters on the server side
  3. L3: Carrier and eval function: the renderer (MSHTML) extracts and runs the embedded object; VBScript, JScript and ActiveX as enablers

way out: Focus: point review and testing at the code on the surface

  1. L1: Engineering hours spent where outside input can reach
  2. L3: Decision tree on stack-trace appearances, churn and authors
  3. L6: Prioritise security review and testing to code on the approximated surface

way out: Remove: turn off services and features, debloat code, tailor the kernel

  1. L1: A smaller body of code reachable from outside
  2. L2: Fewer services running by default; fewer entry points
  3. L3: Build the tailored configuration or debloated program (file- or function-level)
  4. L5: Measure the reduction (code, call graph, CVE-based metrics)
  5. L6: Decide which features the use case needs

way out: Restrict: least privilege, tighter ACLs, permissions trimmed

  1. L1: Each module reaches only what its legitimate purpose needs
  2. L4: Services run as non-root; weak ACLs strengthened; unused permissions removed
  3. L6: Grant only the relevant rights to each principal

way out: Retire: purge stale records and forgotten exposed services

  1. L1: Nothing left pointing to a resource an outsider can claim
  2. L2: Delete the DNS record or reclaim the resource; close exposed services
  3. L6: Find and decide to clean up dangling records and exposed services

way out: Shift: moving target defense

  1. L1: The surface the attacker mapped is no longer where it was
  2. L3: Shuffling, diversity, redundancy: IP mutation, port hopping, VM migration, OS rotation
  3. L6: What, how and when to move

way out: Strengthen: validate input, patch the code

  1. L1: The vulnerability difference between actual and intended behaviour narrowed
  2. L3: Patches change entry points, channels or data items; most relevant patches lower the measurement
  3. L6: Strengthen the actual pre- or post-condition to match the intended

Sources (31) published science

Attack surface (Wikipedia, via Wikimedia Enterprise snapshot 2026-11-01)
Howard, Pincus & Wing 2005, Measuring Relative Attack Surfaces (in Computer Security in the 21st Century, Springer), doi:10.1007/0-387-24006-3_8 (behind its links)
Kurmus 2014, Kernel Self-Protection through Quantified Attack Surface Reduction, PhD thesis TU Braunschweig, doi:10.24355/dbbs.084-201411111037-0 (sections read: introduction, metrics, ch. 4 compile-time kernel tailoring with Table 4.1, comparison with trimming) (behind its links)
Liu, Sarabi, Zhang et al. 2015, Cloudy with a Chance of Breach: Forecasting Cyber Security Incidents, USENIX Security (open proceedings PDF; sections read: abstract, introduction, mismanagement features, feature importance Table 6) (behind its links)
Cho, Sharma, Alavizadeh et al. 2020, Toward Proactive, Adaptive Defense: A Survey on Moving Target Defense, IEEE Communications Surveys & Tutorials, doi:10.1109/comst.2019.2963791 (sections read: introduction, key concepts and design principles, timing, shuffling-diversity-redundancy classification) (behind its links)
Brown & Pande 2019, Is Less Really More? Why Reducing Code Reuse Gadget Counts via Software Debloating Doesn't Necessarily Indicate Improved Security, arXiv:1902.10880 (sections read: abstract, introduction, gadget introduction results with Table 1, discussion, conclusion) (behind its links)
Anderson & Moore 2006, The Economics of Information Security, Science 314, doi:10.1126/science.1130992 (sections read: introduction, misaligned incentives, security as an externality, the economics of vulnerabilities) (behind its links)
Woods & Moore 2019, Does Insurance Have a Future in Governing Cybersecurity?, IEEE Security & Privacy, doi:10.1109/msec.2019.2935702 (behind its links)
Durumeric et al., The Matter of Heartbleed, ACM Internet Measurement Conference 2014 (doi:10.1145/2663716.2663755) (behind its links)
Manadhata 2008, An Attack Surface Metric, PhD thesis CMU-CS-08-152 (sections read: abstract, ch. 1 introduction, ch. 3 definitions, ch. 4 IMAP and FTP measurements, ch. 5 validation: bulletins, survey, patches, ch. 6 SAP) (behind its links)
Harry, Sivan-Sevilla, McDermott et al. 2025, Measuring the size and severity of the integrated cyber attack surface across US county governments, Journal of Cybersecurity, doi:10.1093/cybsec/tyae032 (behind its links)
Manadhata & Wing 2004, Measuring a System's Attack Surface, CMU-CS-04-102 (DTIC), doi:10.21236/ada458115 (behind its links)
Theisen & Williams 2015, Strengthening the Evidence that Attack Surfaces Can Be Approximated with Stack Traces (NCSU repository) (behind its links)
Moshtari, Okutan & Mirakhorli 2022, A grounded theory based approach to characterize software attack surfaces, ICSE, doi:10.1145/3510003.3510210 (sections read: abstract, introduction, method, comparison with prior work) (behind its links)
Amin Azad, Laperdrix & Nikiforakis 2019, Less is More: Quantifying the Security Benefits of Debloating Web Applications, USENIX Security (open proceedings PDF; sections read: abstract, introduction, results on code size and CVEs) (behind its links)
Bartel, Klein, Le Traon & Monperrus 2012, Automatically securing permission-based software by reducing the attack surface: an application to Android, ASE, doi:10.1145/2351676.2351722 (sections read: abstract, introduction, section II, evaluation) (behind its links)
Felt, Chin, Hanna, Song & Wagner 2011, Android permissions demystified, CCS, doi:10.1145/2046707.2046779 (behind its links)
Mulugeta, Weber & Goodman 2019, Security Posture-Based Incident Forecasting, Variance, doi:10.66573/001c.36429 (sections read: abstract, introduction and scope, data collection, results, Table 6) (behind its links)
Liu, Hao & Wang 2016, All Your DNS Records Point to Us: Understanding the Security Threats of Dangling DNS Records, CCS, doi:10.1145/2976749.2978387 (sections read: abstract, introduction, attack vectors) (behind its links)
Zimmermann, Staicu, Tenny, Pradel 2019. Small World with High Risks: A Study of Security Threats in the npm Ecosystem (USENIX Security 2019). arXiv:1902.09217 (behind its links)
Varadarajan, Zhang, Ristenpart & Swift 2015, A Placement Vulnerability Study in Multi-tenant Public Clouds, arXiv:1507.03114 (USENIX Security 2015; sections read: abstract, introduction, placement policy evaluation) (behind its links)
Farrow & Szanton 2016, Cybersecurity Investment Guidance: Extensions of the Gordon and Loeb Model, Journal of Information Security, doi:10.4236/jis.2016.72002 (sections read: introduction, model, the 1/e result) (behind its links)
Theisen, Munaiah, Al-Zyoud, Carver, Meneely & Williams 2018, Attack surface definitions: A systematic literature review, Information and Software Technology, doi:10.1016/j.infsof.2018.07.008 (authors' preprint copy on Munaiah's site; sections read: abstract, introduction, RQ3 themes, discussion) (behind its links)
Continella, Polino, Pogliani & Zanero 2018, There's a Hole in that Bucket! A Large-scale Analysis of Misconfigured S3 Buckets, ACSAC, doi:10.1145/3274694.3274736 (sections read: abstract, introduction, results) (behind its links)
Kocher, Horn, Fogh et al. 2019, Spectre Attacks: Exploiting Speculative Execution, IEEE S&P, doi:10.1109/sp.2019.00002 (sections read: abstract, introduction) (behind its links)
Zhang, Yue, Wang, Jajodia & Singhal 2019, CASFinder: Detecting Common Attack Surface, DBSec, doi:10.1007/978-3-030-22479-0_18 (sections read: introduction, preliminaries) (behind its links)
Heartfield, Loukas & Gan 2016, You Are Probably Not the Weakest Link: Towards Practical Prediction of Susceptibility to Semantic Social Engineering Attacks, IEEE Access, doi:10.1109/access.2016.2616285 (sections read: abstract, introduction, discussion of the human as a sensor) (behind its links)
Dambra, Bilge & Balzarotti 2020, SoK: Cyber Insurance - Technical Challenges and a System Security Roadmap, IEEE S&P, doi:10.1109/sp40000.2020.00019 (sections read: abstract, underwriting, risk prediction area) (behind its links)
Das Chowdhury, Tahaei, Rashid 2022. Better Call Saltzer & Schroeder: A Retrospective Security Analysis of SolarWinds & Log4j. arXiv:2211.02341 (behind its links)
Levy, M. and Maldonado, F. (2024) Attack surface measurement: a weird machines perspective. EICC 2024. doi:10.1145/3655693.3655705 (behind its links)
Principle of least privilege (Wikipedia, via Wikimedia Enterprise snapshot 2026-11-01) (behind its links)