Skip to content

Changelog ​

All notable changes to this project will be documented in this file.

The format is based on Keep a Changelog, and this project adheres to Semantic Versioning.

NOTE

Features from v2.x, including AI Applications, AI Models, AI Knowledge Base, AI Agent Orchestration, Ollama/DeepSeek integration, gRPC, and Elasticsearch, have been removed in the v3.0 architectural refactoring. Please refer to v3.0 and later versions for current features.

Unreleased ​

Added ​

  • MCP call log persistence and run-observation panel: the backend McpCallAuditService has been upgraded from an in-memory ring buffer (last 200 records, lost on restart) to PostgreSQL persistence — new table testnet_mcp_call_log (V1.0.31 migration, synced to the H2 test schema and deploy baseline deploy/testnet-pg.sql); insert failures only log a warning and never break the MCP call path, error_message is truncated to 2000 chars, records are retained for 90 days (daily 03:30 job plus startup cleanup). GET /api/v1/mcp/call-log/list is kept for compatibility (now DB-backed), with new GET /api/v1/mcp/call-log/page (remote pagination + rangeHours window, capped at 90 days) and GET /api/v1/mcp/call-log/stats (today's total/failures/success rate/avg duration + last-24h hourly distribution + top-5 tools; aggregation is a single range query with in-memory bucketing, no DB-dialect functions). The MCP access page has been rebuilt as a two-column workbench — the left column is a three-step onboarding wizard (pick AI client → write connection config → verify the toolchain), the right column is a persistent run-observation panel (today calls / success rate / avg duration stat cards, a 24h call-distribution heat bar with a failure-ratio red layer and hover details, paginated call log with 24h/7d/30d range filters and full error text on hover), stacking automatically on narrow screens; adds the McpRunStats component and 17 bilingual message pairs.
  • MCP async-task Await enhancement, cancellation linkage (ARTEX §2.2) and call-log monitoring: testnet_await_tasks now registers a requestId→taskIds cancellation binding while waiting (McpTaskCancellationRegistry, bounded at 256 entries with oldest-first eviction against leaks); a standard MCP notifications/cancelled notification (legal, no id) cancels the linked tasks mid-wait (with id the protocol-violation branch still answers -32601 unchanged); COMPLETED tasks now carry outputExcerpt (first 1000 chars of task output; the existing summary field is kept for backward compatibility) and deltaAssets aggregated per asset type by runId, plus aggregate durationMs; McpContext gains a requestId that flows through wrap(); added the call-log monitoring backend: McpCallAuditService keeps a thread-safe in-memory ring buffer of the latest 200 tool calls (toolName/duration/success/error message) and a new GET /api/v1/mcp/call-log/list endpoint (mcp:view authority, sessionId filter, limit default 50 max 200).
  • Real-PostgreSQL smoke gate wired into CI: a new PG-Smoke pipeline (dual entry on main.push and PRs, triggered by changes to deploy/**, server src/main, the H2 schema, or .cnb.yml) — starts PostgreSQL inside the job container via apt (the baseline declares compatibility with PG 14+; local dev and production run 16) and imports the deploy/testnet-pg.sql baseline fail-closed (ON_ERROR_STOP=1 plus a table-count assertion), then boots the backend via classpath launch (test profile datasource/Redis/MCP API key overridden to the real PostgreSQL by CLI arguments, Flyway stays off). The assertions live in tests/api/test_pg_smoke.py (stdlib-only, with an offline --self-test mode, wired into the verify_all.py specialized suites) totaling 18 checks: REST login plus project add/edit/delete covering SELECT/INSERT/UPDATE/logical-delete; the full MCP chain covering initialize negotiation, notifications/initialized, the tools/list 11-facade contract, testnet_project/testnet_asset create-query-delete (MCP writes cross-read back over REST), the PROJECT_NOT_FOUND/ASSET_NOT_FOUND stable error codes, and session-termination 404 semantics. This closes the CI gap for the class of defects H2 tolerates but real PostgreSQL rejects (such as writing integers into boolean columns); the whole chain was fully rehearsed against a local postgres:16 container (18/18 passing).
  • MCP workflow-trigger concurrent deduplication with force bypass (ARTEX §2.3): testnet_run_workflow and testnet_workflow(action=run) now probe for active tasks (PENDING/ASSIGNED/RUNNING/PARSING/WAITING) inside RUNNING WorkflowRuns of the same project+workflow before triggering, identifying duplicate targets by exact targetValue string match or by the resolved sourceAssetId — a full hit (including single-target) mounts onto the existing tasks and returns status=reused/isReused=true plus the existing runId/taskIds instead of re-triggering; a partial hit across multiple targets triggers only the missed ones and reports the hits as skippedTargets; probe query failures fail open and trigger normally. A new force parameter (default false) skips the dedup check and force re-triggers when true. The matching contract is best-effort: the targetValue branch compares strings exactly, so normalization differences (case, scheme prefix, trailing slash) will miss — only targets resolvable to stored assets fall back to the sourceAssetId branch.
  • MCP HTTP relay HAR evidence enrichment (ARTEX §2.4): when testnet_http(action=relay) succeeds and the traffic record is readable, the executor computes a SHA-256 fingerprint of the stored response body (res_body) and returns sha256 plus har_export_available=true evidence keys, letting the agent call testnet_http(action=export_har, ids=[record_id]) directly with the record_id to export standard HAR 1.2 traffic evidence; it silently degrades without the evidence keys when the record is missing, the body is empty, the query fails, or the service is not wired — the relay main flow is never affected.
  • FOFA-style colon shorthand and natural-language phrase fallback for asset queries: the advanced query syntax gains a field:value colon shorthand — expanded to the equivalent field="value" quoted form only when the field resolves to a persisted entity column, while colon-bearing plain keywords (such as URLs) stay keyword searches instead of being misread as conditions that silently match nothing (the field→column resolution is extracted into a unified method with exact / case-insensitive / camel↔snake / generic-alias fallbacks); quoted phrases and operator-free bare word groups inside && / || combinations are now treated as keyword-search conditions, so natural-language combos like a quoted phrase or phrase || word no longer throw "unsupported query syntax"; adds 5 unit tests covering colon shorthand, URL keywords, quoted phrases, bare-word combinations, and mixed conditions.
  • Excel import duplicate-row details: the 8 asset import listeners (company/domain/subdomain/ip/port/web/api/vul) now record row-number + business-key details on dedup hits (rows that actually perform updates), e.g. "Row 3: 10.66.0.2", capped at 50 entries to keep the response bounded; the web import flow shows the duplicate details in a dialog after import so users can see exactly which rows matched existing records.
  • Batch operations on the tool and workflow lists: the tool library gains batch enable/disable/delete and the workflow list gains batch run/delete (a "batch operations" dropdown in the toolbar; the shared CRUD skeleton gains a toolbar-batch slot exposing selection state and the unified delete-dialog callback; items execute one by one with success/failure counts summarized).
  • Store update confirmation dialog and fetch-failure state: the DSL store drawer now asks for confirmation before updating a tool/workflow (showing the name and a "local version → remote version" pair, degrading to "update to latest" when no local version exists); remote-store fetch failures render an explicit error state with a retry entry instead of disguising themselves as the "no tools available" empty state.

Changed ​

  • Task list hides http-relay tasks by default: when MCP HTTP tools (testnet_http/testnet_web_recon, etc.) or manual replays from the traffic-audit page relay through a probe node, a relay task with sourceAssetType=RELAY is persisted in the task table (its execution spec is the HTTP request itself and its output the HTTP response), duplicating the traffic-record list one-to-one; GET /api/v1/task/list now appends a source_asset_type != 'RELAY' OR IS NULL exclusion by default (covering both the q advanced-query branch and the plain-filter branch, avoiding SQL three-valued logic accidentally dropping normal tasks whose sourceAssetType is NULL), with a new includeRelay=true parameter to opt back in, and the web task list automatically passes it when filtering by "source asset type"; the relay dispatch/report chain is unchanged (MCP task queries behave as before), making the traffic-record list the single HTTP request audit view.
  • MCP asset query echo defaults to the view=brief whitelist projection (ARTEX §2.1, behavior-change notice): record echoes of testnet_asset(action=query) and testnet_query_assets gain a view projection parameter (brief/summary/full); when omitted (or invalid) the value degrades to the brief whitelist projection (sub_domain/ip/port/web/api/vul records shrink to their core identifier fields plus id/projectId/type; company/domain and other non-whitelisted types are not projected and return as-is) — legacy clients that pass no view now get the minimal whitelist instead of full fields; callers needing complete fields must pass view=full explicitly (explicit fields takes precedence over view; view=full keeps the existing compact semantics; the schema's default: brief on view expresses exactly this default-trim semantics). Also recorded as a deferred improvement point: testnet_query_asset_graph intentionally introduces no view trimming parameter — its topology nodes are already strongly-typed lightweight POJOs (AssetGraphNode) containing no rawHeaders/htmlBody/screenshot-style raw fields, so a projection would be a constructive no-op; echo size is bounded by depth/the 50-node cap/statsOnly (see the deviation note in that class).
  • Updatable version display now uses the local spec version: InstalledPackageEntity gains a non-persisted localVersion field (backfilled at installed-list query time with the actual local spec version); the "A" in the store drawer's and list pages' "updatable: A → B" badges, plus the displayed current version, now prefer the local version over the remote_version snapshot taken at install/update time (manually edited local specs no longer show stale versions); the tool/workflow lists check for updates on mount (3-minute TTL throttle), removing the lag where a locally downgraded spec kept showing "up to date" until the next manual check.

Fixed ​

  • FlowEditor silently dropped unsaved YAML comments on visual↔code round-trips: the canvas is the source of semantic truth and every canvas change re-serializes the DSL over the code panel, silently destroying unsaved comment lines (not part of the DSL model) — the previous "restore raw text when the canvas is untouched" guard only covered zero-interaction round-trips; comments were still lost after property edits or node add/remove. Re-serialization now treats the user's most recent code text (taken before the canvas change) as the comment source of truth and re-inserts unmappable comment lines by anchor (the first content line following the comment; anchor-lost comments fall back to the leading block; comment-shaped block-scalar content is already preserved and therefore not re-inserted), adding utils/yamlComments.ts with 5 unit tests; verified in a real browser: the rename scenario keeps the comment while the rename itself takes effect.
  • Closed ports were written as open (isOpen=1) by result parsing: PortAssetResultHandler.buildPort unconditionally called setIsOpen(PORT_OPEN) over the preprocessed row — ports reported as open:false (connection refused) by the official registry tool tcp-check 1.0.2 landed in the library with isOpen="1", so every tool that reports closed ports wrote phantom open ports into the asset inventory. The open/isOpen caliber now follows the tool's report (boolean/number/string forms normalized uniformly, false persisted as "0"), defaulting to open only when the row carries no state, with 4 new caliber unit tests.
  • required=1 custom fields were silently bypassed when the asset row carried no customFields at all: AbstractAssetService invoked validation only for a non-empty map and CustomFieldDefServiceImpl returned early on null/empty — the two short-circuits combined disabled the required constraint on both mainstream entry paths: REST /add (body without customFields) and Excel import (empty custom-field column), while a non-empty map missing keys was correctly rejected (proving the validation itself worked). The validator no longer short-circuits empty maps and enforces required presence over all definitions, with channel awareness: user-driven entries (/add, /batchAdd, /edit, Excel import, MCP create/update asset facades) enforce on absence, while scan-driven ingestion (result parsing, linkage completion, relay discovery) stays permissive — automated ingestion cannot provide custom fields, and forcing them would block scan result warehousing.
  • Excel import silently dropped blocked rows and inflated the created count: all 8 asset import listeners called recordCreated() at row-parse time and then invoked saveBatch, discarding the BatchSaveResult — rows blocked by rule/custom-field validation entered neither failed/errors nor reduced created, so the response claimed created=3 while only 2 rows landed (the block reason lived only in a server-side WARN). Listeners now use saveBatchWithResult(..., enforceRequired=true) and reconcile the result: BlockedItem gains a human-readable reason field (carrying the validation message), row-level failures are written back and created is corrected by the actually-persisted count (ImportStats.adjustCreated), and the audited createdRecords now use truly saved entities, keeping response counts and persisted rows strictly consistent.
  • Accounts with only workflow:runs saw a permanent "load failed" on the run center's workflow-runs tab: the backend /api/v1/workflow/runs family required workflow:config:view while the frontend run-center gate is task:list/workflow:runs (menu) + workflow:runs:view (view button) — users granted the "execution records" menu reached the tab but the list kept 403-ing with a 3-second polling loop. Run-read endpoints (runs list/detail/tasks/nodes/asset types) now accept workflow:runs/workflow:runs:view, run cancellation accepts workflow:runs:control, aligning the backend contract with the frontend gates.
  • Workflow trigger nodes' when conditions were silently ignored: the three task-creation paths — INITIAL default tasks, runForAsset single-asset and batch triggers — never evaluated when at all — constantly-false conditions (even sandbox-doomed System.getProperty(...)) created tasks and executed; the envelope-routing path's when evaluation already worked (unit tests prove it), so the defect was precisely the missing evaluation on creation paths. All three paths now evaluate when before task creation (empty item env + current node statuses, same as the CONTROL path); a false condition skips the node instead of executing it, with 2 new engine regression tests.
  • Aviator static-method-shaped expressions passed both compile-time validation and the save entry: validateWhenSyntax only called tryCompile (compile without execute), and shapes like System.getProperty("user.dir") or Math.class.forName(...) compile fine (function names are mere call placeholders) while the runtime sandbox rejects them with FunctionNotFoundException — both validate/save entries were false-green, deferring the error to execution time where it surfaced as a silently stuck node instead of a clear rejection. The evaluator gains a tryEvaluate empty-env dry-run (same sandboxed instance; only "references functions unavailable in the sandbox" is rejected — unbound-variable and other undeterminable exceptions do not reject), and validateWhenSyntax layers it on top of tryCompile so both entries intercept up front, with 5 new unit tests.
  • Remote registry fetch failures were swallowed into a fake empty store: RemoteRegistryClient.getOrFetchIndex caught exceptions and returned null → listTools/listWorkflows returned an empty list for null → the service layer caught and returned empty again — with an unreachable registry URL the API still answered 200 with [], and the frontend failure-state + retry branch built last round was neutralized by the "failure = 200 empty list" contract. Fetch failures now propagate a BusinessException carrying the reason (registry URL + failure cause; the global handler turns it into code!=200 so the frontend loadFailed branch fires), and only a genuinely empty index returns an empty list.
  • Role management permission tree silently dropped permissions with dangling menuIds (7 unreachable in H2): getPermissionTree grouped by menuId and attached only to existing ids — permissions whose menuId pointed at a nonexistent id or at an inactive menu filtered out by the ACTIVE clause were neither roots nor attachable and vanished silently — in H2: http-record:/mcp:view (stale seed MERGE values) plus search:syntax: (parent menu menu-053 is INACTIVE), 7 codes permanently invisible and unassignable in the role-editing tree (assignable only through the API; PG data was fixed by V1.0.33 but the code-level drop remained). Dangling groups are now lifted to root nodes as a fallback so every permission code is reachable in the tree (buttons under lifted permissions stay nested), with 2 new unit tests. The H2 seed root cause is fixed too: the stale MERGE INTO sys_permission/sys_role_permission blocks at the end of h2-schema.sql carried pre-fix values (dangling menuIds) and KEY(permission_code) rewrote the correct PERMISSION-SEED anchor rows (id drift broke role 2/3 bindings) — the redundant blocks are deleted (the anchor region already contains the correct seeds; gen-permissions.py --check passes).
  • Asset deletion was physical instead of the documented logical delete: none of the 8 asset entities declared isDeleted, so the global logic-delete-field: isDeleted never engaged and removeById issued physical DELETEs — deleted data was unrecoverable, contradicting the AGENTS.md logical-delete convention. The 8 entities now declare @TableLogic isDeleted, all three schema sources gain the is_deleted column (deploy/testnet-pg.sql baseline, h2-schema.sql, new V1.0.34 migration), and PG unique indexes become partial (WHERE is_deleted = 0, so logically deleted rows no longer block re-adding the same business key; H2 lacks partial indexes and degrades to plain indexes with uniqueness guaranteed by application-level upsert dedup), plus an entity/schema guard test and an H2 runtime regression (post-delete MP queries hide the row, the row remains with is_deleted=1, re-adding gets a new id). Note: DB-level FK ON DELETE CASCADE between asset tables only fires on physical deletes; with logical delete child assets are retained and can be deleted on demand.
  • Client CLI test --mock misjudged failure scenarios as unrecognized format: parseMockData used output != "" as the MockData criterion — failure mocks (exitCode≠0, tools usually crash without output) and success mocks with empty output fell into the TaskEnvelope branch and errored with "neither MockData nor TaskEnvelope format recognized", making failure mocks unexpressible with a misleading error (the README documents this usage; the existing regression test only covered plain-YAML rejection). Format detection is now key-based (any of version/toolId/exitCode/duration/error/timestamp/output marks MockData), empty-output failure/success mocks parse correctly and report the mocked exitCode, the TaskEnvelope path is unaffected, with 3 new regression tests (go test ./cmd/ passing).
  • No loading feedback after confirming batch operations on tool/workflow lists: batch delete (workflow deletion is a cascade transaction that can take seconds) and batch enable/disable/run (serial per-item requests, duration proportional to the selection size) left the confirm-dialog button inert and re-clickable after clicking, looking frozen (naive-ui does not auto-spin for async confirm callbacks) — the confirm button now enters a loading state during execution (spinner plus double-submit guard), serial loops update a live "Processing (n/N)" progress line, and the state resets on completion or failure; the CRUD skeleton's single-row delete confirm dialog gets the same feedback.
  • CRUD skeleton's unconditional toolbar-batch slot forwarding masked the fallback toolbar batch-delete button: ResourceCrudPage always forwarded the #toolbar-batch template to the inner ResourceToolbar, making its $slots['toolbar-batch'] permanently truthy and the custom-slot branch an always-hit v-else-if — on the 13 list pages that provide neither the slot nor assetType/statusType (notifications, projects, project workbench, search engine/syntax config, 8 asset config rule pages), the toolbar batch-delete icon disappeared once rows were selected (leaving only the floating dock), and an empty batch group flanked by two adjacent stray dividers rendered at all times (pure visual noise, selection state irrelevant); the template is now forwarded only when the page actually provides the slot (v-if conditional slot, compiled into a createSlots entry), restoring the original behavior when it is absent — fallback batch-delete icon button on selection (wired to the unified delete confirm dialog), no batch group when nothing is selected — and removing the empty-group/divider noise.
  • Row-level delete no longer pruned the selection: with rows A and B checked, deleting A via its row action left the dock's "N selected" count and the batch-delete confirm dialog still counting the deleted row, and confirming would submit an already-deleted id to deleteBatch — doRemoveRow now removes the row's id from selectedRowKeys on success (the batch-delete success path already cleared the selection).
  • Floating batch dock icon buttons had no accessible names: the dock's six icon-only buttons (run workflow / run tool / change status / change tags / batch delete / clear selection) carried neither title nor aria-label, leaving them unidentifiable to screen readers and in no-hover contexts — both attributes were added (reusing existing i18n keys, none new).
  • Asset merge silently cascaded child assets away: AssetMergeServiceImpl physically deleted duplicate rows for ip/domain/sub_domain/port/web while every child-table foreign key in the schema is ON DELETE CASCADE — merging duplicate IPs/domains/subdomains/webs destroyed the ports/vulnerabilities/subdomains/API trees hanging under them with no audit trail (invisible to the H2 suite with REFERENTIAL_INTEGRITY=FALSE; the only real-PG integration test covers company, which has no child FKs). A new reparentChildReferences step now re-points child-table foreign keys to the survivor before deletion (unique-constrained child tables are de-duplicated by business key first), with 2 new unit tests.
  • License machine-code self-healing broke on cloned-template hosts (site-wide 403 after upgrade): MachineIdGenerator.generateLegacy() claims to replicate the legacy hash verbatim but dropped three pieces of the baseline semantics — the "None"/"To be filled by O.E.M."/empty-string board-serial filter with fall-through, the all-F Windows UUID exclusion, and the persisted anchor:null legacy record form (treated as corrupt, triggering a salted regeneration that overwrote the stored machineId) — so VMware/KVM cloned-template hosts (exactly the self-healing target population) failed ownership validation after upgrade. All three now replicate the baseline verbatim with unit tests. Also fixed: /license/machine-id and /license/info no longer silently fall back to generate() on anchor mismatch (they now return explicit guidance to delete machine_id.json instead of a machine code that can never activate); the self-healing save path no longer drops the just-written fbSalt; the LicenseInterceptor expiry check (!isAfter) now matches LicenseManager's isBefore at the expiresAt==now boundary.
  • Permission tree permanently lost 8 permissions (mcp:view / tool:registry: / http-record:*)*: their menu_id in permissions.yaml pointed at menu ids that do not exist in the source of truth (menu-mcp/menu-056/menu-http-record), and the dangling links propagated faithfully into the pg/H2 seeds, so custom roles could never obtain these permissions through the UI. The source now references real rows (mcp:view and http-record:view as roots, tool:registry:* under the tool-library menu) with seeds regenerated; because released migrations V1.0.6/V1.0.8 use ON CONFLICT DO UPDATE and would rewrite the dangling values on fresh-install replay, a new V1.0.33 repair migration locates rows by permission_code (no released migration was touched); a full pg_smoke fresh-install replay confirms all 8 now resolve.
  • Date/time parameter boundary defects (four of the same shape): McpCallAuditService extended date-only endTime by 23:59:59 (seconds), dropping same-day millisecond records (now .999, aligned with the frontend); HttpRecordServiceImpl padded date-only endTime with 00:00:00, dropping the whole last day of records; HttpRecordServiceImpl.parseDate had no year clamp so out-of-range years blew up binding to timestamptz with a 500 (clampYear 1970~9999 added); HttpRelayRequest.timeout's @Builder.Default=30 made the newly introduced 60s default unreachable in the default path (aligned to 60, MCP schema copy updated).
  • MCP JSON-RPC non-string params escaped as HTTP 500: McpJsonRpcDispatcher/McpController cast client-controlled method/name/uri straight to (String); non-string values threw ClassCastException out of the protocol layer as HTTP 500 instead of a JSON-RPC 2.0 error response. All sites now use instanceof checks (non-string method → -32600, name/uri → the existing -32602 branch), with 4 new unit tests.
  • IGNORED vulnerability status searched with the opposite semantics: the update side normalizes IGNORED/IGNORING to INVALID, while search mapped IGNORED to an exact IGNORING match — searching "ignored vulnerabilities" as documented always returned empty on new data. Search now matches in(IGNORING, INVALID) covering both legacy and normalized rows.
  • MCP broadcast of fake terminal states: the auto-retry branch of parse failure sets the task back to PENDING and the task_completed notification still broadcast status=PENDING, misleading AI agents into thinking the task finished; notifyMcpTaskCompleted now filters through a terminal-status set (COMPLETED/FAILED/TIMEOUT/CANCELLED/PARSE_FAILED) with the argument as fallback.
  • Excel import project-routing defects (4 listeners): the IP/subdomain listeners' relation assembly still routed by bare business key — same-batch same-value rows across projects were attached to the first row's project, earlier rows' lists overwritten, and cascaded assets created under wrong projects — now keyed by (business key, project_id) end to end; the API listener lacked project-resolution fallback and silently persisted project_id=null rows invisible in project-filtered lists (aligned with the other 7 listeners); the company listener's "empty project name + multiple projects" path now fails with the same message as the others.
  • Negative pageSize penetration family: Client/Project/SearchHistory and others only clamped the upper bound (>100→100); negatives passed through and the pagination interceptor amplified them to LIMIT 1000000 (verified from bytecode), and pageSize=0 produced an always-empty page — unified to Math.max(1, Math.min(pageSize, 100)); ScanWorkflowController's assetType path clamped only after slicing, now clamped up front.
  • Batch-run scopeAll broken on both ends: the frontend's "all data" scope sent scopeAll=true but BatchRunToolRequest/BatchRunWorkflowRequest had no such field, so Jackson silently dropped it and the fail-closed backend always answered 400 "no matched assets" — the DTOs now declare scopeAll and accept an empty query as full-table (maxAssets cap retained), and the frontend guards with "filter or select records first" and disables the scope when no query exists.
  • ZoomEye treated non-canonical 200 responses as successful empty results: the same defect class fixed earlier for FOFA/Quake — an error JSON from a gateway/WAF was parsed as 0 results and even recorded into search history; now validates the data/total structure and raises the business error.
  • TokenBlacklist defensive contract regressions: the refactor moved md5Hex(token) out of the try block so a null token escaped as an uncaught NPE (blank-token guards added); revokeUser's hardcoded 24h TTL is now coupled to the configurable testnet.jwt.expiration (a longer configured validity let revoked tokens revive via Redis; now max(24h, config) plus a 5-minute margin).
  • Cache invalidation broken in three places: ProjectServiceImpl.removeByIds was bypassed by MyBatis-Plus' default method (batch delete left the project cache stale and skipped ProjectChangedEvent) → overridden with @CacheEvict and per-id events; WorkflowList's copy path and ToolList's delete path missed their workflowConfigStore invalidation calls → aligned with the same-file chains.
  • Frontend interaction and consistency fixes: FlowEditor's undo/redo buttons still overwrote unsaved hand-edited YAML with graph-history snapshots in code mode (the leftover button path of the fc0b556 fix — function-level guard plus disabled buttons); multi-node copy/paste in the workflow graph missed when condition remapping (copies kept referencing original node IDs, desynchronised from dependsOn); the WorkflowRuns progress numerator ignored SKIPPED/CANCELLED terminal states (batches with skipped tasks never reached 100% while showing "completed"); four fire-and-forget calls in ResourceCrudPage lacked .catch after createCachedFetcher started rethrowing (unhandled rejections); BatchActions' node dropdown hardcoded pageSize=100 and truncated (switched to the full-list endpoint).
  • Tool DSL fail-closed validation in the wrong place: YamlConfigEntity.setConfiguration validated inside the setter, which MyBatis-Plus result-set hydration also uses — legacy bad-config rows blew up the tool/workflow list and detail SELECTs with a 500 while the read-path degradation was unreachable. The setter is a plain assignment again and validation moved to the service save/updateById (reads degrade to an empty config).
  • TaskTriggerContext manual inheritance chain missed targetResolver (latent break): inheritTriggerContext propagated only sessionId/runtimeParams, so a designated resolver was lost across batch/per-asset splits (all current callers pass null, but this is the same missed-field shape as the sessionId fix) — added withTargetResolver and the inheritance pass-through.
  • Test and guard infrastructure fixes: pg_smoke.sh asserted the existence of testnet_report_template, deleted by V1.0.30, so every run exited 1 (assertions now cover tables present after replay plus a no-resurrection check for the 7 dropped tables, self-run PASS=24); verify_all.py Phase 7 ran test_pg_smoke.py without --api-key, guaranteed 401 against a standard dev backend (MCP key now passed through); the H2 dialect pin on JSON_UNQUOTE (a function H2 does not have) became a fail-fast; h2-schema.sql gained the domain_normalized generated column to match the PG baseline; three fragile e2e specs now self-seed or drop timing dependencies (HTTP Diff assumed existing records, unread pagination beyond page one, Escape after single-select); LicenseInterceptorTest no longer overwrites and deletes the real machine anchor file (backup/restore discipline); plus test-script fixes (test_mcp_e2e's always-short-circuit workflow selection, test_pg_smoke's iteration over a null payload, HttpRelayServiceTest's hardcoded port, three always-true assertions, an empty catch swallowing assertions).
  • User update API revoked tokens on every save, logging the editor out: the revoke condition in SysUserServiceImpl.updateUser (!ACTIVE.equals(status) || roleIds != null) was always true when status was omitted (!ACTIVE.equals(null) = true), and also fired when the passed roleIds matched the persisted ones — saving the profile page (which echoes status=ACTIVE) immediately called revokeUser and kicked every session of that user (this was the root cause of 47 e2e cases cascading into 401s off a shared login state). Revocation now happens only on an actual auth-context change: an explicit status change, or a role set differing from the persisted one (set comparison, order and duplicates ignored); omitted or identical values pass through. The frontend Profile.vue also stops sending roleIds (belt and braces).
  • MCP-initiated task terminal notifications broadcast-only, session targeting unreachable: MCP facades (testnet_task run / testnet_workflow run) built the TaskTriggerContext without the McpContextHolder session, so tasks were persisted with an empty session_id (trigger_source=TOOL) and the session-targeted branch of the terminal notification (sendNotification(task.getSessionId(), ...)) was unreachable on both the MCP run and workflow paths — only the full broadcast fired. Both facades now attach the current MCP session when building the context (new TaskTriggerContext.withSessionId), and multi-target split / per-task rebuilds inherit the session (ClientToolExecutionServiceImpl); tasks from both paths now persist session_id and delivery works over both targeted and broadcast channels (verified: the owning session's SSE stream and another session's broadcast stream both receive a field-consistent notifications/task_completed).
  • V1.0.31 migration missing IF NOT EXISTS broke fresh-install Flyway replay: the CREATE TABLE/CREATE INDEX statements in V1.0.31__mcp_call_log.sql lacked IF NOT EXISTS, while the deploy baseline deploy/testnet-pg.sql already contains the same table and indexes — a fresh install (baseline import followed by Flyway replay) would fail on duplicate objects; idempotency guards have been added (the migration shipped in no release tag, and the dev database's Flyway history has been aligned to the corrected file's checksum). The three-source schema guard script's migration-replay model was fixed accordingly: tables rebuilt inside a migration via DROP TABLE + CREATE TABLE (V1.0.24/25 recreating sys_operation_log/user_project) were previously misreported as "H2 extra tables (absent from both baseline and migrations)".
  • WebSocket handshake broken by a 301 on public /api/ws: the prefix location /api/ws/ in deploy/nginx.conf triggered nginx's directory trailing-slash 301 for the bare path /api/ws; WS handshake clients (browsers/Gorilla) do not follow 3xx, so the handshake failed in an endless retry loop. Behind Host-rewriting reverse proxies the absolute Location also leaked internal addresses (https://127.0.0.1/api/ws/). Fixed by adding an exact location = /api/ws block that proxies directly (no redirect) plus absolute_redirect off so Location stays relative.
  • Missing COMPANY asset resolution caused ASSET_NOT_FOUND for company-scoped tools (zero-zone): resolveExistingAssetId only had five branches (IP/DOMAIN/SUBDOMAIN/WEB/PORT) and COMPANY fell through to default returning null — assets present in the library (JD/DiDi/Kuaishou/OPPO) were still reported as not found. Added a COMPANY branch (asset-ID direct check → exact company-name match → fuzzy like fallback for short names, all project-scoped) and wired it into both run_tool/run_workflow call sites; the auto-match chain and best-match priority of run_tool (no explicit assetType) now also include COMPANY as the lowest-priority fallback.
  • Client config-archive zip directory-entry extraction failure: configfile/archive.go created directories for zip directory entries using the entry's raw mode — when the entry mode is missing (e.g. mode=0 produced by Go's zip.Writer.Create("dir/")), the directory is created with 0000 permissions and files beneath it fail extraction with permission denied (always reproducible since Go 1.26; CI's Go 1.24 happened to mask it); directories are now always created with 0755 and the error is checked, with regression passing on both local Go 1.24 and 1.26.
  • Notification list unread-row highlight never took effect: the row-class-name passed from NotificationList to the shared ResourceCrudPage skeleton was never declared or forwarded (naive-ui's table never received it), so the whole-row unread highlight never rendered; ResourceCrudPage now exposes a rowClassName prop and forwards it to its internal n-data-table.
  • Notification list unread dot never displayed: VNodes created by the title column's h() renderer do not carry the component's scoped data-v attribute (rendering happens in the child component's context), so the <style scoped> .unread-indicator rule never matched — the dot rendered 0×0 and transparent; it now uses inline styles (consistent with the existing title-cell approach, with a fallback for the accent theme variable).
  • Mixed-language copy cleanup in the workflow node config panel: the seven "Chinese (English)" style section headers in WorkflowNodeConfigPanel (input mapping / tool parameters / upstream dependencies / conditional execution / trigger input / trigger filter / global policy) are now pure-Chinese i18n keys re-registered in both dictionaries (the English dictionary carries the English meaning plus the dependsOn/when field hints); enum-option annotations (ALL_SUCCESS/CREATED protocol constants) and Cron/Aviator proper nouns are kept per the established convention; the JSON/Array parameter fallback placeholder is now referenced via i18n instead of a bare hardcoded string.
  • Silent scheduling failure after saving auto-triggered workflows: save-time validation now wires in compile-level VNextWorkflowCompiler.validateForCompile (input bindings/type matching/missing tools/version locking), so invalid DSL no longer passes through into storage; CRON is validated from the YAML as the source of truth and backfilled into the entity — previously a 5-field CRON could slip through when the entity field diverged from the YAML, letting the workflow save while every schedule silently failed (visible only in logs).
  • Unified UTF-8 decoding for notification channel responses: the RestTemplate in AppConfig now sets StringHttpMessageConverter's default charset explicitly to UTF-8 (Spring's bare default is ISO-8859-1), so Chinese error messages inside charset-less DingTalk/Feishu responses no longer mojibake; added contract and functional regression tests (a JDK built-in HttpServer serving a charset-less Chinese response, which fails red before the fix).
  • Registry download mojibake for non-ASCII content (real gateway/static-hosting environments): RemoteRegistryClient now fetches the aggregated index and downloads tool/workflow YAML as byte[] and decodes explicitly as UTF-8 — RestTemplate's StringHttpMessageConverter mis-decodes charset-less responses as default ISO-8859-1, so registry YAML containing Chinese comments/descriptions failed SnakeYAML parsing with illegal-character errors; added a regression test asserting correct UTF-8 decoding when the response carries no charset header.
  • Scheduled workflow persistence type error on real PostgreSQL: WorkflowSchedulerImpl now writes the enabled column as a boolean instead of integer 1/0 — the column is boolean in PostgreSQL and integer expressions fail with column "enabled" is of type boolean but expression is of type integer (the H2 test database tolerates boolean/integer mixing, so unit tests cannot catch this class of defect).
  • MCP asset creation dedup-merge audited as "AI create": when saveReturnResult hits an existing asset and takes the update branch (entity.id rewritten to the existing record, insertFill leaves createTime null), the audit trail now records an "AI update" aligned with the import path, instead of logging the same dedup merge as two creates.
  • Missing user password length cap: user creation with an explicit password and the edit path now share one 6–64 character validation (backend validatePassword gains a 64-char cap — BCrypt's input limit is 72 bytes and longer passwords get silently truncated; the web form rule matches), with a new user.passwordTooLong bilingual message.
  • Workflow debug entry silently misled by YAML kind mismatch: running a kind: Tool YAML from the workflow debug entry used to silently take the tool path and emit 8+ per-field tool-schema validation errors, hiding the real cause; it now fails fast with an explicit type-mismatch message directing the user to fix the kind or use the tool debug entry.
  • Batch delete allowed table-wide deletion on an empty filter: the delete batch action with no selection, keyword, fixed conditions, or project context used to explicitly send scopeAll=true and wipe the whole table in one click; that scope is now disabled with a "filter or select records first" hint when no filter is active (frontend guard plus removal of the table-wide opt-out; the backend fail-closed check stays), and the batch modal explains why the scope is disabled.
  • Three shared-CRUD-skeleton defects: defineExpose ran before the exposed members were declared (TDZ risk) and now sits after the declarations; when a quick filter is active, typing a plain-text search term now combines into quick && keyword (preserving the fixed filter) instead of overwriting it and silently dropping fixed conditions such as unread filters; opening the create/edit form re-fetches project options when they are empty (a first-load 403 or network drop no longer blocks saving behind the required-field validation).
  • Narrow-viewport header controls overlapping the page title: the header height is now adaptive with wrapping (min-height preserved), so the right-side control cluster (project switcher / notifications / profile) wraps naturally on narrow viewports instead of overflowing onto the page title card.
  • out-in transitions freezing under render-frame starvation (two spots): the run-center tab-panel switch and the traffic-audit view-mode switch used <transition mode="out-in">, which freezes in the leave phase under render-frame starvation (long tasks / low-power devices), leaving the new panel unmounted until a full page reload — both now swap instantly; the run-center deep link ?tab=workflow resolves its initial tab before the first render instead of rendering the task panel first and switching after mount.
  • MCP call monitor narrow-container first-frame layout and time format: container width is measured synchronously on mount (the ResizeObserver first callback depends on a rendered frame; previously the initial render used the wide 7-column layout and clipped the actions column in narrow containers), with window-resize as a fallback re-measure; the narrow-table time column uses the full YYYY-MM-DD HH:mm:ss format (consistent with the wide table and detail drawer, no longer losing year and seconds).
  • WorkflowRuns failure scope, cancelled counter, and progress display: the "failed tasks" scope no longer counts CANCELLED (cancellation is a user-driven terminal state; counting it contradicted the backend failedCount on list rows and misled users into debugging cancellations as failures), the run summary gains a "cancelled" card, and a COMPLETED run forces task progress to 100% (removing the "completed but <100%" self-contradiction).
  • "0 results" misleading during search failures: search-engine failures now hide the result count (which read as "genuinely no results" next to the error panel) and show "search failed" instead.
  • Permission list "related menu" column always showing -: menuId refers to the menu-type permission rows inside the permission table (seed ids like menu-034), not frontend route codes; the old logic matched against frontend menu codes and never hit. The page now builds an id→name map from the full permission list (degrading to - on fetch failure without blocking the page).
  • FlowEditor graph-mode round-trip losing YAML comments and ghost selection bar: entering graph mode preserves the original YAML text, and switching back to code mode without graph changes restores it verbatim (comments and other non-graphable text-layer content are no longer silently dropped when regenerating YAML from canvas state); undo/redo replaces the whole DSL snapshot and now prunes selections of nodes that no longer exist, so the canvas no longer shows a ghost node's action bar.

Security ​

  • Notification webhook SSRF validator now covers the full reserved-range registry: NotificationUrlValidator blocked only loopback/RFC1918/link-local — CGNAT (100.64/10, the Tailscale-style lateral-movement range), 198.18/15, multicast 224/4, TEST-NET, IPv6 ULA (fc00::/7), 0/8 and 240/4 all passed and issued real outbound connections (a listener on this host's tailscale0 CGNAT address captured the server's POST live, while the 127.0.0.1/169.254.169.254 controls were blocked — proving the gap was range coverage, not the chain). The validator now covers the full IANA special-purpose IPv4/IPv6 registry (including an IPv4-mapped fallback), checks every A record of multi-record hosts and rejects on any hit, with 2 new parameterized unit tests (legitimate public addresses unharmed).
  • Log exception stack traces bypassed runtime redaction (%wEx raw output): the logback pattern swapped %msg for %redactMsg but kept the exception conversion word as %wEx — when the Telegram channel failed to send, the bot token sat in the URL path segment (RestTemplate exception messages drop the query but keep the path) and the stack's first line ResourceAccessException: I/O error on POST request for ".../bot<TOKEN>/sendMessage" bypassed every redaction layer and hit the logs in plaintext, defeating the stated goal that credentials never reach disk. A new SensitiveParamThrowableConverter (extending Boot's %wEx converter, applying the shared redactor to its output) is wired as the default exception conversion word %redactEx in CONSOLE_LOG_PATTERN (still overridable via LOG_EXCEPTION_CONVERSION_WORD), closing the message/stack dual-outlet redaction loop, with 3 new stack-redaction unit tests.

3.2.1 - 2026-10-25 ​

Added ​

  • Permission source-of-truth consistency guard wired into CI: gen-permissions.py --check (validates that deploy/permissions.yaml stays in sync with the pg/H2 seed anchor regions) is now a Consistency-Guard pipeline stage — commits that modify the permission source without regenerating seeds are rejected by CI; the E2E-Smoke trigger surface is extended as well (H2 seeds, permission source, frontend dependency manifest).
  • Permission annotation contract test: PermissionSeedConsistencyTest gains a 6th contract layer — it scans every controller @PreAuthorize permission code and asserts coverage by the permissions.yaml source of truth, so a future annotation referencing a non-existent permission code (an always-false branch that rejects every request on the endpoint) is caught at mvn verify.

Changed ​

  • E2E-Smoke Maven builds use the Tencent mirror: aligned with the Server-Test pipeline via ci-maven-settings.xml, avoiding sporadic HTTP 429 throttling when shared build nodes hit Maven Central directly.

Removed ​

  • Report template feature retired: the testnet_report_template table (migration V1.0.30), the 8 /api/v1/engagement/template/* CRUD endpoints, and the engagement:template:view/edit / engagement:export permission codes are removed — the frontend entry was stripped with the engagement ecosystem, leaving the endpoints an unconsumed REST island; existing installs drop the table and codes via migration, fresh installs never contain them.
  • MCP testnet_http outputs drop always-empty credential fields: testnet_http record detail/list and testnet_diff_response outputs no longer include credential_id/credential_alias (always null for new records since the v3.2.0 credential strip); the entity and testnet_http_record columns remain per the historical-audit design.
  • Dead test-suite cleanup: removed the tests/credential/ and tests/engagement/ suites targeting deleted endpoints plus the dead cases in the api/MCP e2e suites (the verify_all.py one-shot orchestration is pruned accordingly and no longer fails on start); dead routes and dead-table assertions in GUI patrol/smoke scripts cleaned up (the workflows suite was verified alive end-to-end and kept).
  • Dead code & legacy compatibility cleanup: Removed the unreferenced WorkflowEvent sealed interface, the dead AssetGraphResponse class, and the legacy 6-arg HttpRecordService.pageRecords overload; TestCaseController dropped the caller-less queryById/edit/deleteBatch endpoints plus the /edit, /delete, /deleteBatch short-path aliases; the web app removed the legacy /engagement, /http-record, /credential redirect routes (E2E specs now use the /ai/* paths), unused saveEngagement/deleteEngagement/getAssetGraphStats/fixStatusOptions exports, the dead DecisionLog type, Vite scaffold leftover assets, the unused codemirror dependency and the deprecated @types/dompurify stub, and one-off debug scripts; the server dropped the dead testnet.notification.webhook.timeout config and the fully @Disabled performance test class; the Go client merged ws.NewClient into NewClientWithProvider; removed the one-off GUI patrol report and the stale CLAUDE.md duplicate (now a pointer to AGENTS.md).

Fixed ​

  • MCP facade tool contract count consistency: the tools/list and REST /mcp/v1/tools facade tool count assertions in test_mcp_protocol.py corrected from a stale 14 to 11, aligned with the McpToolExposureRegistry.EXPOSED_TOOLS single source of truth (memory/blackboard/credential facades were stripped in v3.1.0/v3.2.0); McpServerAdapter's unknown-tool remediation message now reads the core tool count dynamically from EXPOSED_TOOLS (the hardcoded 12 disagreed with reality); the MCP full-chain E2E case for the deleted zero-reference orphan tool testnet_list_tools switched to the testnet_search_tools full-listing contract (issue #119).
  • Test environment robustness: SysConfigTestServiceImplCoverageTest's default storage-directory fallback test now runs only when /app/uploads is creatable and writable (conditional skip on non-root environments, no more false alarms); the MCP full-chain E2E handles the 32KB protective truncation envelope and extracts project context from the preview prefix (no longer crashes on large dev databases).
  • Go client validate subcommand: Added HTTP_PROBE to the accepted type set (it previously rejected HTTP_PROBE specs despite the executor being registered) with a new required httpProbeConfig.url check.
  • Asset dedup-merge scaled & lineage persisted: duplicate groups are now located via database-side GROUP BY aggregation and fetched in batches (no more loading an entire project's assets into memory); writes are split into per-group transactions and batched; removed entities get a [merged-into:survivorId] lineage snapshot written to the change history (the previous implementation only mutated an in-memory comment that was never persisted).
  • Task retry race condition: retryTask's check-then-act is replaced with an atomic conditional UPDATE (affected-row-count decides the winner), so concurrent retries no longer produce duplicate retry tasks.
  • Batch-save audit "created" misclassification: BatchSaveResult now exposes the exact created/dedup-updated split, so task-parsing and AI batch-create paths no longer record updates of existing assets as "Task Created / AI Batch Created" (the old id-backfill heuristic inflated the audit log on every re-scan with an always-empty oldValue); dedup hits are now recorded as "Task Updated / AI Batch Updated" carrying the in-database before snapshot.
  • ReportTemplate permission annotations cleaned: removed 7 always-false fallback branches referencing deleted permission codes (engagement:view/edit), unified to engagement:template:*.
  • AGENTS.md aligned with the actual v3.2.0 structure: 11 MCP facade tools (source of truth: McpToolExposureRegistry), the stripped credential module section and credential-page references removed, MCP resources 3 / prompts 0, measured frontend module counts (54 views / 18 API modules / 39 sub-routes), Vitest 5, and JaCoCo gates 86.5%/69.5% — all verified against the codebase.
  • FlowEditor shortcut scope & state-fork fix: canvas shortcuts (undo/redo, copy/paste, select-all, Delete/Backspace, Escape) moved from window-level listeners to the graph canvas container element (active only when the canvas is focused; YAML mode now relies entirely on CodeMirror native undo/redo), fixing Ctrl+Z overwriting unsaved hand-edited YAML with a graph-history snapshot when focus was outside the code editor, and Backspace deleting nodes behind an open modal/drawer; the graph editing state (clipboard / undo history / node positions) is now created once in FlowEditor and injected into WorkflowGraphEditor via provide/inject, removing the parent/child dual-instance clipboard and history fork; switching YAML → graph mode pushes a history snapshot of the current DSL so undo/redo granularity stays coherent across the switch.
  • PIPELINE output parser stages wired end-to-end: a tool DSL declaring parser: {type: PIPELINE, stages: [...]} previously existed only in the model and schema (the output channel never read stages), so it always produced empty results at runtime; stages are now carried through the TaskOutputChannel / WorkflowTaskBuilder / MultiChannelResultParser construction paths, and PipelineOutputParser consumes stages first (regex patterns kept as a compatibility fallback).
  • TaskFile multi-line pretty JSON arrays restored: task output containing newlines was previously always parsed line-by-line as JSONL, so multi-line indented single-root JSON arrays were silently ignored as a whole and /output/ file references were never persisted; the parser now probes with JsonParser for a single root (whole-document parse) versus multiple roots (fall back to JSONL), preserving both "no truncation on multi-root" and "multi-line single-root parses".
  • HTTP relay bridge wait regains a 10s grace: the bridge wait is no longer strictly equal to the client-side execution timeout, so responses completing right at the deadline are no longer misjudged as "task relay timeout" and dropped.
  • Excel import batch-wise audit & hardening: all 8 asset import listeners now write change history immediately after each batch commits, fixing the audit hole where the first N batches were permanently saved but no audit records existed when a later batch failed; audit collections are cleared per batch, bringing peak memory from O(whole file) back to O(batch); the Port/Web/SubDomain/Vul listeners gain per-row number tracking (failure hints no longer drift to the wrong row); /import endpoints uniformly validate the .xlsx extension and translate parse exceptions into friendly errors.

Security ​

  • Notification channel log redaction: the DingTalk/Feishu/Webhook/Telegram channels no longer echo full URLs into logs (the DingTalk robot access_token and the Telegram bot path token previously landed in log files); the redaction implementation is promoted from the search-engine interface to a unified common/util/SensitiveParamRedactor, covering both sensitive query parameters and the /bot<token>/ path form.
  • Tool-config YAML save fail-closed: syntactically invalid YAML now throws IllegalArgumentException instead of silently returning an empty Map (the save entry rejects it, globally mapped to 400) — no more silently wiping redundant columns via an empty-config sync; syntactically valid non-Map roots (scalars/lists) keep the existing tolerant contract (original text preserved), and the read path still degrades to an empty config on legacy bad data without crashing.
  • Search-engine error snippet redaction: error snippets surfaced by FOFA/Quake (and peers) now uniformly redact sensitive parameter values such as key/token/secret/apikey — WAF/block pages echoing the request URL no longer leak the API key into logs and frontend responses.
  • Salted fallback machine ID: when all hardware anchors are missing or fake, the FB: fallback machine ID now mixes in a first-install persisted random salt, so identical bare containers of the same OS no longer generate the same machine ID (existing installs with real anchors are unaffected).
  • Registry checksum fail-closed: installing from a remote registry detail missing the checksum field is now explicitly refused, closing the "strip the field to bypass integrity verification" loophole.
  • Aviator sandbox security-critical options fail-fast: failures establishing the class whitelist (ALLOWED_CLASS_SET), critical features (Module/NewInstance/StaticMethods), or the functionMissing reset now abort startup instead of degrading to a warning (preventing the sandbox from silently disappearing after an Aviator upgrade).
  • DOMPurify wired into v-html rendering chains: the LogViewer and HTTP record list v-html renders now pass through a unified sanitizeHtml (defense-in-depth on top of upstream escaping), turning the previously unconsumed dompurify production dependency into a real safeguard.
  • MCP fine-grained permission checks now apply to JWT users: the universal mcp:execute bypass is narrowed to the static API-key mcp-agent system identity only (id+username two-factor match); ordinary JWT users calling batch-tag / asset-merge / task-retry tools via tools/call must actually hold the corresponding asset:{type}:edit / task:list:execute permission codes, aligning with REST-layer RBAC.
  • WebSocket CONNECT now re-checks the token revocation blacklist: aligned with the HTTP path — logged-out or force-signed-out JWTs can no longer establish STOMP connections and subscribe to pushes during their remaining validity.

3.2.0 - 2026-10-19 ​

Breaking Changes ​

  • Target Credential feature stripped: the Credential management capability is removed across frontend, backend, and the testnet_credential table. Credential custody and injection move to the external AI Agent platform: agents hold credentials and pass auth headers directly when invoking the relay via MCP — the platform stays a stateless forwarder + auditor, sensitive credentials no longer land in the asset platform database.
  • MCP facade tools 12 → 11: the testnet_access_control (BOLA/IDOR matrix testing) facade tool is retired (its multi-identity comparison fully depends on the credential vault); credential_id / auto_inject_credential parameters are removed from testnet_http relay and testnet_diff_response accordingly.
  • HTTP relay no longer injects credentials: the credentialId / autoInjectCredential request parameters and the auto-match injection, explicit injection, and anonymous-strip logic are all removed — the relay forwards original headers as-is (store_raw storage masking and cross-origin redirect auth-header stripping are retained).
  • Credential table dropped (migration V1.0.29__drop_credential): testnet_credential is dropped with its system:credential:view/edit permission seeds and role bindings cleaned up; testnet_http_record.credential_id / credential_alias columns are kept for historical audit compatibility (no longer written).

3.1.0 - 2026-10-18 ​

Breaking Changes ​

  • AI infrastructure stripped (Wave 4 finale): the AI Memory library, Skill library, penetration testing Engagements, and Decision Log (including the System One decision engine) are removed across frontend, backend, and MCP surfaces; the skill knowledge-package (SKILL.md) capability moves out of the platform (maintained in a separate external project).
  • MCP facade tools 14 → 12: testnet_memory (persistent memory) and testnet_blackboard (engagements & decision chain) are retired; MCP resources drop from 5 to 3 (testnet://engagements and testnet://memory removed) and all MCP prompt templates are removed.
  • HttpRecord.engagementId becomes a historical field: the testnet_http_record table and its engagement_id column are kept for legacy data, but new records always leave it empty and relay/search interfaces no longer accept engagement-scoped parameters.
  • Five database tables dropped (migration V1.0.28__drop_ai_tables): testnet_engagement, testnet_decision_log, testnet_decision_call, testnet_ai_memory, and testnet_skill are removed by migration, along with the engagement:view/edit, decision-log:view, ai:memory:view/edit, and skill:view/edit permission seeds and role bindings; the report template (testnet_report_template) and credential tables are retained.

Added ​

  • AI view & search component tests: new component tests for MemoryList/SkillList (create/edit/delete and failure branches) and large branch-coverage gains in SearchMain (formatting and filter edge cases).
  • Notification rules UI for new channels: the notification rule form now supports Telegram (BotToken+ChatId), DingTalk (Webhook+signed Secret) and Feishu (Webhook+signature Secret), with channel options fetched dynamically from the /channels endpoint (static fallback) and per-channel dynamic field rendering/validation.
  • Store upgrade experience: updatable tools/workflows in the list views now offer a complete upgrade flow (current → target version confirmation dialog wired to the install API with cache invalidation), and the store drawer gains remote version details (changelog/dependency tools).
  • FlowEditor editing experience: undo/redo (history cap of 50, Ctrl+Z / Ctrl+Shift+Z), node copy/paste (IDs regenerated with edges preserved), select-all/Escape shortcuts; core logic extracted into a useUndoRedo composable with unit tests.
  • Assessment report PDF export & HTML template customization: report HTML templates are now storable (new report_template table with a built-in default fallback) and a PDF export endpoint added (pure-Java OpenHTMLtoPDF rendering with bundled WenQuanYi Micro Hei font for proper CJK vector embedding, following existing export permissions and audit).
  • Notification channels expansion: added Telegram Bot, DingTalk custom robot (signed mode) and Feishu custom robot channels following the existing channel abstraction and config storage; plus a supported-channels listing endpoint.
  • MCP tooling enhancements: three new tools — testnet_retry_task (retry terminal-state tasks honoring retry limits), batch asset tagging, and duplicate-asset detection/merge (preview mode with explicit confirm) — backed by new asset/task domain services.
  • Load-aware multi-node dispatch: dispatch strategy is now configurable (round_robin/least_load, default unchanged), with least_load scoring nodes by CPU/memory headroom; tasks may also target a specific node explicitly, with offline nodes erroring out clearly.
  • AI Code Review Pipeline: pull_request events on main/develop now run cnbcool/code-review (powered by CodeBuddy CLI); findings are posted as PR comments (fail_on_critical: false, non-blocking; docs-only changes are skipped).
  • Client Release Auto-Provisioning: The release pipeline gains an "ensure Release exists" stage that creates the CNB Release for the target tag on demand, so cnbcool/attachments no longer 404s when the Release object is missing.
  • PIPELINE output parser: ToolSpec introduces the PIPELINE parser type and an ordered cascading stages model, supporting sequential combinations of LINE, JSON, JSONL, CSV, XML, REGEX, TRANSFORM, and FILTER stages with independent delimiter, regex, field selection, mapping, and filtering conditions for composite tool output extraction.

Changed ​

  • BusinessException deferred i18n resolution: exceptions are no longer pre-translated at construction; messages are resolved at output boundaries (global exception handler/controllers) per locale, eliminating order-sensitive flaky tests caused by MessageSource initialization order; search engine test assertions migrated to getMessageCode()/getArgs().
  • Strict Workflow Spec validation and deprecated key rejection: workflow-vnext.schema.json enforces additionalProperties: false at the spec level to reject unknown keys at parse time; VNextDslParser now explicitly errors on the legacy misconfigured key spec.execution and instructs migration to spec.policy, eliminating silent dropping of policy blocks that previously rendered errorStrategy unconfigured.
  • Two-tier errorStrategy validation defense: In addition to schema enum enforcement at the parser level (strictly limited to STOP, CONTINUE, SKIP_NODE, and RETRY_NODE), VNextDslValidator adds a semantic null-check guard on policy.errorStrategy to prevent unconfigured fallbacks during programmatic construction or deserialization degradation.
  • Documentation glossary retired: Retired Chinese and English glossary pages whose content leaned toward internal architectural terms; core concepts (such as ExecutionSpec, Intent Lease, and System One decision engine) are now explained directly within dedicated MCP, workflow, and asset pages, streamlining the documentation structure.

Fixed ​

  • Empty-asset-parameter mass-execution fix: runForAsset/batch-run endpoints no longer fall back to a full-table query when assetId and ids are both absent and no valid query is provided (an empty-string query previously triggered a full scan and fanned out workflow/tool execution to every asset of that type); both controllers now uniformly require an explicitly non-empty query for the query path.
  • Target resolver placeholder same-pattern fix: TargetResolverSupport had the same "non-empty match misses empty input" regex defect as VNextDslValidator, letting bypass validation — now fixed and unified across both.
  • Rerun/retry task field copy fix: AssetTaskServiceImpl rerun/retry clones now copy toolName/targetValue/sessionId/triggerSource/dslTimeoutSeconds so retried tasks no longer lose trigger context or timeout settings.
  • Output parser cache race fix: shared caches in JsonOutputParser/RegexOutputParser/ParserFieldMapper made their check-then-write atomic; duplicated validation and log+throw blocks in ClientToolRunController and PackageRegistryServiceImpl extracted into shared methods.
  • Advanced-query dangling operator validation: QueryParser now splits &&/|| groups preserving empty trailing segments, so inputs like port="80" && raise the empty-condition error instead of being silently accepted.
  • AI-triggered task sessionId sync: AI asset tasks (including batch shards) now persist the triggering session ID onto the task entity (plain tasks keep null), fixing downstream report joins that depend on sessionId.
  • Asset graph stats field naming: AssetGraphStats boolean field renamed to sampled while keeping the @JsonProperty("isSampled") serialization key and a Builder alias, leaving the API JSON structure unchanged.
  • Null-snapshot NPE in engagement tagging: cleaned up 8 always-false ternary branches in EngagementServiceImpl; null snapshot JSON now falls back to an empty string instead of crashing via Map.of null-value rejection.
  • Zero-timeout task-mode relay fix: HTTP relay falls back to a 60s default when timeout is absent, zero or negative (new resolveRelayTimeout, unified across sync and task-mode paths) instead of timing out instantly.
  • Scalar tool-config crash fix: YamlConfigEntity degrades non-Map scalar/list YAML to an empty map with a warning instead of throwing ClassCastException down the sync chain.
  • DSL empty-placeholder validation bypass fix: VNextDslValidator placeholder regex now allows empty captures and trims before emptiness checks, so both and raise EMPTY_EXPRESSION; legitimate placeholders with spaces behave unchanged.
  • Client CLI validation & mock parsing fixes: validate no longer appends duplicate identical errors for timeout <= 0 (the semantic split between "missing (required)" and "invalid (must be > 0)" is preserved, and invalid values no longer trigger the too-short warning); test --mock now rejects plain YAML that is neither MockData nor TaskEnvelope (e.g. foo: bar) with an explicit "format not recognized" error instead of silently treating it as a valid mock; the upgrade proxy-download origin check gained a defense-in-depth comment (already guaranteed by the preceding validation, guarding against ResolveReference semantic drift).
  • Session-expiry redirect-to-403 loop fixed: the 401 interceptor no longer stuffs dead-end paths (/login, /403) into ?redirect= (falling back to / when the user was actually sitting on 403); the login view re-filters dead-end redirect targets; and the router guard now bounces an authenticated user who does hold permissions off the /403 dead-end to their first permitted menu — eliminating the "expired session -> 403 -> re-login -> still 403" loop.
  • Unbounded license-wait retry in Go client: registerWithLicenseWait now enforces a default 24-hour wait limit (configurable via license_wait_timeout or TESTNET_LICENSE_WAIT_TIMEOUT), returning ErrLicenseWaitTimeout on expiry.
  • Permanent hang on command output pipes in Go client: runCommandWithTaskLog now uses manual os.Pipe; if the reader goroutine does not reach EOF within 3 seconds after process exit, the read end is closed to unblock, fixing permanent task hangs caused by orphaned daemon child processes holding the write end.
  • Machine-id validation fail-open fix: MachineIdGenerator now fails closed when the license file carries a bound hardware anchor but no anchor source is readable in the current environment (common in restricted containers), closing the bypass of copying the license file into an anchor-less environment; the anchor inputs are now injectable with deterministic unit tests covering the branch.
  • Placeholder hardware-anchor filtering: MachineIdGenerator no longer treats placeholder values (all-zero machine-id, all-F UUID, None/Unknown/To be filled by O.E.M., etc.) as valid hardware anchors — cloned VM images sharing placeholders would degrade hardware binding into a placeholder comparison; generation persists pseudo anchors as empty strings and the reader treats them as unreadable.
  • Legacy anchor self-heal with local-ownership check: pseudo anchors persisted by older versions (including the legacy BS:/PUUID:-prefixed format, e.g. BS: + an all-zero serial) are re-anchored in place (when a real anchor is readable) or reset to unbound (when not), and blank-anchor files upgrade-bind when a real anchor appears (bindings only grow), so an upgrade no longer fail-closes every request; both self-heal paths unconditionally verify that the file's machine id matches a freshly computed one for the current environment before rewriting (accepting either the legacy or the new machine-id computation, with no exemption when anchors are unreadable on the target machine), so a license directory copied from machine A cannot be re-anchored on machine B.
  • Docs EdgeOne pipeline fix: Restored the Docs-Deploy-EdgeOne pipeline on main.push; the build image now installs git, fixing VitePress lastUpdated failing with spawn git ENOENT.
  • Long-polling concurrent over-limit race: TaskPollingManager.addRequest now performs "check limit -> evict oldest -> add" atomically per-client, closing the window where concurrent adds could transiently exceed MAX_PENDING_REQUESTS_PER_CLIENT (reproduced reliably by the concurrency test under CI load).
  • Test task output channel parsing and empty records fix: TestTaskService output parsing now routes through the TaskOutputChannel adapter, fixing an issue where bare convertValue dropped items, regex, and flatten configurations and caused parsedRecords to remain permanently empty for JSON, JSONL, REGEX, and FILE channels.

3.0.6 - 2026-10-13 ​

Added ​

  • Full-Path Asset Change History Audit: Introduced universal ImportChangeLogRecorder audit component; all 8 asset Excel import listeners now record change history with pre-change snapshots and import-update semantics; all non-controller write paths (task parsing, MCP tools, linkage creation, and engagement tagging) are fully tracked with sourceType distinguishing TASK, AI, LINKAGE, and ENGAGEMENT. Web asset history drawer now supports displaying import-update semantics.

Security ​

  • Expression Engine RCE Protection: Aviator sandbox now enforces a class execution whitelist, blocking arbitrary class loading and static invocation (AviatorConfig).
  • MCP Tool Call Authorization: tools/call now enforces method-level mcp:execute permission, closing the unauthorized invocation chain (McpController/McpJsonRpcDispatcher).
  • License Expiry & Activation Hardening: The interceptor validates expiresAt on every request, closing the "stays authorized until restart" bypass; activation verifies signature in memory before touching disk, never overwriting/deleting an existing valid license on failure.
  • Config File Upload Path Traversal Fix: originalFilename is sanitized to a safe basename; both write and delete validate the normalized path stays inside the storage root.
  • Credential Sensitive Field Masking: List/detail/match endpoints mask password/cookieString/authHeaders with write-back restore of stored values; queries without system:credential:view must explicitly scope by projectId.
  • Stored XSS Fix in HTML Report: Pentest engagement report export escapes all interpolations (target/summary/decisions/HTTP records) including attribute context.
  • Client SSRF & Resource Leak Hardening: File download uses a dedicated SSRF-safe client with per-redirect validation; WebSocket closes the underlying connection idempotently on every exit path (FD leak); ValidateFilePath falls back to parent-directory symlink resolution for missing files; blocks IPv6 unspecified address ::/128; configs directory added to volume-mount whitelist with post-hot-reload rebuild.
  • AI Egress Scope Enforcement: JS-analysis chunk URLs are individually validated against strictScope; strict-scope snapshots now load IP assets; URL host extraction strips the scheme before locating the path separator.
  • Relay Redirect Credential Protection: Sensitive auth headers (Authorization/Cookie) are stripped on cross-host redirects and https-to-http downgrades.
  • Search Engine Credential Masking: engineToken/engineHeaders are masked in responses; masked or empty values on edit restore stored originals.
  • Super Admin Protection: The plain edit endpoint can no longer disable the super admin or remove its admin role (i18n zh/en synced).
  • AI Memory Concurrent Write Fix: Writes lock per (project, memoryKey) with the transaction committed inside the lock, eliminating the check-then-act unique-key conflict.

Fixed ​

  • workflow/task/dsl pipeline: Null-guard for DSL dependsOn.nodes; batch-split envelopes now point assetId at the actually-created asset with the parent relocated to parentAssetId; CSV fieldMap supports header-name mapping with legacy index compatibility; pipeline stage iteration moved inside exception handling to prevent CCE escape; ASSIGNED→RUNNING event re-published after client confirmation; RELAY tasks skipped by instant dispatch to prevent duplicate traffic; parse failures now respect the retry budget by flowing back to PENDING; selectByRunIdForUpdate explicitly maps the jsonb metadata column; recoverable TIMEOUT deferred to the timeout-recovery flow to prevent STOP killing the whole run; RETRY tasks restore asset ownership; dependency-terminal check now queries the node status table, fixing runs stuck in RUNNING on empty output.
  • Go client: Custom DNS dial now honors the passed network parameter, fixing failed TCP fallback; hostLimiter janitor reads lastUsed under lock, fixing the data race; task output collection maps /tmp prefixes; re-registration persists the new node ID; cached config files verify on-disk existence before reuse.
  • Web UI: Store fetch failures are no longer swallowed into empty arrays — errors are logged and rethrown, with catch guards added at all call sites; WebSocket reuse branch deactivates and rebuilds the client, fixing the half-open deadlock; log viewer clears the render cache on filter-level change, fixing misaligned lines; batch ops require explicit scopeAll for unfiltered queries; onboarding tour validates route and anchor before starting; /system/profile no longer marked public.
  • Asset domain: Root-suffix matching now sorts by length descending, fixing com.cn being cut at cn; asset graph BFS dedupes on (source,target) edges so multiple subdomains resolving to one IP each keep their edge; vuln unique-key conflict backfill runs in a REQUIRES_NEW transaction, fixing PG aborted-transaction 25P02; linkage creation holds the lock across commit, closing the duplicate-insert window; ensurePort validates 1-65535; port stats skip the always-false project_id = NULL predicate when projectId is absent.
  • MCP resource reads: readResource now routes to existing facade tools (testnet_project/testnet_workflow/testnet_blackboard/testnet_memory), fixing failing resource subscriptions.

3.0.5 - 2026-09-30 ​

Added ​

  • Dual Streamable HTTP Transport: Native Streamable HTTP transport on POST /mcp/v1 with Mcp-Session-Id session management and DELETE /mcp/v1 session termination running alongside legacy SSE (/mcp/v1/sse).
  • Full Credential Protocol Support in Web UI: Web forms and list tags in CredentialList.vue now natively align with all 6 credential types (PASSWORD, HEADERS, BEARER, TOKEN, API_KEY, BASIC_AUTH).
  • Client Online Self-Update Console Support: Node list gains upgrade status badges and an upgrade summary strip (outdated / forced / failed), with manual and batch upgrade dispatch; nodes download, upgrade, and restart in place automatically while idle.
  • Configurable Upgrade Policies & Deployment Awareness: Added sys.client.upgrade.mode (notify / manual / auto) and sys.client.upgrade.min-version minimum required version; nodes report docker / binary deployment modes on heartbeat and exempt container nodes.
  • AI System One Decision Engine: Workflow decision nodes with decision:// scheme (e.g. decision://jev), isolated async thread-pool execution, event-stream driven execution matching client tasks, zombie-run recovery, and compile-time contract validation.
  • Blackboard Intent Leases: Added four actions to testnet_blackboard — claim_intent (atomic intent lease claim, 1–86400s), release_intent (release lease), deprecate (prune false positive with audit reason), and decide (atomic decision).
  • Decision Primitives & Triage Statuses: Decision records support FACT (verified fact) / INTENT (lead pending verification) / HINT (human correction) annotations; decision tree view adds normalized VERIFIED / DEPRECATED triage status display.
  • Traffic Audit Closed-Loop Tools: testnet_http gains list_records (paginated traffic query), get_record (full detail with body chunking), and export_har (standard HAR 1.2 export cap 500 records).
  • Automatic Asset Registration on Relay: testnet_http(action="relay") adds autoRegisterAsset flag to idempotently register root domain and web site assets on first contact.
  • Reconciliation Cursor Extended: changedSince cursor (ISO8601) extended from testnet_vuln to testnet_asset, testnet_task, and traffic records (list_records) for efficient incremental sync.
  • Asset Graph Exploratory Topology: Added semantic relation edge field, root search endpoint GET /api/v1/asset/graph/search, rich node detail drawer with one-hop neighbor incremental expansion, PNG export, and amber attack-path highlighting.
  • Deploy Glue Guard: Added tests/deploy/check_deploy_glue.py automated test suite to ensure deployment consistency across bash and PowerShell scripts.

Changed ​

  • Root-Oriented Exploratory Topology Refactor: Refactored graph from sampled full-project chart into BFS exploration rooted at any asset (GET /api/v1/asset/graph?rootType=&rootId=&depth=, depth 1–3, up to 300 nodes); GET /api/v1/asset/graph/stats uses parallel COUNT queries; testnet_query_asset_graph aligns parameters with documentation.
  • McpAccess Console Overhaul: Replaced legacy dashboard with modular McpAccess view and mcp-access/ subcomponents, offering one-click client switching (Claude Code, Cursor, OpenCode, Generic JSON), configuration snippet generation, and connectivity diagnostics.
  • AI Skill & Memory View Modernization: Added SummaryStatsGrid metrics cards and dual card/list layouts to both Skill and Memory management views.
  • Longest Registered Suffix Domain Matching: SubDomainLinkageHandler prioritizes existing project domains via longest suffix matching before falling back to public suffix heuristics; added "Parent Domain" select field in subdomain form.
  • Company Asset Line-by-Line Splitting: TargetParser for COMPANY assets splits strictly on newlines, preserving company names containing valid commas and spaces.
  • Unified Body Continuation Semantics: Relay and view_body slicing upgraded to true UTF-8 byte slicing with new nextOffset / recommendedLimit / hasMore continuation fields.
  • Client In-Place Update Staging: install-client.sh update unpacks into a staging directory, verifies archive integrity, creates binary backups, and preserves existing node configurations in configs/config.yaml.
  • SSL Certificate Auto-Renewal & Cross-Platform Alignment: Certificates default to a 3650-day lifetime; check_certs proactively re-generates certificates when missing, leaked, or expiring within 30 days; bcrypt password hashes synchronized across bash and PowerShell.
  • Docs & Skills Sync: User manual (zh/en), MCP overview, and platform skills updated to root-exploration model.

Removed ​

  • Standalone Asset Graph Entry Consolidation: Removed standalone "Asset Graph" sidebar menu and route; consolidated into asset detail drawer "Relation Graph" tab and Project Workbench graph tab.

Fixed ​

  • Fixed Client Verify Dropping Records: Fixed verify command dropping records and losing product/version when parsing nmap XML.
  • Fixed Frontend authGuard Route Deadlock: Fixed authGuard branch ordering that made public routes unreachable and blocked the login page.
  • Fixed Client Self-Update TLS Policy: Fixed online self-upgrade failing on self-signed HTTPS deployments due to upgrade requests not inheriting TLS configuration.
  • Fixed Client Long-Poll Jitter: Fixed client long-poll timing out before server responded, causing jittery task pulls.
  • Fixed Body Slice Drift & Heartbeat Update: Fixed continuation-drift when slicing bodies at multi-byte characters and duplicate heartbeat upgrade-column assignment.
  • Fixed Table Overflow & Datetime Formatting: Fixed resource table horizontal scrolling width calculations using real column widths and added right-edge gradient indicator; unified datetime formatting across resource tables.
  • Fixed FlowEditor Template Version Hardcoding: Fixed FlowEditor hardcoded template versions with dynamic registry resolution; upgraded DSL schema validation to Ajv 2020-12.
  • Fixed HTTP Relay 30s Silent Timeout: Fixed HTTP relay 30s timeouts under JDK HttpClient by forcing HTTP/1.1 instead of negotiating HTTP/2 cleartext upgrades.
  • Fixed Asset Graph High-Risk Port Stats: Fixed GET /api/v1/asset/graph/stats returning 0 for high-risk ports in statsOnly mode.

Security ​

  • Self-Service Password Changes: Dedicated POST /api/v1/system/user/changePwd endpoint strictly validating current password and hashing via BCrypt; passwords transmit via JSON body; eliminates unauthorized access to admin reset endpoints.
  • Brute-Force Rate Limiting: Added LoginAttemptLimiter tracking consecutive login failures by username + client IP, automatically locking accounts for 15 minutes upon 5 consecutive failures.
  • Active Token Revocation on Logout: Added TokenBlacklist storing MD5 hashes of logged-out tokens in Redis until expiration; authentication filter intercepts revoked tokens to prevent replay attacks.
  • Permission Tree Ancestor Inheritance & Route Fallback: Role permissions cascade leaf authorizations along ancestor chain (hasMenuPermission); restricted users lacking dashboard access redirect to first permitted menu upon login.
  • Project Strict Scope Guard: Added strictScope switch rejecting out-of-scope HTTP relay, probing, and response diff requests with SCOPE_DENIED.
  • Whole-Table Operation Safety Guard: Added scopeAll explicit opt-in requirement for bulk deletion, status update, and tagging operations lacking query filters.
  • Default Dev Secret Startup Blocker: Client startup enforces non-default secrets in production, requiring --allow-insecure-dev for local dev environments.
  • End-to-End Client Upgrade Verification: Dual-mirror downloads, mandatory SHA-256 integrity verification (fail-closed), smoke testing before atomic swap, and automatic rollback on startup failure.

3.0.4 - 2026-09-17 ​

Added ​

  • Target Credential Management Platform: Multi-credential storage supporting COOKIE, TOKEN, BEARER, API_KEY, BASIC_AUTH, and HEADER_MAP; added credential management page under "AI Agent" with complete CRUD, activation toggles, and multilingual support.
  • Distributed Probe Internal HTTP Relay: Introduced RelayTaskBridge in HttpRelayService to route HTTP penetration probes through remote client probe nodes; capture single-step redirect chains and save full request/response traffic records with HAR 1.2 export.
  • MCP Long-Running Task Notification Bus: Standard notifications/progress progress updates, notifications/message streaming logs, and notifications/tools/list_changed hot reloads.
  • Task Engine & Logging Enhancements: Streaming incremental console logs with offset/limit slicing and structured JSON format; active task abort and cancellation during queuing or execution.

Changed ​

  • Unified MCP Facade Tool Architecture (14 Core Facade Tools): tools/list converged from 57 atomic tools into 14 core facade tools (testnet_asset, testnet_project, testnet_blackboard, testnet_memory, testnet_search_tools, testnet_workflow, testnet_task, testnet_get_system_status, testnet_http, testnet_web_recon, testnet_access_control, testnet_vuln, testnet_cyberspace, testnet_query_asset_graph), each covering a complete business domain via action; all 57 legacy atomic tool names remain callable via tools/call for full backward compatibility.
  • Help Documentation Synchronization: mcp/tools.md restructured into "14 facade tools + 57 atomic tools compatibility mapping" format; product introduction, MCP overview, and bilingual docs updated site-wide.

Security ​

  • Credential Redaction & Dynamic Header Stripping: Automatic credential masking; dynamic stripping of obsolete authorization headers and clean test credential injection to prevent credential pollution.

3.0.3 - 2026-08-25 ​

Added ​

  • 29 Standardized MCP Tools: Added tools for project container creation (testnet_create_project), real-time console log streaming (testnet_get_task_logs), DOM extraction (testnet_browser_fetch), hidden parameter discovery (testnet_param_miner), HTTP differential comparison (testnet_diff_response), and chunked body inspection (testnet_http_view_body).
  • Comprehensive Task Status Filtering: Added full status filters for "Waiting", "Assigned", "Parsing", and "Skipped" to precisely track task execution lifecycle.
  • One-Click Quick Copy for Key Asset Fields: Added hover-to-copy capability for domains, IPs, URLs, cookies, headers, and credentials.

Changed ​

  • Continuous Sequential Table Row Indexing: Row numbers across all asset and task lists accumulate continuously across pagination.
  • UI Language & Terminology Consistency: Cleaned up mixed-language text across interfaces to provide a consistent, localized user experience.
  • Web Asset Card Grid Layout Optimization: Redesigned Web asset card layout with adaptive grid alignment for clean viewing across resolutions.
  • Terminal Execution Log Viewer Upgrade: Enhanced task log viewer with real-time ANSI color highlighting, adaptive auto-height, and smooth auto-scrolling.
  • Streamlined Node Pool Management: Simplified scan node cards and configuration dialogs to focus on vital node health and connectivity status.
  • Improved Mobile Browsing Experience: Optimized mobile table view with smooth native horizontal scrolling for consistent data access.
  • Long Log & Large Task Collection Hardening: Optimized task execution engine to handle long single-line scanner outputs without truncation, raising collection limits for output logs and generated artifact files.
  • Deterministic Pagination Sorting: Stabilized sorting behavior across asset and task tables, eliminating row hopping between pages when records share identical sort weights.
  • SSE Streaming & Reverse Proxy Optimization: Configured X-Accel-Buffering: no header in MCP SSE handshake to prevent buffering delays behind Nginx/CDN reverse proxies.
  • Workflow Distributed Lock Decoupling: Decoupled Redisson distributed locks from underlying database transactions, eliminating connection pool starvation deadlocks under high task concurrency.
  • Large HTTP Body Streaming & Defense: Hardened penetration testing HTTP relay against oversized payloads with regex line filtering, truncation limits, and chunked fetching.

Fixed ​

  • Fixed Advanced Search Field Mapping: Improved advanced search field mapping and filtering logic for accurate multi-condition queries.
  • Fixed MCP Asset Ingestion Form Deadlock: Overhauled parameter alias resolution; strictly decoupled lifecycle status status (ACTIVE/INACTIVE) from remediation status fixStatus to prevent validation deadlocks.

Security ​

  • Cross-Project Batch Action Guard: Enforced strict project ownership validation on batch workflow/tool triggers to prevent accidental execution across project contexts.

3.0.2 - 2026-08-04 ​

Fixed ​

  • Fixed Probe Public Network Connectivity: Resolved network isolation issue in Docker deployment mode where client probes were unable to reach external cyberspace APIs, ensuring proper operation of native scanning tools.
  • Fixed Upgrade Config Sync: Fixed issue where running ./testnet.sh update occasionally missed syncing updated configuration templates.

3.0.1 - 2026-08-04 ​

Added ​

  • Version Management & Update Alerts: Added product version check in System Settings and License Management, actively notifying users when new releases are available.
  • Proactive License Expiry Warning: Introduced license status countdown with 30-day advance expiry warnings to ensure uninterrupted service.

Changed ​

  • License Management Page Refactor: Unified license status, machine fingerprint, and version info in a clean layout, streamlining activation directly on login.

Fixed ​

  • Fixed Batch Action Display: Fixed intermittent display issues when batch-triggering workflows and tools.

3.0.0 - 2025-07-01 ​

Critical Upgrade Notice

This version contains breaking changes. Please make a full backup of your data before upgrading. The database has been migrated from MySQL to PostgreSQL 16. Direct upgrade from v2.x is not supported. Please perform a fresh installation and migrate asset data using Excel export/import.

Added ​

  • MCP Integration: Fully supports Model Context Protocol. AI Agents like Claude Code and Cursor can directly execute asset queries and trigger workflows (e.g., testnet_query_assets, testnet_run_workflow).
  • vNext DSL Engine: Upgraded tool and workflow DSL specifications (kind: Tool/Workflow). The DAG control and data flows are defined via dependsOn and inputs.*.from, featuring real-time JSON Schema validation.
  • Asset Graph Chart: Added a cross-type asset topology mapping page (powered by ECharts force-directed layout) at GET /api/v1/asset/graph.
  • Tool Store (Registry): One-click installation and updates of scanning tools and workflows from a remote DSL repository. Includes 23 built-in tools and 8 pre-configured workflows.
  • Resilience & Circuit Breaking: Workflows and tasks now feature automatic circuit breaking and exponential backoff retry policies. System alerts are pushed in real time.
  • Remote Config Synchronization: Scan nodes automatically synchronize configuration files from the server.

Changed ​

  • Database Migrated to PostgreSQL 16: Primary database migrated to PostgreSQL 16, significantly boosting performance and concurrent stability. Container name is testnet-db, volume name is testnet-db-data; backup command changed to pg_dump, restore command to pg_restore.
  • API Port Adjusted to 8081: Backend API port changed from :8080 to :8081 (update TESTNET_SERVER_URL on scan clients accordingly).
  • Communication Architecture Refactor: Scan client upgraded to reliable HTTP long-polling architecture, resolving task loss and reconnection issues under unstable networks.
  • Client Environment Variable Renamed: TESTNET_SERVER renamed to TESTNET_SERVER_URL.
  • Frontend Refactor: Faster loading speeds, brand new interface, and real-time syntax checking/code highlighting for DSL rules using CodeMirror 6.

Removed ​

  • Removed v2.x Legacy Components: AI Applications, AI Models, AI Knowledge Base, AI Agent Orchestration, Ollama/DeepSeek integration, gRPC, and Elasticsearch dependencies removed.
  • Removed MySQL Support: Deprecated MySQL 5.7/8.0 support.

Fixed ​

  • Fixed Workflow Circular Dependency: Fixed issue where workflow DAGs entered an infinite wait state in circular dependency scenarios.
  • Fixed Task State Concurrency Race: Fixed race conditions in task state updates during concurrent multi-node execution.
  • Fixed Web Asset Deduplication: Fixed URL deduplication logic errors during Web asset bulk imports.
  • Fixed Cron Timezone Offset: Fixed timezone offset issues causing incorrect Cron-based automatic workflow triggers.

2.2.0 - 2025-04-21 ​

Added ​

  • AI Application Management: Added configuration for standard applications and advanced workflow applications.
  • AI Model Management: Unified management of integrated large model API endpoints.
  • AI Knowledge Base: Support uploading local asset background and knowledge entries to build a local knowledge graph.
  • AI Workflow Orchestration: Support graphical drag-and-drop AI Agent task orchestration.
  • AI Vector Database: Provides vector database local storage and retrieval interfaces for intelligent Agent semantic asset search.

Fixed ​

  • Fixed Large File Bulk Import Memory Leak: Fixed a memory leak bug that occasionally occurred during large file bulk asset import.
  • Fixed Web Asset Import to API Error: Fixed issue where Web assets were not automatically imported to API, and API asset entry threw errors.
  • Fixed Web Asset Deduplication: Fixed bug where Web assets were not properly deduplicated during import.
  • Fixed Httpx Concurrency Alignment: Fixed issue where Httpx scanned Web assets had misaligned parsing under concurrency.
  • Fixed Httpx Status Code & Size: Fixed issue where Httpx scans did not return status codes and response sizes.
  • Fixed Linux Kernel Crash: Fixed issue where certain specific Linux kernel incompatibilities caused scanning node crashes.

2.1.0 - 2025-04-11 ​

Redeployment Notice

This update refactored the distributed communication mechanism. Deployed distributed scanning nodes (Client) need to pull the latest code and recompile for redeployment.

Added ​

  • Multi-Port Input: Port list supports entering/importing multiple ports at once (separated by commas).
  • Multi-Project Context: Added project switcher in the top navigation bar, supporting quick filtering and switching of project context.
  • Enhanced Log Search: Task log real-time monitoring viewer added global keyword filtering and highlighting.
  • Web Asset Path Support: Web asset URLs support non-root path recognition.
  • Data Ownership: Assets now support assigning ownership to users and departments, enabling data permission control.

Changed ​

  • Distributed Communication Refactor: Refactored communication mechanism between server and scan clients.
  • Optimized Page Navigation: Optimized asset click-to-navigate logic to prevent accidental navigation away from current editing page.
  • Asset Import/Export Performance: Optimized million-level asset Excel import/export speed, reducing memory consumption by 40%.

Fixed ​

  • Fixed Subdomain Root Domain Rule: Fixed bug where subdomain import incorrectly extracted top-level domain rules.
  • Fixed Node Custom Tool Reload: Fixed bug where node custom tools failed to reload after a loading failure.
  • Fixed Asset List Batch Delete: Fixed bug where batch delete on the asset list page did not work under certain conditions.
  • Fixed Task Result Asset Hub Ingestion: Fixed bug where scanning task result reporting threw errors when importing to the asset hub.

2.0.0 - 2025-02-07 ​

Fresh Install Notice

This version removes the external Elasticsearch dependency and refactors the database model. Before upgrading, please export and back up your asset data, and perform a fresh database initialization.

Added ​

  • AI Assistant Upgrade: Officially integrated DeepSeek API and Ollama local private deployment (such as DeepSeek-R1 distilled model).
  • Cyberspace Engine Enhancement: Supports 0.zone cyberspace search engine data fetching and import.
  • Asset Hub Optimization: Port services support manual marking as OPEN or CLOSED status.
  • Result Reporting Retry: Local queue temporary storage and automatic exponential backoff retry when scanning nodes experience network fluctuations.
  • API Asset Deduplication: Added API URL and Methods composite unique index to automatically filter duplicate data.

Changed ​

  • Communication & Search Performance: Improved synchronization performance between server and distributed clients; advanced query and list search response speed improved by 50%.
  • High Availability Improvement: Resolved issue where Go client hangs or goes offline due to Docker container execution exceptions.

Removed ​

  • Removed Elasticsearch: Optimized native SQL queries, removed ES component, overall system memory usage reduced by over 30%.

Fixed ​

  • Fixed Cyberspace Dialog Alignment: Fixed bug where project selection dialog was misaligned during cyberspace mapping engine result import.
  • Fixed Web Asset Tech Stack JSON: Fixed issue where individual technology stack JSON displayed abnormally during Web asset export.
  • Fixed Advanced Query Timestamp Parsing: Fixed timestamp parsing logic error in advanced query for asset time filtering.
  • Fixed Task List Pagination Count: Fixed issue where pagination count jump did not work in the task list.

Security ​

  • Random Initial Password: Admin initial password is now randomly generated at container startup (view via docker logs testnet-server | grep 'Random password:').

1.9.0 - 2024-12-05 ​

Added ​

  • Built-in URLFinder Tool: Extract APIs from Web frontend JavaScript.
  • Built-in wih Tool: Sensitive credentials and email scanning in Web responses and source code.
  • Image Pre-bundled Tools: Scanning node images now default to integrating Naabu, Subfinder, Nuclei, and over 10 security tools, eliminating first-run installation wait time.
  • Custom Timeout Parameter: Custom timeout parameter in tool global configuration and node configuration (unit: minutes, default 2 hours).

Changed ​

  • Node Tool Persistence: Optimized issue where temporarily installed external tools were lost after node container restart.
  • Task Failure Troubleshooting: Display specific stderr prompts in task details when task execution fails.

1.8.0 - 2024-10-11 ​

Added ​

  • Asset Blacklist: Regex-based blacklist filtering rules to automatically block unwanted internal network or specific assets.
  • Port Scan Anti-Blocking Filter: Naabu and Nmap scanning nodes added firewall (WAF/IDS) recognition anti-blocking filters.
  • Multi-Channel Webhook Notifications: System notifications added WeCom, DingTalk, and Feishu group robot Webhook push support.

Fixed ​

  • Fixed Long Connection Concurrent Interruption: Fixed issue where concurrent task execution caused some client node long connections to be disconnected by the server.
  • Fixed Offline Tool Auto-Installation: Fixed bug where automatic tool installation failed to work in offline environments.
最近更新

Released under the MIT License