# Asset Intelligence

Asset Intelligence is the research memory of what a target exposes:
domains, hosts, services, endpoints, APIs and technologies, each a
research object of its vault with its evidence, its relations and its
history. The inventory is derived from research the vault already holds
(captured flows, targets, scans, findings) and from inventories the
researcher imports or types; it never sends traffic. Discovery is kept
apart from permission: a discovered asset waits in the review queue, and
its scope state is computed from the vault's scope, never assumed.

The **Assets** page (rail, or `G` then `D`) is the interface; see
[Interface](#interface).
Graph data: [Graph](#graph). Contract for agents: [MCP](#mcp).

## Model

Migration `b7e5c3a9d2f8_asset_intelligence` (after `a4d7e2c9f1b6`),
additive. Types and states are plain strings (no database enum types).

**ResearchAsset** (`research_assets`, cascades from the vault), unique on
(vault, type, key).

| Field | Notes |
|---|---|
| `asset_type` | `domain`, `subdomain`, `ip`, `service`, `endpoint`, `parameter`, `api`, `technology`, `certificate`, `websocket`, `email`, `repository`, `cloud_resource` |
| `key` | Canonical key (below), the dedup identity; up to 512 characters, longer keys end in a SHA-256 |
| `value` | What is shown, e.g. `GET https://api.shop.test/users/{id}` |
| `host` | Canonical host the asset lives on (scope, filters, grouping) |
| `review` | `discovered` (queue), `accepted`, `ignored`; set by the user only |
| `scope` | `in`, `out`, `unknown`; computed from the vault scope |
| `active` | False when a rebuild found no evidence left (`removed`) |
| `first_seen_at`, `last_seen_at`, `reviewed_at` | Evidence times; review time |
| `observation_count`, `confidence`, `sources` | All observations, the bounded ones included; aggregated confidence; `{kind: {count, confidence, last_seen}}` |
| `attributes` | Type facts: service `host/port/protocol`; endpoint `method/scheme/host/port/path/parameters`; technology `name/versions`; api `kind/base/title/version` |
| `custom_fields` | Up to 32 text fields (64-char names, 1,000-char values) |
| `origin`, `actor` | First source kind; `system` (sync), `user` or `agent` |

**AssetObservation** (`asset_observations`): one row per (asset, source
kind, source ref) with `source_id`, `observed_at`, `confidence`,
`details`. Source kinds: `proxy_flow`, `scan`, `crawler`, `signature`,
`finding`, `target`, `import`, `manual`, `agent`. Source records are
referenced by id only (like note references); a deleted flow reads as
`exists: false`. Proxy observations keep 50 rows per asset; later ones
still count.

**AssetRelation** (`asset_relations`): typed, directed edge from an asset
to an asset, a finding or a target, unique per (source, relation, peer
kind, peer id), with `origin`, `sources` `{kind: count}`, `confidence`,
`observation_count`, first / last seen and `details` (a technology's
`version` on a host).

| Relation | From → to |
|---|---|
| `contains` | domain → subdomain |
| `resolves_to` | host → ip (target IP address, imports) |
| `serves` | host → service |
| `exposes` | host → endpoint, websocket, api |
| `has_parameter` | endpoint → parameter (manual / import) |
| `uses` | host → technology (version on the edge) |
| `describes` | api → endpoint |
| `affected_by` | host / service / endpoint → finding |
| `belongs_to` | host → target |

Flow evidence is not an edge: it is the asset's `proxy_flow`
observations (`seen_in`).

**AssetEvent** (`asset_events`): history `created`, `observed` (a new
source kind), `changed` (technology version: `{field, host, previous,
current}`), `reviewed`, `scoped`, `edited`, `removed`, `restored`, with
actor; the newest 100 per asset are kept.

**AssetSyncState** (`asset_sync_states`): per vault `flow_watermark`,
`synced_at`, `rebuilt_at`, last `stats`.

Annotations gain kind `asset` (bookmark, note, tags), so
`/annotations/asset/{id}` and `annotation_set` work on assets.

**The earlier `assets` table** (target-scoped, global unique hash, never
written by the application; the dev database held 0 rows) is retired,
not dropped: it stays in existing databases, ignored by `alembic check`.
The migration copies its rows of known types into `research_assets`
under the target's vault (`discovered`, origin `import`). Retiring was
chosen over evolving it because its identity (target + global hash)
cannot express per-vault dedup, and the new shape changes every column.


## Scheduled sync

Every hour (`PHANTOM_ASSET_SYNC_MINUTES`, 0 turns it off), Phantom syncs
each vault's inventory from its recorded research, exactly as **Sync**
does. It is passive: it reads the vault's own history, scans, findings
and targets and sends nothing to any target. A vault whose sync fails is
logged and tried again at the next interval. **Sync** and **Rebuild**
still run on demand.

## Passive providers

**Passive lookup…** on the Assets page asks a third-party record about a
domain, without touching the target:

- **Certificate transparency (crt.sh)**: names on certificates issued
  for the domain and below it. No account.
- **SecurityTrails**: its subdomain list for the domain. It needs your
  API key, which is stored encrypted with the configuration key, never
  shown again, and sent only to SecurityTrails.

Only domains the vault's scope allows can be looked up. Each provider
allows 50 lookups a day (attempts count too), shown next to it. Names
found become `discovered` assets observed by `provider`, with the
provider, domain and date as their source record, so every one can be
traced to where it came from. A name in a third-party record is not
permission to test: review it like any discovery. Lookups and keys are
for you only (`GET /asset-providers`, `PUT
/asset-providers/{name}/key`, `POST
/vaults/{id}/assets/providers/lookup`).

## Change history

An asset's history records what changed about it, with the value it had
before: a known host that now resolves to a new address (`resolves_to`,
from DNS imports, nmap results or observed traffic), a service whose
product or version changed (the newest observation wins), a technology
seen in a new version on a host, and every review, scope, edit,
ownership and removal. The history keeps the latest entries of each
asset (`history` in `GET /assets/{id}`).

## Ownership

Each asset records whether its owner was verified: **Unverified** (the
default), **Verified**, **Disputed** or **Not owned**, with how it was
established (DNS TXT record, HTTP file, registrar record, the program's
scope, a contract, other), a short note and when. Set it in the
inspector. The change is kept in the asset's history. Only you record it:
agents and agent transports are refused. Ownership never changes the
vault's scope; it documents what you checked
(`PATCH /assets/{id}` with `ownership`, `ownership_method`,
`ownership_note`).

## Program scope

When the vault was made from a bug bounty program, an asset's details
list the scope items of that program's latest snapshot that name the
asset's host. A URL or domain item names its host, a wildcard
`*.example.com` names the domain and everything below it, and an IP or
CIDR item names the addresses in it. Out-of-scope items are listed too,
so an exclusion is never hidden. Items of other kinds (mobile apps,
source code) never match a host. The list is read live from the
snapshot; nothing is copied onto the asset (`program_scope` in
`GET /assets/{id}`).

## Canonical keys

| Type | Key | Example |
|---|---|---|
| domain / subdomain / ip | lower-case punycode name, compressed address (IPv4-mapped IPv6 as IPv4) | `xn--bcher-kva.example`, `2001:db8::1` |
| service | `host:port/protocol` | `api.shop.test:443/https` |
| endpoint | `METHOD scheme://host:port/template` | `GET https://api.shop.test:443/users/{id}` |
| websocket | `ws(s)://host:port/template` | `wss://api.shop.test:443/live` |
| parameter | `<endpoint key>#location:name` | `GET https://a.test:443/search#query:q` |
| api | `kind:scheme://host:port/base` | `openapi:https://api.shop.test:443/v2` |
| technology | lower-case name | `ruby-on-rails` |
| certificate | SHA-256 fingerprint | 64 hex digits |
| email / repository | lower-case address; `host/owner/name` | `github.com/owner/repo` |

Host types follow the host: `example.com` is a domain and
`api.example.com` a subdomain whatever was asked. The registrable domain
uses a built-in suffix list (two-letter country codes with `co`, `com`,
`org`... and hosting suffixes such as `github.io`), not the full Public
Suffix List. Path templates: query and fragment dropped, dot segments
resolved, then numbers, UUIDs, hex runs of 16+ and 20+ character tokens
with 3+ digits become `{id}`; OpenAPI `{name}` becomes `{id}` too.

## Ingestion

**When it runs.** Explicitly: `POST /assets/sync` (or `asset_sync`).
Nothing runs on the proxy's hot path; the interface shows
`pending_flows` from `/assets/counts` and syncs when the inventory is
opened. A sync reads targets, scans and findings whole, then flows past
the watermark, 500 per committed step (at most 20,000 per call; call
again while `pending_flows > 0`). Flows are read as summary columns and
response headers, never bodies. Syncs of one vault run one at a time.

**From a flow**: the host (and domain + `contains`), the service, the
endpoint (static media and stylesheets skipped; scripts kept) with the
query's parameter names (never values), WebSocket handshakes, GraphQL
and OpenAPI entry points by path, and technologies from headers
(`Server`, `X-Powered-By`, presence headers such as `CF-Ray`, cookie
names such as `PHPSESSID`, `JSESSIONID`, `laravel_session`), table in
`app/core/assets/fingerprints.py`. Flows record no IP addresses, so
`resolves_to` comes from targets and imports only.

**From records**: a target names its host (`accepted`, `belongs_to`),
its IP (`resolves_to`) and tech stack; a scan its URL (`crawler` when
the crawler ran; the engines keep only counts, so no crawled endpoints);
a finding its affected URL (host, service, endpoint `affected_by` it,
source `signature` when it came from a template). Edges to deleted
findings and targets are dropped at the next sync.

**Idempotency**: a source record that already showed an asset adds
nothing. **Rebuild** (`POST /assets/rebuild`, user only) removes derived
observations and counts, re-reads everything, marks assets without
evidence `removed` (inactive), keeps reviews, custom fields, notes,
imports and manual entries; evidence that returns `restored` them.
Scope states are recomputed on every sync and when the vault's scope
changes (history `scoped`, event `asset.updated` action `scoped`).

**Bounds**: 50,000 assets per vault, 2,000 endpoints per host (past
them: `skipped_limit`).

## Imports

`POST /assets/import` `{format: csv|json|openapi|graphql|dns|nmap, content, dry_run =
true, review?: discovered|accepted, base_url?}`; content up to 2 MiB and
5,000 rows or operations. CSV needs `type,value` headers (`method`,
`name`, `location`, `kind`, `title` refine; other columns become custom
fields); JSON is a list or `{"assets": [...]}`. Bad rows are reported
(`errors: [{row, message}]`) and skipped. OpenAPI 3 / Swagger 2 in JSON
or YAML (aliases refused) becomes an `api` asset and one endpoint per
operation (`describes`), with parameter names and `operationId`.
A GraphQL introspection result (`{"data": {"__schema": ...}}`, with
the endpoint URL as `base_url`) becomes a `graphql` API and its POST
endpoint with the query, mutation and subscription names. DNS zone
records (`name [ttl] [class] type data`, `$ORIGIN`, `@`) give the hosts
and addresses of A, AAAA, CNAME, MX and NS records, with `resolves_to`
for A, AAAA and CNAME and the record kept as the `dns` custom field.
nmap XML (`-oX`) gives each host's addresses and names (`resolves_to`)
and its open ports as services it `serves`, with product and version;
XML that declares entities is refused. Imports bring implied parents
(host, domain, service). The observation
source is the file's SHA-256, so re-importing changes nothing. Imported
assets are `accepted` unless `review` says otherwise.

Result: `{dry_run, format, rows, valid, assets, created, existing,
relations, errors, error_count, preview: [{row, type, value, key,
exists}] (50), api: {value, version, endpoints, operations?}, batch}`.

## Analyze scripts

**Discover › Analyze scripts** on the Assets page (`POST /assets/scripts`) reads the
JavaScript already in the vault's history (the newest 300 scripts, up to
2 MiB each once decoded) and adds the endpoints they name: quoted
root-relative paths (`/api/v1/users`, `/graphql`) belong to the script's
own origin, absolute URLs to theirs. Template parts (`${id}`, `:id`)
become `{id}`; static files and fragments of minified code are left out.
The endpoints are `discovered`, linked to their host, with the script's
flow as their source, and scope-labelled like every asset, so other
sites' URLs show as out of scope. Nothing is sent. Running it again adds
only what new scripts name; a rebuild clears what it added, like other
evidence from history.

## Collect certificates

**Discover › Collect certificates** (`POST /assets/certificates`, optional
`{hosts: [...]}`) makes one TLS handshake with each in-scope HTTPS service
of the inventory at its port, and with each in-scope host without one at
443, at most 20 a run, under the same checks as Scan ports (scope,
excluded networks, engagement rules). Verification is off so expired and
self-signed certificates are read too; nothing is sent after the
handshake. Each certificate becomes a `certificate` asset keyed by its
SHA-256, with its subject, issuer, validity, whether it is self-signed
and the names it covers; the service `uses` it, and the names it covers
join the inventory as hosts it `describes` (a wildcard name adds its
domain), which often reveals hosts nothing linked to.

## Probe web services

**Discover › Probe web services** (`POST /assets/probe`, optional
`{hosts: [...]}`) sends one `GET /` to each in-scope web service of the
inventory at its own port (such as those Scan ports found), and to each
in-scope host without one over HTTPS, then plain HTTP; at most 20 a run.
Each request is a replay: the scope, the engagement rules and the
emergency stop apply, and it is kept in history. The inventory is then
synced, so the technologies the answers' headers reveal (`Server`,
`X-Powered-By` and the like), the services that answered and their
endpoints join it as with any traffic.

