Skip to main content
Everything OASM knows about an attack surface lives in PostgreSQL as a small number of related entities. This page maps them, explains how raw scanner output is merged into them, and describes the rules that keep the data consistent across thousands of re-scans. For how a job produces those results, see Job registry. For how the data is queried, see Attack Surface Query engine.

The entities

Deleting a target removes its assets, and with them services, responses and findings. Assets have no delete of their own; they can be disabled, which keeps their history but stops them from being scanned.

From scanner output to rows

Raw results reach the data adapter, a component of the core API that maps each job category onto the entities above: The merge is designed to be replayed safely:
  • Idempotent writes. Assets, services and URLs are inserted with conflict handling on their natural keys, so re-reporting a host or a port never duplicates it — it only refreshes its lastSeenAt.
  • Large batches are chunked to stay under PostgreSQL’s bind-parameter limit, so a run with tens of thousands of hosts merges in one pass.
  • Events after commit. asset.discovered, vulnerability.detected and vulnerability.resurfaced are published to the event bridge only after the rows are committed, once per batch rather than once per row. Consumers such as project scope rules, issue rules and notifications can therefore always read what the event describes.
  • New assets are enabled or disabled according to the workspace setting for auto-enabling discovered assets. See Assets.

Finding identity

A scanner reports the same finding again on every run, so the platform needs a stable identity to tell “seen again” from “new”. Every vulnerability has a fingerprint derived from the finding name, the asset and the tool. The fingerprint is unique: re-detection is an upsert on it, never a new row. For findings in code repositories, the connector’s own fingerprint (which pins file and line) is part of the identity, so two leaks of the same secret type in different files stay separate findings.

Fields a scanner cannot set

Lifecycle and triage fields — detection status, review status, fix claims, due dates, AI analysis, sources — are stripped from connector output before the merge. Only the platform stamps them. A connector, however it is written, cannot close a finding, approve itself or move an SLA date.

Finding lifecycle

The user-facing behaviour is described in Vulnerability lifecycle. Underneath it, three mechanisms do the work:
  • Re-detection is the conflict clause of the merge. It refreshes the scanner-owned columns, resets the miss counter, counts the detection once per run, moves New or Resurfaced to Active, and moves Fixed to Resurfaced — clearing the fix and restarting the SLA when the workspace says so. Columns the new report leaves empty keep their stored value.
  • Auto-close uses a scan scope key: a hash of the asset, tool, service, inputs, configuration and profile of the scan. Only a later scan with the same key can count a miss, and only after the configured number of consecutive misses does the finding move to Fixed. A narrower scan — another template set, another port — never closes anything. Findings without a key (AI-proposed or manual) are never auto-closed.
  • The timeline records transitions and user actions only, not every re-detection, so a finding seen ten thousand times still has a readable history.

AI proposals

Findings proposed by the Security Agent enter with a review status of pending review. Their fingerprints live in a separate namespace, so they can never collide with a scanner finding. Until a reviewer approves them, they are excluded from every count, and the re-detection path never touches them. At proposal time the platform checks each piece of evidence the agent cites against the stored tool output and records the verdict for the reviewer.

One definition of “open”

A finding is open when it is approved, its status is New, Active or Resurfaced, and it has no unexpired dismissal or risk acceptance. That single condition is shared by the dashboard, the vulnerability list, reports, projects, targets and Attack Surface Query, which is why their numbers always agree. The same is true of the security score: one formula serves both the dashboard and PDF reports.

From findings to issues

The issues consumer of the event bridge turns finding events into remediation work:
  • vulnerability.detected runs the issue rules: an open, approved finding that matches a rule joins the open issue with the same group key, or opens a new one. A rule can only raise priority or pull a due date earlier.
  • vulnerability.resurfaced reopens a resolved issue linked to the finding.
  • vulnerability.fixed resolves an open remediation issue once every linked finding is finished — fixed, dismissed, or a rejected AI proposal.
Every automatic change writes a system comment on the issue in the same transaction, and status changes are conditional updates, so a redelivered event changes nothing.

Job registry

How results arrive and are staged before the merge

Attack Surface Query engine

Query every entity on this page with one JSON language

Tenancy and access control

How the workspace boundary is enforced on these tables

Vulnerabilities

The lifecycle as users see it