Skip to content
RoadmapM0P0–P1
100%
Done
45
In progress
0
Planned
0

M0 — Core integrity, architecture & UX foundation ​

CORE — Shared application services [P0] ​

  • Inventory the current GUI, REST and MCP features; reconcile mock versus implemented behavior.mock data removed from the interface (fb462bc); every REST route, MCP tool and GUI call site is declared in the capability manifests and the generated parity matrix, which test_parity.py and python -m scripts.parity --check (CI) fail on when anything is undeclared or stale.
  • Extract or consolidate shared domain services for vaults, assets, captures, scans, templates, findings and settings.routers and MCP tools call the same services (app/services/, facades such as FileServices, ReportServices, PayloadServices), which own validation, permissions (require), scope checks and commits; repositories own queries (7fafb8f, docs/architecture.md).
  • Version public API contracts and use generated or validated frontend types.the API is versioned under /api/v1; python -m scripts.api_types generates frontend/src/api/generated/schema.ts from the OpenAPI document (CI fails when it is stale) and frontend/src/api/contract.ts checks the interface's types against it at compile time (its first run found and fixed four loose response fields).
  • Define stable resource identifiers, pagination, filtering, sorting and structured errors.Progress: docs/reference/api-conventions.md defines identifiers (stable integer ids, vault-scoped addressing, [[kind:id]]), lists, filters, sorting and the error body; every error, request validation included, now answers {error: {code, message, details}} (validation problems under details.errors); paged lists now share one contract, next_cursor passed back as cursor (numeric continuations get an opaque token from app/api/pagination.py, intruder results accept cursor), with the older names kept for compatibility (test_pagination.py).
  • Implement explicit long-running job states: queued, running, paused where supported, cancelled, failed and completed.scans: queued, running, completed, cancelled, failed (pausing is not supported by the signature engine and is documented as such); Intruder attacks: draft, running, paused, completed, cancelled, failed; Agent Bridge tasks with their own lifecycle (docs/agents/bridge-protocol.md).
  • Add cancellation, timeout, retry, idempotency and restart recovery semantics.cancellation of scans, attacks, Bridge tasks and provider turns; intercept, request and provider timeouts; Intruder retries after network errors and one provider retry for transient errors (test_provider_runtime.py); idempotent Bridge sends and relayed replies (test_bridge_messages.py, test_mcp_channel_relay.py) and idempotent MCP tools marked as such; restart recovery for scans (test_scan_recovery.py), attacks (test_intruder_control.py) and Bridge tasks (test_bridge_tasks.py).
  • Stream real events and progress with reconnect/resume support; never simulate production activity.realtime channel with reconnect, resync and stale-socket guards (92f8f7b, fb462bc); stores keep data across reconnects (5a51ca1).
  • Provide consistent service health, capability discovery and diagnostic information./system/health (liveness), /system/info and MCP system_info (version, engines, proxy), the generated GUI/REST/MCP parity matrix as capability discovery, and Diagnostics (Phase H): /system/diagnostics reads the database and its migration against the code's head, file storage writability, disk space, scan workers, background tasks and the proxy, user only, shown in Settings → Diagnostics with Copy report (tests/test_diagnostics.py, docs/reference/diagnostics.md).
  • Introduce database migrations, transactional writes and backward-compatible project upgrades.Alembic migrations applied by run.py (92f8f7b, f768853); services own the commit.
  • Store binary artifacts separately from metadata; provide integrity checks and bounded storage.Vault files are content-addressed on disk apart from their rows, with SHA-256 verification on read and on request, per-file and per-vault quotas and revision bounds (1df0fe3, tests/test_files_*.py); captured request and response bodies moved out of flow rows into a content-addressed body store (one row per SHA-256, shared by every flow with the same content, migration b7e2d4f8a1c6 verified to keep every body byte for byte), with a full integrity check, orphan removal on every delete, and storage bounded by the body limit, the memory budget and retention by age and size (app/models/flow_blob.py, app/repositories/flow_blobs.py, test_flow_blobs.py).
  • Define retention, deletion, archival, backup and restore policies.docs/reference/backup.md (English and Russian): what is kept and for how long, what archiving and deleting do, and backups: python -m scripts.backup create|verify|restore writes one archive (online SQLite snapshot, file contents, configuration key, optional CA) with a SHA-256 manifest; restore verifies every member first, refuses unsafe paths and links, and moves existing data aside instead of deleting it (app/core/backup/, test_backup.py); PostgreSQL is backed up with pg_dump.
  • Add per-vault isolation and prohibit accidental cross-vault data access.every service resolves objects through the vault of the route; isolation suites per module (test_annotation_isolation.py, test_assets_isolation.py, test_comparisons_isolation.py, test_files_isolation.py, test_intruder_isolation.py, test_notes_isolation.py, test_payload_isolation.py, test_repeater_isolation.py, test_reports_isolation.py); tokens are bound to vaults at the MCP boundary; the Phase H security review closed the remaining path, agent requests to the workstation's own API.