## Scan ports

**Discover › Scan ports** (`POST /assets/ports`, optional `{hosts: [...]}`)
tries about 80 common TCP ports on the vault's in-scope hosts in the
inventory (domains, subdomains and addresses), at most ten hosts a run.
For each host Phantom checks the scope, resolves a name to its address,
refuses an address in a network the scope excludes, and asks the
engagement rules (the emergency stop, windows and budgets, one request
per port); a host that is refused is listed with the reason. A port is
open when it accepts a connection; for services that greet first (SSH,
FTP, mail, MySQL, VNC) the greeting is read and names the product.
Nothing is sent on any port. Open ports become `discovered` services
linked to their host, like an nmap import. Scanning is the user's;
agents read the services it found.

## Find WebSockets

**Discover › Find WebSockets** (`POST /assets/websockets`, optional
`{hosts: [...]}`) sends one WebSocket upgrade request to each of a few
common paths (`/`, `/ws`, `/websocket`, `/socket`, Socket.IO, `/graphql`,
`/cable`, `/hub`, `/realtime`) of the vault's in-scope web services, at
their own ports, and of in-scope hosts without one over HTTPS and plain
HTTP, at most ten hosts a run. Each host is checked like Scan ports: the
scope, excluded networks and the engagement rules, one request per
path. A path counts only when it answers `101 Switching Protocols` with
the `Sec-WebSocket-Accept` its key requires, so a server that answers
101 to everything is not taken for a WebSocket. The connection is
closed right after the answer; no frame is sent. Paths that upgrade
become `discovered` WebSocket assets exposed by their host, with the
subprotocol the server chose. Finding them is the user's; agents read
the assets.

