Skip to content
RoadmapM6P0–P2
96%
Done
24
In progress
1
Planned
0

M6 — Workflow automation, extensibility & integration contracts ​

WORKFLOW — Governed workflow engine [P2] ​

  • Visual workflow canvas with typed inputs/outputs, node configuration, validation and version history.A canvas of step cards with typed input and output ports, wiring limited to earlier outputs of the same type, an inspector generated from each node's parameters, problems marked on their step, and versions with restore (app/core/workflows/, app/services/workflows/, app/runtime/workflows.py, frontend/src/views/WorkflowsView.vue, test_workflows.py, docs/guides/workflows.md).
  • Support approved nodes for data ingestion, classification, analysis, report preparation and notifications.Eight registered nodes (select, keep severe, set status, summarize, prepare a report, notify, refresh program scope, start a scan); nothing else can run (app/core/workflows/, app/services/workflows/, app/runtime/workflows.py, frontend/src/views/WorkflowsView.vue, test_workflows.py, docs/guides/workflows.md).
  • Support manual, schedule and event triggers with explicit permissions and resource limits.Manual, schedule (15 minutes to a week) and event (scan.completed, finding.created) triggers; workflows are user-only; 30 steps, 100 workflows per vault, 2 concurrent runs and 2 minutes per step (app/core/workflows/, app/services/workflows/, app/runtime/workflows.py, frontend/src/views/WorkflowsView.vue, test_workflows.py, docs/guides/workflows.md).
  • Provide dry runs, execution history, structured logs, retries, cancellation and safe resume.Dry runs that change nothing, run history per workflow, a structured log per run, per-step retries, cancellation and resume from the first unfinished step (app/core/workflows/, app/services/workflows/, app/runtime/workflows.py, frontend/src/views/WorkflowsView.vue, test_workflows.py, docs/guides/workflows.md).
  • Require authorization checks at execution, not only when saving a workflow.Each run re-checks that the workflow exists, is on and still validates, and each step goes through the application services with scope, engagement rules and the emergency stop (app/core/workflows/, app/services/workflows/, app/runtime/workflows.py, frontend/src/views/WorkflowsView.vue, test_workflows.py, docs/guides/workflows.md).
  • Require human approval at sensitive action boundaries; keep restricted operations unavailable to unattended workflows.Approval nodes (start a scan) stop the run until the user approves the step; attended nodes are refused in schedule and event runs and rejected by the definition check (app/core/workflows/, app/services/workflows/, app/runtime/workflows.py, frontend/src/views/WorkflowsView.vue, test_workflows.py, docs/guides/workflows.md).
  • Provide reusable workflow templates with documented capabilities, provenance and dependencies.Five built-in templates listing their capabilities (derived from their steps), provenance and requirements; copied into a vault turned off (app/core/workflows/, app/services/workflows/, app/runtime/workflows.py, frontend/src/views/WorkflowsView.vue, test_workflows.py, docs/guides/workflows.md).
  • Add failure handling and predictable behavior for duplicate events or partial execution.A failed step stops the run and keeps finished steps; resume does not repeat them; schedule slots and events carry a key so a repeat delivery starts one run (unique per workflow) (app/core/workflows/, app/services/workflows/, app/runtime/workflows.py, frontend/src/views/WorkflowsView.vue, test_workflows.py, docs/guides/workflows.md).

PLUGIN — Extension ecosystem [P2] ​

  • Define a versioned plugin SDK and stable extension contracts for importers, renderers, report formats and approved service adapters.SDK 1 with a validated manifest (app/core/plugins/manifest.py), typed contracts and helpers (app/core/plugins/sdk/phantom_plugin.py) for report formats, importers, body renderers and service adapters, wired into report export, HAR import, the message viewer and issue trackers. Service adapters only describe requests: Phantom checks them, adds the user's credential and sends them through the egress guard to the configured address (app/core/plugins/adapters.py; test_trackers.py, plugins/examples/redmine-issues; docs/plugins/contracts.md).
  • Support declared capabilities, permissions, installation consent and isolated execution where feasible.Contributions declare the permission they need (reports.read, flows.import, bodies.read; unused or missing permissions refused); a plugin is installed disabled and runs only after the user grants exactly what it asks; each call runs in its own isolated Python process (-I, empty working folder, no Phantom environment, time, CPU and memory limits, size-checked replies) and gets only the call's data, masked by the export policy (app/core/plugins/host.py, test_plugins.py: consent, environment and import isolation, masking, agent refusal); what isolation does not cover is documented (docs/plugins/security.md).
  • Provide example plugins, developer documentation and compatibility tests.plugins/examples/ (findings CSV report format, Burp Suite XML importer, JWT body view); docs/plugins (index, manifest, contracts, lifecycle, security; en and ru); test_plugin_examples.py installs every example from its folder and runs it end to end through the real host; checked in the server container as its unprivileged user.
  • Implement plugin lifecycle, version pinning, updates, disable/uninstall and failure isolation.Install, update (same permissions keep the state; more permissions disable it again; older versions and changed contents under one version refused; new files unpacked before the switch), pin, disable, uninstall; errors, crashes, timeouts and malformed replies fail only that call and three in a row disable the plugin with its last error (app/services/plugins/, test_plugins.py); Settings › Plugins with a row menu (PSettingsPlugins.vue, plugins.spec.ts); plugins are part of phantom backup.
  • Review third-party dependencies and signed distribution before enabling any public registry.Plugins run with the standard library, the SDK and their own files only (python -I -S; test_plugins.py), so they bring no third-party dependencies; signed distribution: Ed25519 signatures over the archive digest checked against publishers the user trusts, a signed plugin updates only from the same publisher, unsigned packages can be refused (app/core/plugins/signing.py, scripts/plugin_sign.py, test_plugin_signing.py; docs/plugins/signing.md). Phantom's own dependencies are pinned in requirements.lock and the images ship an SBOM and provenance. No public registry is enabled.
  • Build a community catalog with licensing, provenance, trust indicators and security reporting.In progressProgress: the catalog format and client: catalogs the user adds by https address (none by default) list each release with licence, source, publisher, security contact and permissions; Phantom computes the trust marks (signed by a trusted publisher, installed version) and installs only a package whose SHA-256 is the published one, then asks for consent (app/core/plugins/catalog.py, app/services/plugins/catalogs.py, test_plugin_catalog.py; docs/plugins/catalog.md). Hosting a public community catalog and its review process is the owner's decision and is not done.
  • Treat imported templates and extensions as untrusted until validated; no automatic permission escalation.Template repositories are reviewed and approved by digest before use; plugin packages are checked (size, ratio, paths, links, file kinds, strict manifest) before anything is stored, nothing runs on install, every reply is validated, and an update never gains a permission without new consent (app/core/plugins/package.py, app/services/plugins/registry.py, test_plugins.py).

