Skip to main content

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​

Click to explore
attack_surface view visual diagramattack_surface view visual diagram

Attack Surface View illustrating public ingress entry points, protective perimeter shields, and active vulnerabilities

The view organizes security posture into four progressive ingress columns:

  1. 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.
  2. 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.

  3. Exposed Entry Points (Right Lane - Core Assets):
    • Applications and systems directly accessible from the public internet (hop 0 exposure).
    • 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.

  4. 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 TypeRole in Attack SurfaceDescription
system, appExposed Entry PointPublic websites, mobile API gateways, customer portals, or downstream systems.
trust_boundarySecurity PerimeterNetwork zones (e.g., Public Internet Zone, DMZ, PCI Secure Enclave).
controlIngress Protective ShieldWAF, MFA, Tokenization, DLP inspection, or rate limiters.
threatAttack ScenarioSTRIDE threats targeting public ingress points.
vulnerabilityExposure FlawSoftware weaknesses, CVEs, and CVSS severity ratings.
data_objectTarget AssetSensitive customer KYC records, ledger transactions, or card data at risk.
actorExternal OriginCustomer personas, cardholders, or untrusted external actors.

Supported Relationships & Verbs​

The attack_surface view type supports the following relationship verbs:

Relationship VerbSource EntityTarget EntityMeaning
enclosestrust_boundaryapp, system, actorBoundary containment (e.g., public internet zone).
targetsthreat, vulnerabilityapp, system, infraActive attack vector or exploitable software flaw.
protectscontrolapp, system, data_objectProtective barrier directly defending an entry point.
mitigatescontrolthreat, risk_scenarioCountermeasure mitigating a specific attack scenario.
flows_toactor, appapp, systemIngress network request flow or downstream propagation.
reads, writesappdata_objectData access by the public-facing application.
depends_onapp, controlinfra, systemSupporting 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 incoming targets edge 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, and Low exposure items.
  • Export Capabilities: One-click export to SVG diagram or download the vulnerability register as a structured CSV report.