## Re-check on a schedule

**Discover › Re-check on a schedule** keeps the inventory current
without anyone pressing a button. It is off until you choose how often
(every 6 or 12 hours, every day, every 3 days or every week) and which
steps run: Scan ports, Collect certificates, Probe web services and Find
WebSockets, in that order. Each run goes through the same code as those
menu items, so the scope, the excluded networks, the engagement rules
and the emergency stop are checked again at that moment, host by host;
nothing approved when the plan was saved carries over. A step that is
refused or fails is shown with the reason and the next step still runs.
**Run now** runs the steps once at once.

The panel shows when the next run is due and what the last one did:
how many hosts each step reached, how many it skipped and how many
assets were new. New assets arrive as `discovered` for you to review
and raise one notification. Phantom looks for due plans every five
minutes, so a run can start up to five minutes after it is due.
Turning the re-check on, changing it and running it now are the
user's; agents read the assets it finds.

`GET /assets/recheck` returns the plan, `next_run_at` and `last_run`;
`PUT /assets/recheck` saves `{every_hours, steps}` (`every_hours` 0
turns it off); `POST /assets/recheck/run` runs it once.

## Find subdomains

**Discover › Find subdomains** (`POST /assets/subdomains`, optional
`{domains: [...]}`) tries about 300 common labels (`www`, `api`, `dev`,
`staging`, `vpn`, …) under each in-scope domain of the inventory, at most
five domains a run. It first asks for a random name: a domain that
answers has wildcard DNS (every name resolves), so it is reported and
skipped. Names that resolve are imported like Resolve names, as
`discovered` subdomains with their addresses. This asks the domains' DNS
servers about names that may not exist, so it is noisier than resolving
known names; nothing is sent to the sites themselves.

