Course contentsShow
← Security
Lesson 73 of 3,0522. Threat Modeling FundamentalsFree lesson

Attack Surface Analysis

Map and measure system exposure by identifying all entry points, data flows, and interfaces accessible to attackers.

Attack Surface Analysis

What you'll learn: You'll learn how to systematically map every way attackers could potentially reach your system and measure your overall exposure to threats.

What Is Attack Surface?

Your attack surface is the sum of all points where an unauthorized user could try to enter or extract data from your system. Think of it like all the doors, windows, vents, and chimneys in a house—each is a potential entry point for an intruder.

Why Map the Attack Surface?

You can't defend what you don't know exists. Attack surface analysis helps you:

  • Identify all entry points (login pages, APIs, file uploads, network ports)
  • Trace data flows (where sensitive information moves and gets processed)
  • List interfaces (user interfaces, admin panels, database connections, third-party integrations)
  • Measure exposure (quantify how accessible your system is to attackers)

How to Perform Basic Attack Surface Analysis

  1. Enumerate entry points: List every way data enters your system (web forms, APIs, network services)
  2. Map trust boundaries: Note where untrusted data crosses into trusted zones
  3. Catalog assets: Identify what valuable data or functionality exists at each point
  4. Assess accessibility: Determine which entry points are internet-facing vs. internal
  5. Document findings: Create a clear inventory for your threat model

This analysis feeds directly into your STRIDE analysis and helps you understand which threats are most relevant based on what's actually exposed.

Key Takeaway: Attack surface analysis creates an inventory of all system entry points, data flows, and interfaces—giving you a complete map of where attackers could strike and helping you prioritize defenses on the most exposed areas.