attack_surface View
The attack_surface view is an interactive, lane-based security diagram that visualizes the enterprise perimeter: public internet-facing entry points, active threats, ingress security shields (WAF, MFA, Tokenization), and software vulnerabilities (CVEs).
Visual Projection & Lane Architecture
Attack Surface View illustrating public ingress entry points, protective perimeter shields, and active vulnerabilities
The view organizes security posture into four progressive ingress columns:
- Threats & Attack Vectors (Left Lane):
- Displays active STRIDE threat scenarios (e.g., Credential Stuffing, Volumetric DDoS, API Data Leakage).
- Shows likelihood, impact rating, category badge, and mitigation status.
- Ingress Protective Shields (Middle Lane):
- Groups security controls into standard shield classes:
authentication: MFA, SSO, Identity Federation.access_control: Web Application Firewall (WAF), API Gateways, Perimeter Firewalls.monitoring: Data Loss Prevention (DLP), SIEM ingestion, Egress inspection.cryptography: TLS termination, Card Data Tokenization, Encryption.
- Shows implementation status (
implemented,partial,planned). - Missing Ingress Shield Alert: When an internet-facing application has no protective barrier in front of it, the system automatically flags a dashed red warning banner:
Missing Ingress Shield: No perimeter protective barrier (WAF/Gateway/Firewall) protects this entry point.
- Groups security controls into standard shield classes:
- Exposed Entry Points (Right Lane - Core Assets):
- Applications and systems directly accessible from the public internet (
hop 0exposure). - Displays trust boundary badges (e.g.,
Public Internet Zone (None)), hosting environment, system container, and critical exposure level. - Embeds active Vulnerability Badges directly on the card (CVE ID, severity, CVSS score).
- If an entry point has no modeled threats targeting it, a clean placeholder badge clarifies:
No modeled threats targeting entry point.
- Applications and systems directly accessible from the public internet (
- Downstream Targets & Data Assets:
- Internal microservices, transaction queues, and customer record stores reachable from the public entry point.
Purpose & Target Audience
- Target Audience: Security Operations (SecOps), Cloud Security Architects, Application Security (AppSec) Engineers, CISO.
- Primary Use Cases:
- Zero-Trust Perimeter Audits: Identifying all applications directly exposed to untrusted network traffic.
- Shield Gap Analysis: Instantly pinpointing exposed endpoints that lack WAF, step-up MFA, or rate limiting.
- CVE Exposure Prioritization: Correlating CVSS scores with internet reachability to prioritize patching high/critical vulnerabilities.
- Threat Model Validation: Ensuring public endpoints have mapped countermeasures for all external threat vectors.
Supported Entity Types
| Entity Type | Role in Attack Surface | Description |
|---|---|---|
system, app | Exposed Entry Point | Public websites, mobile API gateways, customer portals, or downstream systems. |
trust_boundary | Security Perimeter | Network zones (e.g., Public Internet Zone, DMZ, PCI Secure Enclave). |
control | Ingress Protective Shield | WAF, MFA, Tokenization, DLP inspection, or rate limiters. |
threat | Attack Scenario | STRIDE threats targeting public ingress points. |
vulnerability | Exposure Flaw | Software weaknesses, CVEs, and CVSS severity ratings. |
data_object | Target Asset | Sensitive customer KYC records, ledger transactions, or card data at risk. |
actor | External Origin | Customer personas, cardholders, or untrusted external actors. |
Supported Relationships & Verbs
The attack_surface view type supports the following relationship verbs:
| Relationship Verb | Source Entity | Target Entity | Meaning |
|---|---|---|---|
encloses | trust_boundary | app, system, actor | Boundary containment (e.g., public internet zone). |
targets | threat, vulnerability | app, system, infra | Active attack vector or exploitable software flaw. |
protects | control | app, system, data_object | Protective barrier directly defending an entry point. |
mitigates | control | threat, risk_scenario | Countermeasure mitigating a specific attack scenario. |
flows_to | actor, app | app, system | Ingress network request flow or downstream propagation. |
reads, writes | app | data_object | Data access by the public-facing application. |
depends_on | app, control | infra, system | Supporting infrastructure dependencies. |
Declarative Inclusion Mechanics
Rather than manually listing every single threat, control, and CVE, the attack_surface view projection leverages enclosure closure and verb-directed traversal:
1. Structural Enclosure Discovery
The view type has IncludeEnclosesInStructuralClosure: true and ClosureDepth: One. Including a perimeter trust boundary automatically admits all enclosed applications:
include tb_public_internet
(Automatically discovers all public-facing apps without needing to list each one individually).
2. Verb-Driven Adjacency Traversal
include_verb targets incoming: Automatically admits all threats and vulnerabilities that have an incomingtargetsedge to any in-scope entry point.include_verb protects incoming: Automatically admits all security controls that directly protect any in-scope entry point.
3. Exclusions
Use exclude statements to omit internal child components or specific out-of-scope applications:
exclude component
exclude app_internal_tool
Complete DSL Example
views {
attack_surface attack_surface_view "Internet-Facing Attack Surface" {
description "External attack surface analyzing public-facing applications, trust boundaries, protective controls, threats, and vulnerabilities."
tags ["Security", "Attack Surface", "Perimeter"]
# 1. Seed the perimeter trust boundary (automatically includes enclosed apps)
include tb_public_internet
# 2. Traverse incoming threats, vulnerabilities, and protective controls
include_verb targets incoming
include_verb protects incoming
# 3. Explicitly include multi-hop controls or isolated vulnerabilities if needed
include control_dlp
include vuln_mortgage_file_upload
# 4. Prune child components and out-of-scope applications
exclude component
exclude app_mortgage_origination
# Layout orientation
auto_layout TopToBottom
}
}
Interactive Features & Quick Filters
The rendered web UI includes specialized toolbar controls tailored for security teams:
- Quick Filters:
All: Full perimeter attack surface.Unshielded: Filters for entry points with a Missing Ingress Shield.Reachable CVEs: Isolates applications with unpatched CVE vulnerabilities.Open Threats: Highlights entry points targeted by unmitigated STRIDE threats.Crown Jewel Paths: Traces external paths directly leading to sensitive data objects (PII,PCI).
- Severity Multi-Select: Toggle
Critical,High,Medium, andLowexposure items. - Export Capabilities: One-click export to SVG diagram or download the vulnerability register as a structured CSV report.