## GraphQL introspection

In the Import panel, with **GraphQL** chosen and the endpoint's URL in
the address field, **Ask the endpoint** (`POST /assets/graphql-introspection`
`{url}`) sends the standard introspection query to it. The request goes
out as a replay: the URL must be in scope, the vault's engagement rules
admit it, and it is kept in history. A schema in the answer is imported
as a GraphQL inventory (`discovered`); a server with introspection
turned off gives its reason, which is shown. Only you can ask.

## Resolve names

**Discover › Resolve names** on the Assets page (`POST /assets/resolve`, optional
`{names: [...]}`) asks the system resolver what the vault's in-scope
domains and subdomains resolve to: A and AAAA, and the canonical name
when it differs; for domains also their mail servers (MX), name servers
(NS) and TXT records. MX and NS hosts join the inventory as hosts of
their own; TXT text (SPF, verification tokens) is kept as the domain's
`txt` field. The answers are imported like a DNS zone, so the
addresses become `discovered` IP assets linked to their names
(`resolves_to`) and scope-labelled like every other asset; names that did
not resolve are listed. Only the resolver is asked, never the targets.
At most 200 names a run; names out of scope or not in the vault are not
asked. Only you can resolve; agents read the result in the inventory.

## REST

All under `/api/v1/vaults/{vault_id}/assets`. Filters (list, graph,
export): `type`, `review`, `scope`, `source`, `tag` (repeatable),
`search`, `seen_since`, `has_findings`, `active`, `bookmarked`, `host`.