POLICY — Authorization & research scope [P0] ​

  • Separate asset discovery, explicit testing authorization, scope membership and bounty eligibility in the data model.discovered assets (research_assets) record existence only; scope membership is the vault's scope entries (scope_entries); bounty eligibility is a field of each entry; testing authorization is the engagement rules and the emergency stop, decided by the gate per request; agents cannot turn any of the others into authorization (docs/design/engagement-safety.md).
  • Support typed scope entries: host/domain, URL/path, IP/CIDR, application identifiers and other platform-specific asset types.entry kinds host, wildcard, ip, cidr, url (scheme, host, port and path prefix, matched at segment boundaries), app and other (no traffic) (migration c3e7a1d5f9b2, app/core/scope_entries.py, test_scope_entries.py, test_scope_api.py).
  • Preserve exact provider rules, exceptions, restrictions, effective dates and provenance.each entry keeps the program's wording (note), its effect (exclusions win), eligibility, source (manual or import:<platform>), who added it, and first and last days; the scope in effect follows the dates.
  • Normalize domains, internationalized names, IPs, ports and URLs without silently widening scope.patterns refuse anything matching more than written (*example.com), names compare in punycode, IPv6 brackets and trailing dots are ignored; URL entries normalize scheme, host, default ports, dot segments, repeated slashes and percent-encoding, and a URL entry never admits its bare host (test_scope_patterns.py, test_scope_entries.py).
  • Apply explicit exclusions before allowances and reject ambiguous authorization.ScopePolicy: out rules win (92f8f7b, tests/test_scope.py).
  • Re-evaluate authorization on destination changes, redirects and newly resolved endpoints.every redirect hop is re-checked for engine traffic (92f8f7b, tests/test_engines.py) and Intruder (sender hook); when a vault excludes IP addresses or ranges, every request checks what its host resolves to now and is refused when any address is excluded (app/core/scope_resolve.py, test_scope_api.py).
  • Define permitted operations, test windows, request budgets and engagement-specific rules.per-vault engagement rules (active testing, time zone, dates, windows, daily request budget counted per request), versioned with the scope, enforced for every scan request, attack request, Repeater send and replay (app/core/engagement/, app/runtime/engagement.py, test_engagement_rules.py, test_engagement.py, docs/guides/vaults.md).
  • Enforce controls at the backend execution boundary for every relevant interface, not only in the frontend.REST and MCP call the same services and scope checks (92f8f7b, 7fafb8f, tests/test_mcp.py).
  • Prevent automatic expansion of active testing permission from discovered assets or imported traffic.scope changes only through a vault update; discovered assets, imported HAR traffic and captured hosts are marked in or out of scope but never added to it; agents may narrow a scope but never widen it, and a vault an agent creates starts with active testing off (test_mcp.py).
  • Treat provider scope changes, stale rules and expired authorization as explicit events requiring revalidation.every scope or rules change bumps the vault's policy version, recorded with each decision; a dated entry that starts or ends recomputes the scope in effect and is announced as scope.expired; running attacks re-read the scope and every request is checked against the scope in effect; the engagement's own dates refuse active work outside them.
  • Provide an immutable-enough audit trail of authorization decisions, actor, policy version and outcome.authorization_decisions: every scan, attack start or resume, Repeater send and replay, allowed or refused, with actor and agent, host, operation, the vault's policy version and the reason; written in its own transaction so refusals are kept; append-only through the API, newest 50,000 kept; listed on the vault page and through engagement_decisions.
  • Add an emergency stop, revocation propagation and safe cancellation for running jobs.emergency stop (/system/halt, /system/resume, user only): scans cancelled, attacks paused at their place, Repeater sends cancelled, every active entry point refused with engagement_halted while on, kept across restarts, banner and palette in the interface (test_safety.py); revoking a token withdraws its Bridge work, closes its streams, pauses its agents' running attacks and cancels their scans (test_engagement.py).
  • Ensure capture, read-only inspection and active testing are distinct permissions.for agents, separate grants (http_evidence.read for inspection, testing.execute for sending); per vault, active testing can be turned off while capture and inspection go on (engagement rules), and the emergency stop does the same everywhere at once.

