Criticality & Exposure
Every asset carries a business criticality and an internet exposure. They put vulnerabilities in context: the same CVE weighs more on a public production server than on an internal test VM.
Criticality Values
Criticality is one of critical, high, medium, low or unset. Collectors never write it: it is either set by a manager or derived from the environment.
- critical, high, medium, low: an explicit value set manually, in bulk from the inventory or for a single asset via PATCH /api/v1/assets/{uid}/ (there is no per-asset control in the UI)
- unset (the default): no explicit value, the effective criticality is derived from the environment
Derivation from the Environment
When the criticality is unset, the effective criticality comes from the kind of the deployment environment the asset belongs to, and is marked as derived. The asset page shows it with the badge "Derived from environment"; an explicit value shows "Manual".
- production environment: high
- staging environment: medium
- any other kind (test, demo, development, custom) or no environment: low
Note: Assigning the asset to another environment changes a derived criticality immediately; an explicit value is kept.
Locks
Both values have a lock. Setting a criticality other than unset locks it (criticality_locked=true); clearing it back to unset removes the lock. Setting the internet exposure manually locks it (exposure_locked=true) and stores the evidence [{"rule": "manual"}]. The hourly exposure computation never overwrites a locked exposure: unlock it to let the rules decide again.
Internet Exposure
The internet_exposed field is yes, no or unknown. The compute_exposure task runs every hour on the active assets, skips the locked ones and stores the evidence that led to yes. It only writes assets whose value or evidence changed.
- yes: at least one rule produced evidence; the evidence list explains why
- no: the asset has at least one valid IP address and none of them is public, and no rule matched
- unknown: the asset has no IP address at all (for example a Kubernetes deployment) and no rule matched; nothing is known about its reachability
- When an asset stops matching every rule (for example its public IP is removed) it goes back to no or unknown and its evidence is cleared

Exposure Rules
Public IPs are globally routable addresses: private, loopback, link-local, carrier-grade NAT and reserved ranges do not count. IPs are read from the discovery attributes (ip_address, ip, public_ip, load_balancer_ip, public_ips, public_ip_addresses, external_ips, load_balancer_addresses, ip_addresses, management_ips, network.ip_addresses, addresses); outbound_ip_addresses is ignored.
- Public IP (public_ip): the asset has public IP addresses (up to 10 are listed)
- Linked public IP (public_ip_asset): an active dependency of any type links the asset to an active public IP resource (AWS Elastic IP, Azure Public IP, DigitalOcean reserved IP) with a public address. Links inferred by IP or host matching (agent connections, config and environment references, traces, AI inference) do not count: they show that the asset talks to that address, not that the address is attached to it
- Public frontend (public_frontend): a load balancer, gateway or ingress (or a Kubernetes service of type LoadBalancer) is public when it has a public IP or an internet-facing scheme (AWS scheme internet-facing, GCP load_balancing_scheme EXTERNAL…). A frontend that is public because of its IP shows the public_ip (or public_ip_asset) evidence; the public_frontend evidence is recorded only for frontends made public by their scheme
- Behind public frontend (behind_public_frontend): assets reached from a public frontend through load_balances or ingress routes_to dependencies, up to 4 hops; the nearest frontends are listed (at most 5)
- Listening on all interfaces (listening_all_interfaces): a host with a public IP (its own or a linked public IP resource) has sockets listening on 0.0.0.0 or ::, or a container publishes ports on all interfaces and runs on such a host (up to 20 ports). For hosts this rule adds detail (the ports) to an asset already exposed by its public IP. Only TCP LISTEN sockets reported by the agent count
Setting Criticality in Bulk
In the Asset Inventory, managers and admins select assets with the row checkboxes, click "Set criticality" in the selection bar, choose Critical, High, Medium or Low and click Apply. "— Clear (derive from environment) —" sets unset and removes the lock. Only the selected assets are changed (no cascade to child assets). Viewers do not see the button.

API
The asset list and detail endpoints return criticality, criticality_locked, effective_criticality, criticality_derived, internet_exposed and exposure_locked; the detail also returns exposure_evidence. PATCH /api/v1/assets/{uid}/ accepts criticality, criticality_locked, internet_exposed and exposure_locked. Bulk updates use POST /api/v1/assets/bulk-criticality/. Both PATCH and bulk require a manager or admin role. For the bulk endpoint, unknown ids are ignored and not counted in updated, an invalid value or an empty list returns 400, a viewer gets 403.
curl -X POST https://idp.example.com/api/v1/assets/bulk-criticality/ \
-H "Authorization: Bearer $TOKEN" -H "Content-Type: application/json" \
-d '{"asset_ids": [12, 15], "criticality": "critical"}'
# {"criticality": "critical", "requested": 2, "updated": 2}