| Method and path | Does |
|---|---|
| `GET /assets` | `{items: [AssetSummary], total, next_cursor}`; `sort` = `last_seen` (default) / `first_seen` / `value` / `confidence` / `observations`, `limit` ≤ 500, `cursor` |
| `GET /assets/counts` | `{total, by_type, by_review, by_scope, inactive, pending_flows, flow_watermark, synced_at, rebuilt_at}` |
| `POST /assets` | Manual asset `{type, value, method?, name?, location?, kind?, title?, review?, custom_fields?, note?}` → AssetDetail, 201 |
| `POST /assets/review` | `{ids (≤ 1,000), review}` → `{updated, ids}` |
| `GET /assets/{id}` | AssetDetail |
| `GET /assets/{id}/observations` | `{items, next_cursor}`; `source`, `cursor`, `limit` |
| `PATCH /assets/{id}` | `{review?, custom_fields? (replaces), note?}` → AssetDetail |
| `DELETE /assets/{id}` | 204; evidence, edges, history and annotation go with it |
| `POST /assets/sync`, `/rebuild` | SyncResult |
| `POST /assets/import` | ImportResult |
| `GET /assets/export` | `format=json|csv|cyclonedx`, `reveal`; export redaction policy (409 for `ask` without a choice), `X-Phantom-Redacted`, `X-Phantom-Entries`; CSV formula-safe |
| `GET /assets/graph` | GraphRead (below) |

