Workflow Designer
TestNet features an enterprise-grade FlowEditor Workflow Studio, uniting a CodeMirror 6 code editor with interactive DAG topology validation. It supports JSON Schema real-time validation, dependency cycle detection, mock/real debug runs, and one-click execution dispatching.
1. Creating Workflows & Loading Templates
Navigate to "Recon & Automation" -> "Automation Studio" -> "Workflows":
- One-Click Store Installation (StoreDrawer): Click "DSL Store" to browse 9 pre-packaged official workflows (e.g., Full Asset Discovery, Domain Recon Pipeline, Full Auto Scan, Web Attack Surface). Click "Install" to pull the latest verified YAML contract instantly.
- Visual Creation: Click "New Workflow" in the top-right corner. The editor automatically generates a valid vNext starter template.

2. Online Editor & Real-Time Diagnostics
FlowEditor provides an IDE-like authoring experience:

1. Real-Time Linting & Validation
- Schema Validation: The background validator validates field definitions on the fly. Invalid properties or missing required keys (
kind,metadata,spec.nodes) are flagged with red underlines. - DAG Cycle Detection: Instantly flags circular dependencies that would cause pipeline deadlocks.
2. Debug Runs (Mock / Real)
Before dispatching a workflow to live probe nodes, verify its parsing logic and data flow first:
- Click "Debug Run" above the editor to open the execution test modal;
- Mock execution: paste a sample of the tool's raw output (or leave empty to auto-generate from the output schema) and verify each node's output parsing and downstream parameter assembly;
- Real execution: dispatch an actual run against a live target (e.g.,
example.com) and watch each node's status and parsed output step by step in the result panel.
3. Editor Shortcuts & Undo / Redo
FlowEditor provides a full-featured graphical editing experience with keyboard shortcuts and history tracking:
- Undo / Redo: Built-in state history stack (capped at 50 snapshots). Use
Ctrl+Zto undo andCtrl+Shift+ZorCtrl+Yto redo. The top toolbar buttons dynamically display enabled/disabled states with hover shortcut tips. - Node Copy & Paste: Multi-node selection and copy with
Ctrl+C, followed byCtrl+Vto paste. Pasted nodes automatically receive unique incremental IDs (e.g.,subfinder_copy), shift coordinates by +60px, and automatically remap topological dependencies and downstream parameter input bindings (from: 'node.outputs.xxx'). - Canvas Selection & Deletion: Use
Ctrl+Ato select all nodes on the canvas,Escto clear selection, andDeleteorBackspaceto delete the selected nodes.
3. Execution Dispatch & Target Resolution
There are two ways to launch a workflow:
- Click "Run" on a workflow row in the "Workflows" list;
- Click "Debug Run" in the designer.
Both open the execution test modal (ExecuteTestModal):
1. Target Input
- Provide targets as an asset JSON payload (a single root domain, a domain list, or IP ranges) along with the asset type;
- Use "Quick fill from history" to reuse inputs from previous executions.
2. Node Affinity & Target Resolution
- Once triggered, the built-in
TargetResolverEngineresolves targets per node according to each node's input bindings and asset types, assembling sub-assets into standardized Asset Envelopes; - Tasks are dispatched by the server to online scanning nodes; a node's execution capabilities (Docker/HTTP/DNS/TCP) determine which tools it can run. To separate workloads, narrow each node's pull scope with the Node Tool Whitelist.
After confirming, the platform compiles the DAG and instantiates the run in the background — follow live ANSI logs and progress in the Run Center.
4. Local DSL Validation & Mock Testing (CLI)
Before publishing tool/workflow YAML to the store, use the client binary locally for static validation and mock execution — no server connection required:
1. validate — ExecutionSpec Static Validation
testnet-client validate --spec spec.yaml # basic validation
testnet-client validate --spec spec.yaml --strict # strict mode2. test — Local Mock / Real Execution
# Execute with mock data (verifies output parsing and downstream parameter assembly)
testnet-client test --spec spec.yaml --mock mock.yaml --verbose
# Real execution with a result file
testnet-client test --spec spec.yaml --output result.json --timeout 600| Flag | Description |
|---|---|
--spec | ExecutionSpec YAML/JSON file (required) |
--mock | Mock output file (optional; no real network requests when provided) |
--output | Result output file |
--timeout | Execution timeout in seconds (default 300) |
--verbose | Verbose output |
3. verify — Multi-Mode Tool/Workflow DSL Verification
# Offline: static checks + mock execution (no Docker/network)
testnet-client verify --spec tool.yaml --mock mock.yaml --mode offline
# Local-first: local Docker images only, falls back to mock; can emit a report
testnet-client verify --spec tool.yaml --mode local-first --output report.md
# Full: allows image pulls, complete verification chain
testnet-client verify --spec tool.yaml --mode full
# Or carry the parameters in a config file
testnet-client verify --config verify-config.yaml| Mode | Behavior |
|---|---|
offline (default) | Static checks + mock execution, no Docker or network required |
local-first | Uses locally available images only, falls back to mock when missing |
full | Allows image pulls, runs the complete verification chain |
TIP
Recommended cadence: in-editor Ajv live validation → verify --mode offline quick self-check → test --mock to verify the parsing chain → --mode full for a real run → publish to the store.