Attack surface
An attack surface is the set of exposed or reachable interfaces, components, capabilities, and pathways through which an attacker could access or affect a system.
Fundamentals of Cybersecurity
An attack surface is the collection of exposed systems, applications, interfaces, devices, and other points through which an attacker could compromise an environment.
- How it is used
- Frames where attackers may gain access or extract data and why hardening removes unnecessary exposure.
- How deep it goes
- Defines potential entry points and explains practical reduction techniques, without giving tool-specific setup steps.
- Examples
- Illustrates unnecessary exposure with a server's unused printing service and an open FTP port (21).
- What you can do after
- Operate/configure it by removing unneeded services, closing unused ports, and restricting access while preserving required functions.
Read how Fundamentals of Cybersecurity explains attack surface →
AI Governance
The set of points through which an attacker can attempt to affect or compromise a system.
- How it is used
- Frames generative AI security around entry points and the capabilities attackers can influence.
- How deep it goes
- Explains instruction-data ambiguity and retrieval poisoning, then identifies scope, sanitization, citation, and action controls without guaranteeing prevention.
- Examples
- Uses hidden instructions in searchable documents and emails, and an AI document-checking workflow that approves invalid documents.
- What you can do after
- Evaluate/understand how added access and agency change exposure, and select controls to reduce retrieval and action risks.
100 SQL Server Mistakes and How to Avoid Them
An attack surface is the collection of system components and exposed capabilities that could be targeted to compromise a system.
- How it is used
- Guides SQL Server installation choices by exposing how unnecessary components, services, and features increase security exposure.
- How deep it goes
- Explains operational causes and consequences of exposure, but stops short of formal threat modeling or vulnerability assessment.
- Examples
- Uses Windows Server 2022, SQL Server 2022, SSIS, Visual Studio, and optional SQL Server services as concrete cases.
- What you can do after
- Operate/configure SQL Server installations by choosing Server Core where suitable and excluding unneeded features and services.
Read how 100 SQL Server Mistakes and How to Avoid Them explains attack surface →
Secure APIs
An attack surface is the collection of exposed interfaces, components, and entry points through which an attacker may affect a system.
- How it is used
- Manages exposed API entry points and infrastructure to reduce opportunities for abuse, unauthorized access, and sensitive-data exposure.
- 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.
Crack Any Codebase with AI
A security attack surface is the set of exposed interfaces and entry points through which an unauthorized party could attempt to affect a system.
- How it is used
- Locates externally reachable interfaces while mapping a web application's service graph and trust boundaries.
- How deep it goes
- Connects inbound arrows and gateway routes to exposure, but stops short of detailed vulnerability analysis.
- Examples
- Uses browsers, external webhooks, Nginx, Kubernetes Ingress, Kong, Stripe, and Google as boundary examples.
- What you can do after
- Evaluate exposure by mapping public edges, route-defining gateways, vendors, and custom components.
Read how Crack Any Codebase with AI explains attack surface →
Think Like a CTO
The complete set of points, interfaces, systems, and pathways through which an attacker could compromise or leak organizational assets.
- How it is used
- Guides CTOs in identifying, reducing, monitoring, and repeatedly reassessing organizational exposure.
- How deep it goes
- Defines the concept and gives practical network and credential examples, while stopping short of exhaustive security treatment.
- Examples
- Uses shared database credentials, mixed production and development networks, network-connected devices, and newly deployed services.
- What you can do after
- Apply it by inventorying exposure, isolating environments, assigning accountable access, and reassessing defenses after changes.
Data Pipelines with Apache Airflow, Second Edition
An attack surface is the collection of possible points through which an attacker could attempt to gain unauthorized access to a system.
- How it is used
- Guides Airflow security decisions by identifying exposed components and reducing the paths available to attackers.
- How deep it goes
- Explains architecture-level exposure and demonstrates network, encryption, secrets-management, and update controls without exhaustively modeling every breach path.
- Examples
- Uses the Airflow UI, database, external IPs, allowlists, Fernet keys, and Vault-backed connections as concrete security examples.
- What you can do after
- Operate/configure Airflow with restricted service exposure, encrypted stored secrets, centralized credentials, and current security fixes.
Read how Data Pipelines with Apache Airflow, Second Edition explains attack surface →
Also covered in
- Infrastructure as Code, Patterns and Practices: With examples in Python and Terraform
- Digital Twins in Action
- AI Agents in Action, Second Edition
- LLM Customization and Fine-TuningIn early access (MEAP)
- Introduction to Generative AI, Second Edition
- Kubernetes for Developers
- Data-Driven Cybersecurity
- AI Agents for Offensive SecurityIn early access (MEAP)
- PostgreSQL Mistakes and How to Avoid Them
- Prompt Engineering in Practice
- Build High Value Software SystemsIn early access (MEAP)
- AI-Powered Developer: Build software with ChatGPT and Copilot
What to know first
- authorizationAuthorization is the determination of which actions or resources an identity or other entity is permitted to access under defined permissions or policies.
- AI agentAn AI agent is a computational system that uses artificial intelligence to interpret information and select or perform actions toward goals while interacting with an environment.
- GDPRThe General Data Protection Regulation (GDPR) is a European Union regulation governing the processing and protection of personal data and establishing related rights for individuals.
- human-in-the-loopHuman-in-the-loop is a system or workflow design in which people participate in reviewing, guiding, correcting, or authorizing an automated process.
Related concepts
- deployment pipelineproduced by · A deployment pipeline is a repeatable sequence of stages that builds, tests or validates, packages, and delivers software changes toward release or deployment.
- digital twinproduced by · A digital twin is a computational representation of a physical entity, process, or system that models relevant characteristics, state, or behavior.
- serviceproduced by · A software service is a capability or set of operations made available to users or other software through a defined interaction boundary.
- MCP toolincludes · An MCP tool is an invocable operation or capability that a Model Context Protocol server exposes for clients to discover and call.
- retrieval layerincludes · A retrieval layer is a system component or set of components that stores, indexes, searches, and selects information relevant to an AI system's request.
- security hardeningaddressed by · Security hardening is the practice of reducing a system’s vulnerabilities and attack surface through secure configuration, protective controls, and removal of unnecessary functionality.
Questions about attack surface
What is attack surface?
An attack surface is the set of exposed or reachable interfaces, components, capabilities, and pathways through which an attacker could access or affect a system.
Which Manning books explain attack surface?
Fundamentals of Cybersecurity, AI Governance, 100 SQL Server Mistakes and How to Avoid Them, Secure APIs, Crack Any Codebase with AI, Think Like a CTO and Data Pipelines with Apache Airflow, Second Edition.
What should I know before learning attack surface?
Manning books that teach attack surface usually introduce authorization, AI agent, GDPR and human-in-the-loop first.
What kinds of attack surface are there?
Kinds of attack surface include MCP tool and retrieval layer.
These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.