**AssetSummary**: `id, vault_id, type, key, value, host, review, scope,
active, confidence, observation_count, first_seen_at, last_seen_at,
reviewed_at, origin, actor, sources {kind: {count, confidence,
last_seen}}, attributes, custom_fields, finding_count, bookmarked,
tag_ids, has_note`.

**AssetDetail** adds `note`, `observations` (20 newest: `id,
source_kind, source_ref, source_id, observed_at, confidence, details,
exists`), `observations_next`, `relations` (≤ 200 each way: `id,
relation, direction (out|in), peer {kind, id, label, type, missing},
origin, sources, confidence, observation_count, first_seen_at,
last_seen_at, details`), `history` (50 newest: `id, kind, actor,
details, created_at`), `links {findings, flows, scans, targets, notes}`.

**SyncResult**: `rebuild, flows_read, flow_watermark, pending_flows,
records_read {targets, scans, findings}, created, created_by_type,
observed, relations_created, removed, restored, skipped_limit,
pruned_relations, rescoped, duration_ms, synced_at`.

Events (counts and ids only): `asset.updated {action: created |
observed | updated | reviewed | imported | scoped, vault_id, count, ids
(≤ 100)}`, `asset.deleted {id, vault_id}`, `assets.synced {vault_id,
rebuild, flows_read, pending_flows, created, observed,
relations_created, removed, restored, rescoped}`.

## Graph

`GET /assets/graph?focus=&depth=1..3&limit=1..500 (200)&include_findings=true&include_targets=false` plus filters.

- With `focus`: breadth-first over stored edges, both directions, up to
  `depth`, at most `limit` nodes; the walk passes through every asset,
  `type` / `review` / `scope` / `active` decide which are returned.
- Without: the `limit` most recently seen assets the filter selects and
  the edges among them.
- Findings and targets joined by an edge become their own nodes.

`GraphRead {focus: "asset:<id>" | null, depth, nodes, edges, groups,
truncated, omitted_edges, node_limit}`. Node `{id: "asset:12" |
"finding:4" | "target:1", kind, object_id, label, level, group, degree,
missing}` plus for assets `type, review, scope, active, confidence,
finding_count` and for findings `severity, status`. `level` is the
top-down layer (target −1, domain 0, subdomain / ip 1, service / api /
certificate 2, endpoint / websocket / technology 3, parameter 4, finding
5); `group` the registrable domain (or type for host-less assets);
`groups [{id, label, node_count}]` largest first. Edge `{id: "rel:<id>",
source, target, relation, origin, sources, confidence,
observation_count, first_seen_at, last_seen_at, details}`. At most 2,000
edges. Expanding a node is another read; no request is ever sent.

Large graphs stay fluid: the graph draws only the nodes, relations and
labels the camera shows. The server bounds a graph to 500 nodes and
2,000 relations and says when it cut one. **By domain** pulls each
registrable domain's assets together, which works as clustering for
wide inventories. The same graph always settles into the same layout,
so a saved view looks the same when you open it again.

## Saved views and snapshots

**Views** in the graph's bar keeps what the graph shows under a name:
the page filters, the focused asset and depth, whether findings and
targets are drawn, the layout and the highlight. Pick a view to show it
again, **Update** it from what the graph shows now, or delete it with
its trash button. Views belong to the vault (at most 50, names unique)
and hold no graph data, so a view always reads the graph as it is now
(`GET|POST /vaults/{id}/assets/graph/views`, `PATCH|DELETE
/assets/graph/views/{view_id}`).