MCP — Programmatic capability parity [P0 throughout, P2 expansion] ​

  • Maintain a machine-readable capability manifest and feature parity matrix for GUI, REST and MCP.The manifest (app/mcp/capabilities.py) declares every REST route, MCP tool and resource and interface call with its policy and notes; python -m scripts.parity generates docs/roadmap/parity-matrix.md and --check fails CI on any undeclared entry point or stale matrix (tests/test_parity.py); REST contract tests for every frontend call (tests/test_api_contract.py) and the generated API types check (scripts/api_types.py).
  • Expose typed research resources: authorized vault metadata, scope snapshots, asset inventory, findings, evidence references, job status and report drafts.MCP resources phantom://vaults, vault/{id}, vault/{id}/scope (entries and engagement rules), vault/{id}/assets (masked), vault/{id}/findings (evidence masked), vault/{id}/flows/recent, vault/{id}/scan/{scan_id}, vault/{id}/reports, the proxy status and intercept queue, each gated by grants (app/mcp/resources/catalog.py, test_mcp_research_resources.py).
  • Provide bounded operations through the same application services; separate read-only capabilities from operations with side effects (tool hints). Permission checks per actor: every tool and resource declares the grant it needs and is checked per token and vault (test_agent_permissions.py).
  • Return structured results, stable references, pagination and explicit unsupported/denied states.Tools return JSON objects with stable ids and [[kind:id]] references, cursor pages with next_cursor, and errors as {code, message, details} (permission_denied, not_found, invalid_value, engagement_halted, out_of_scope) (docs/reference/api-conventions.md, test_agent_permissions.py, test_mcp.py).
  • Support actor identity, least-privilege tool grants, per-engagement permissions and revocation.Personal access tokens per agent with resource/action grants per vault, actor agent recorded on what agents create, engagement rules per vault (agents may narrow scope, never widen it), and revocation that pauses the token's attacks and cancels its scans (test_agent_tokens.py, test_agent_permissions.py, test_engagement.py).
  • Require explicit human approvals for sensitive active testing and external submissions; do not grant agents unrestricted proxy, credential or network access.Agent scans and Intruder attacks wait for a one-time approval per token, operation and host (on by default, user-only decision and setting, a notification per request); external submission is never an agent's, since report hand-off is user only; agents act within scope, engagement rules, quotas and the guard that refuses requests to the workstation itself (app/services/agent_approvals.py, app/mcp/guards.py, test_agent_approvals.py, docs/guides/agent-approvals.md).
  • Protect against prompt injection in captured messages, websites, reports and imported content by treating them as untrusted data.The MCP server instructions, the provider system message and the workspace context all mark captured and imported content as untrusted data, never instructions; authority never comes from content, since grants, scope, hard rules and redaction are checked server-side on every call, and a read-only agent obeying an injected "delete the vault, widen scope, reveal secrets" is refused (test_untrusted_content.py, test_provider_runtime.py, test_bridge_context.py; docs/agents/mcp.md, Safety).
  • Redact secrets from model-facing tool outputs; expose only necessary evidence and metadata.The redaction policy masks credentials in every tool and resource output unless the user allows revealing (reveal_secrets), masked text is refused when written back, and session profile values and provider credentials never reach tools (test_mcp_redaction.py, test_redaction.py, test_session_profiles.py).
  • Add interface contract and authorization parity tests; permissions may intentionally differ between human and agent interfaces.test_api_contract.py (every interface call), the API types contract check, test_parity.py, and test_agent_permissions.py; intentional differences are recorded in the manifest notes and the matrix.
  • Document MCP setup, transport, capability discovery, configuration and errors (docs/agents/mcp.md).

Exit gate: The same supported read operation returns consistent canonical state across clients. Policy denials cannot be bypassed by switching interfaces. Plugins and workflows cannot silently gain new capabilities.