SECURITY — Product hardening [P0] ​

  • Default local services to loopback, authenticate any intentionally exposed control plane and prevent open-proxy operation.Progress: the API, the interface and the proxy bind loopback by default, and Docker publishes them on loopback only; the proxy never becomes an open proxy: a user-chosen exposed address requires Proxy-Authorization from other machines with a password created once (app/core/proxy/handler/access.py, test_proxy_access.py); development MCP mode is refused on non-loopback binds. An exposed REST API requires the access token: with PHANTOM_ACCESS_TOKEN set every API request and the realtime socket need the HttpOnly HMAC session cookie from sign-in or a bearer token, failed sign-ins are throttled, and the interface shows a sign-in screen; the launcher refuses a non-loopback --host without a token and now passes its host as API_HOST, so the development MCP mode refusal sees the real bind address (app/api/access.py, test_access_token.py, docs/reference/access.md).
  • Verify upstream TLS by default; surface exceptions clearly and restrict them to deliberate, authorized configuration.one policy (app/core/tls/) for proxy, replay and scans: system CA store, insecure_hosts (exact or *. suffix), allow_insecure, ca_bundle, saved under proxy.tls (GET/PUT /api/v1/proxy/tls); failures give a 502 with the fix and are recorded on the flow or scan (b8933c2, UI 18111f1, tests/test_upstream_tls.py, tests/test_upstream_tls_scan.py, tests/test_tls_policy.py).
  • Protect CA private keys with restrictive permissions; export only public CA certificates.ca-key.pem written atomically with 0600 in a 0700 directory, older files tightened on load, only ca.pem served; Windows relies on the profile ACL, no encryption at rest (b8933c2, tests/test_proxy_certs.py).
  • Store API tokens and credentials in an OS keychain or encrypted secret store; use secret references in records.provider credentials are encrypted with the configuration key in a SecretStore (a keychain store fits behind the same interface) and records keep only a four-character hint (app/services/providers/secrets.py, test_provider_secrets.py); agent tokens are kept only as an HMAC digest under a derived pepper (app/core/agents/tokens.py); the CA key and configuration key are owner-only files.
  • Mask credentials, cookies, authorization headers and sensitive fields in views, logs, previews and exports.shared frontend redaction service across all views, scan logs, previews and copy/cURL exports (74d4400, src/utils/__tests__/secrets.spec.ts); server-side redaction with shared vectors and user-only MCP and export policies (a64834b, test_redaction.py, test_mcp_redaction.py); file, note, report and attachment records masked for agents, and file reads redacted before slicing (Phase H).
  • Require explicit reveal and distinguish display masking from data encryption and actual deletion.per-view reveal; editors read-only while secrets are hidden; captured bytes never changed (74d4400).
  • Isolate untrusted content previews from application privileges, scripts and external resource loading.HTML preview in a sandbox="" iframe (no scripts), images via data URLs (006ee60).
  • Apply bounds to request bodies, decompression, parsing, files, queues and background resources.body capture limit, 8 MiB decompression cap per coding, bounded capture queue and scan client body cap (92f8f7b, f768853, tests/test_proxy_content.py); every API request body bounded per route, chunked bodies counted as they arrive (app/api/body_limit.py, test_body_limit.py); file sizes and per-vault quotas, revision and note bounds; HAR imports at most 50 MiB; capture memory budget; retention of Bridge events and engagement decisions; per-vault limits on running attacks, sections, entries and the like.
  • Add dependency scanning, secret scanning, SBOM and release integrity checks..github/workflows/security.yml: pip-audit on the backend requirements, npm audit on the interface's runtime packages (high and critical) and the docs site (critical), gitleaks over each push or pull request (.gitleaks.toml allows only the test suites' made-up credentials), CycloneDX SBOMs for the backend and the interface kept as artifacts with their SHA-256; weekly scheduled run; Dependabot for pip, npm and Actions.
  • Define a security disclosure policy and document the supported deployment threat model.SECURITY.md (private reporting through GitHub, supported versions, scope) and docs/reference/threat-model.md (supported deployment, assets, actors with their guarantees, what is not protected, where each guarantee is tested), in English and Russian.