**Snapshot** downloads the graph as it is, with what was asked and when,
as one JSON document for an investigation record. Labels and relation
details are masked the way an asset export masks credentials
(`GET /vaults/{id}/assets/graph/snapshot`, the graph's parameters plus
`view` and `reveal`).

## MCP

| Tool | Does |
|---|---|
| `asset_list`, `asset_search`, `asset_get` | Read the inventory (redacted) |
| `asset_graph` | Graph view (labels and details redacted) |
| `asset_create` | Propose an asset: `discovered`, actor and source `agent`; an existing asset keeps its review |
| `asset_sync` | Incremental sync from stored data |
| `asset_import_preview` | Dry run only |
| `annotation_set` kind `asset` | Note, bookmark, tags |

Review decisions, custom fields, applying imports, rebuild, export and
deletion are user-only: no tool exposes them and the services refuse
them in agent calls. Values, keys, attributes, custom fields,
observation details and peer labels go through the MCP redaction policy.

## Notes

`[[asset:id]]` resolves to the asset's value in the note's vault, reads
as missing from another vault or after deletion, and counts in the
asset's `links.notes`.

## Interface

- **Filters** in the sidebar: review (the queue opens on *discovered*),
  scope and type, each with its count from `/assets/counts`.
- **Header**: search over values, sort (last or first seen, value,
  confidence, most observed) and **Sync**, which reads the research
  recorded since the last sync and says how many assets it added.
- **Rows**: type, value with its host, review, scope, the sources that
  saw it, findings and when it was last seen; inactive assets are dimmed.
  A click opens the inspector; Ctrl/Cmd+click and Shift+click select
  rows, and Accept or Ignore applies to the whole selection.
- **Row menu** (right click, or Shift+F10): open, accept, ignore, back to
  discovered (on a selection, for all of it), show the host's traffic in
  History, copy the value, delete (confirmed in the row).
- **Import…** opens a panel: paste or open a CSV, JSON or OpenAPI /
  Swagger file, **Preview** what it names (rows read and valid, assets,
  how many are already known, skipped rows with reasons, the first
  assets), then **Import**; nothing is saved before that, and imported
  assets are accepted. **Export** downloads the filtered inventory as
  JSON or CSV, secrets masked, or as recorded when the export policy
  allows it, or as a CycloneDX 1.6 BOM for asset management and
  compliance tools: technologies become `framework` components (one per
  seen version), certificates `cryptographic-asset` components,
  repositories `application` components, and hosts, services,
  endpoints, APIs, WebSockets and cloud resources `services` (URLs as
  endpoints). Phantom's type, scope, review, ownership and dates travel
  as `phantom:*` properties; parameters and email addresses stay in JSON
  and CSV.
- **Inspector**: review buttons, bookmark, tags and note, custom fields
  (your own key/value notes, saved together, up to 32), scope, confidence, first and last seen,
  observations and findings counts, sources with counts and confidence,
  attributes, relations with their peers, the latest observations
  (deleted sources marked) and history. Scope is shown, never changed
  here; it follows the vault's scope.
- **Graph** (the List / Graph switch): the filtered assets with their
  relations and, optionally, findings and targets, as a force layout.
  Drag to pan, the wheel or the buttons to zoom, Fit to frame it;
  hovering lights a node's neighbours and shows what it is with its
  strongest relations (direction, peer, confidence, sources, last seen). A click on
  an asset opens it in the inspector; Shift+click focuses the graph on
  it, with depth 1 to 3 around it, and the close button returns to the
  filtered assets. **Layout** switches between Force, **By domain**
  (nodes pulled together per registrable domain) and, while focused,
  **Rings** (one ring per step from the focused asset). Highlight marks
  matching labels. A cut graph says how
  many nodes it shows and how many relations it left out. The graph
  reads stored relations only; focusing a node never sends anything.

## Not yet

- Graph: edge details in the canvas.
- Crawler endpoints are not persisted by the scanner, so scans add only
  their base URL.
- Registrable domains use a built-in suffix list, not the full PSL.
