Asset Topology Graph
The Asset Topology Graph takes any asset as the root node and expands its relational subgraph on demand: starting from a domain, you can quickly pull out all subdomains, resolving IPs, open ports, web applications, API endpoints, and known vulnerabilities — a complete attack-surface view of that asset.
Unlike the traditional "one big chart per project", the graph adopts a root-oriented exploration model — data always revolves around the asset you care about, avoiding the performance issues of rendering a huge graph and never losing critical relations due to sampling truncation.
1. Entering the Graph
The graph has no standalone menu. There are two contextual entries:
- Asset detail entry (recommended): open the Asset Detail Drawer from any asset list and switch to the "Relation Graph" tab (a sibling of "Properties") — the subgraph renders rooted at the current asset, with stats cards, root switching and depth control;
- Project workbench entry: open the target project's Project Workbench and switch to the "Asset Graph" tab.
The workbench entry automatically loads a subgraph using the most recently created domain as the default root (falling back to other recent assets when no domain exists); the asset detail entry roots the graph at the current asset.
2. Selecting the Root Asset and Expansion Depth
2.1 Root Asset Selector
The search box at the top supports remote keyword search across all 8 asset types (domain, subdomain, IP, port, web, API, vulnerability, company). Selecting any asset switches the exploration start point. Features:
- Keyword search: type a fragment of a domain, IP, title, or vulnerability name — matching candidates are returned per type;
- Quick start: when no root asset is selected, the empty state lists recently created assets for one-click start.
2.2 Expansion Depth
BFS expansion with 1~3 levels is supported (default 2). Taking a domain at depth 2 as an example:
Domain (root)
├─ Subdomain ← Level 1
│ └─ Resolving IP ← Level 2
└─ Related vulns ← Level 1The graph reloads automatically when the depth changes. Each response returns at most 300 nodes; when exceeded, a truncation notice appears at the top — switch to a more focused root asset or reduce the depth.
3. Two Visualization Views

3.1 Relationship Graph (Force-Directed) — Default
- Visualization: A dynamic network graph where nodes are automatically laid out via physics simulation.
- Use Case: Observing multi-directional relations between assets and identifying hub nodes (e.g., an IP resolving many subdomains, or a web app serving a large number of API endpoints).
- Interaction: Scroll wheel to zoom, drag nodes to reposition, and toggle node categories via the legend at the bottom.
3.2 Attack Chain (Hierarchical Tree)
- Visualization: A hierarchical tree spreading downwards from the root asset (left → right).
- Use Case: Tracing a single business chain's ownership structure:
Domain→Subdomain→IP→Port→Web→API/Vulnerability. - Nodes connected upward from the root (e.g., the parent company) are grouped under "Other Relations".
4. Node Types and Visual Indicators
4.1 Node Palette & Legend
| Type | Color | Description |
|---|---|---|
| 🏢 Company | Blue #3b82f6 | Organization layer |
| 🌐 Domain | Cyan #06b6d4 | Domain assets |
| 📡 Subdomain | Green #22c55e | DNS records layer |
| 🖥️ IP | Orange #f97316 | Public IPs highlighted in orange |
| 🔌 Port | Yellow #eab308 | High-risk service ports get a red border |
| 🌐 Web | Purple #a855f7 | Application layer |
| 🔗 API | Pink #ec4899 | Endpoint layer |
| ⚠️ Vulnerability | Red #ef4444 | Sized by CRITICAL/HIGH/MEDIUM |
On edges, vulnerability links are drawn as red dashed lines, clearly distinguished from other entity relations (such as resolves to, opens port, hosts web).
4.2 Risk Highlighting
- Vulnerability nodes with CRITICAL/HIGH severity appear as large red nodes;
- High-risk service ports (SSH, Redis, MySQL, etc.) carry a red border;
- Public IPs are highlighted in orange, hinting at exposure.
5. Interaction and Drill-down Analysis
The graph follows a select-first interaction model:
- Node Hover: A tooltip shows the asset name, type, severity, and an action hint.
- Single Click → Select: The node and its one-hop neighbors are highlighted immediately while the rest are dimmed; the attack path from the root asset to the selected node is highlighted with a thick amber line (the info card shows the hop count) — answering "how is this vulnerability reached from the domain" at a glance; a node info card floats in at the top-right of the canvas.
- Node Info Card: Shows the selected asset's key attributes (severity, vulnerability type, service, public/private, risk level) with three actions:
- Expand relations: one-hop incremental expansion, merged into the graph (deduplicated); the force layout preserves existing node positions without reshuffling the whole graph;
- View details: opens the full Asset Detail Drawer (properties + paginated relation drill-down);
- Set as root asset: reloads the subgraph rooted at this asset, no need to go back to the top search box.
- Double Click → Expand directly: equivalent to the info card's "Expand relations"; the node is also selected on double-click.
- Expanded marker: expanded nodes carry a gray border and the info card shows an "Expanded" state, avoiding repeated exploration.
- Export image: the toolbar download button exports the current graph as a 2x-resolution PNG.
- Statistics Cards: the Project Workbench entry shows project-level accurate statistics at the top (critical/high vulnerabilities, high-risk ports, public exposure, total assets — full COUNT queries, not sampling); the asset detail drawer entry hides them by default to focus on the current asset's relations.
6. MCP Tool (AI Integration)
External AI agents can leverage the same capability via the testnet_query_asset_graph tool:
testnet_query_asset_graph(projectId, rootType, rootId, depth)- Without a root node, or with
statsOnly=true, only project-accurate statistics are returned; - With
rootType+rootId, a BFS subgraph rooted at that asset is returned (nodes/links, edges carry arelationfield:HAS_DOMAIN/HAS_SUBDOMAIN/RESOLVES_TO/HAS_PORT/HOSTS_WEB/HAS_API/HAS_VUL).
REST endpoints: GET /api/v1/asset/graph (subgraph), GET /api/v1/asset/graph/expand (incremental expansion), GET /api/v1/asset/graph/search (root search), GET /api/v1/asset/graph/stats (accurate stats).
Related Documentation
- Asset Models — 8 core asset types and topology relationships
- Asset Overview — Common operations and tag management
- Asset Operations — Batch import/export and change history