UX — Phantom design system [P0/P1] ​

  • Preserve the current black/neutral Phantom visual identity and vermillion Torii mark.Kuro theme (006ee60).
  • Consolidate theme tokens, spacing, typography, focus styles, semantic colors and iconography.styles/tokens.css mapped into Tailwind/shadcn-vue in styles/app.css; self-hosted fonts (006ee60).
  • Validate contrast, font rendering, keyboard navigation and accessibility across all states.Token contrast is held to AA in both themes by contrast.spec.ts; a sweep of the running app (phantomA11ySweep(), src/utils/a11ySweep.ts) runs axe-core with real contrast over every page in both themes, the command palette and every create dialog (48 states, no violation after fixing unlabelled fields, missing page headings, names that did not start with their visible text, and three low-contrast labels); a "Skip to content" link leads keyboard users past the navigation; fonts are self-hosted with font-display: swap and smoothing set (docs/reference/accessibility.md).
  • Use restrained rounded controls and panels; favor legibility over excessive density or decoration.one radius scale (--r-1 6px to --r-4 14px, wider only for the palette and chat bubbles), borders-and-tonal-surface depth, Instrument Sans and Plex Mono with contrast checked in both themes (37f3509, docs/reference/accessibility.md).
  • Implement resizable/collapsible panes, persisted layout preferences and compact workspace tabs.sidebar, request panel, inspector, comparer and repeater splits; preferences only in localStorage (006ee60, 952c330).
  • Build a consistent command palette, shortcut registry and contextual actions.command palette (Ctrl/⌘ K) with navigation, actions, vaults and jumps; one shortcut registry (utils/shortcuts.ts) read by the rail, the palette and the Keyboard shortcuts sheet (?), tested in shortcuts.spec.ts; right-click and ⋯ menus on every object row from one item list per kind (edd6cdd, utils/menus/, menus*.spec.ts).
  • Standardize virtualized tables, filters, sorting, loading, errors, empty states and confirmations.One standard (docs/reference/tables.md): long lists virtualized with @tanstack/vue-virtual; sortable headers through PSortHeader with aria-sort and natural client sorting (utils/tableSort.ts); loading, failed-with-retry and empty states through PTableStatus (findings, assets, programs, files; History keeps a column-shaped skeleton and gained the same failed state), with each list's store keeping the load error; filters as chips with a distinct "Nothing matches"; destructive actions confirmed in the row (PRowConfirm) (tableSort.spec.ts, a11y.spec.ts).
  • Provide accessible light/dark or additional themes if supported by the design system, without hardcoded colors.Dark, Light and System in Settings → Appearance, applied before first paint, contrast-checked, about 140 hardcoded colours turned into tokens (37f3509).
  • Use motion only when it improves clarity; respect reduced-motion preferences.global prefers-reduced-motion rule plus per-component fallbacks (006ee60).
  • Keep actual service state visible through compact indicators and diagnostics rather than decorative status elements.the rail's proxy light shows whether traffic is captured here, elsewhere or not at all; Settings carries a mark only while Diagnostics finds a warning or failure, and Settings → Diagnostics shows every component as read now (Phase H, docs/reference/diagnostics.md).

Exit gate: Real backend data is the source of truth. Authorization, isolation, migrations, cancellation and secret-redaction tests pass. No fake enabled controls or simulated scan progress remain in release-ready screens.