Skip to content

feat(webui): operations console with ATT&CK coverage board and wire view - #123

Merged
404SecNotFound merged 2 commits into
mainfrom
claude/sweet-meitner-uo27fc
Oct 19, 2026
Merged

404SecNotFound merged 2 commits into
mainfrom
claude/sweet-meitner-uo27fc

Conversation

@404SecNotFound

Copy link
Copy Markdown
Owner

Summary

The web UI now reads as a security tool rather than a generic developer dashboard. The design came from Refero screen research and three reviewed mockups. The operator sees four changes:

  • Frame. Every screen has a handling banner at the top and bottom: Synthetic telemetry // lab use only // detection unverified. A top command bar replaces the left rail; it holds mono tabs and status cells for profile, egress and a UTC clock. A status footer shows catalog size, profile and rate cap, and states that emission is not evidence of SIEM receipt. The canvas is darker (#0c0e10), regions are separated by hairlines, panels are 4px and controls 3px. Red keeps its roles: primary action, selection and live signal.
  • Coverage tab (replaces the Techniques list):
    • ATT&CK tactics are swimlanes in kill-chain order, with one cell per technique. A multi-tactic entry appears in each of its tactics.
    • Tactics no firewall log can express are named, not drawn empty.
    • Clicking a cell opens its dossier: objective, mapping, held and varied fields, benign baseline and any parser-only disclosure. Only the dossier's button loads the technique into the run workspace.
  • Wire view (replaces the plain event stream):
    • Shows an event list, the selected line dissected into syslog prefix, CEF header and extension (with held keys marked), and the same line as UTF-8 bytes. Selecting a field lights its bytes.
    • Everything is parsed from the emitted line (webui/src/lib/cef.ts), never inferred from the plan.
    • A pinned selection follows the event, not its index, as the bounded buffer drops old lines.
  • Layout. After a run, the readout, manifest and Wire view sit in a full-width band above the form. The full technique reference spans both columns, so opening it no longer leaves the left half of the screen empty.

CatalogTable is removed; CoverageBoard replaces it. The frontend calls no new API endpoints.

Verification

  • npx tsc -b is clean. npx vitest run: 21 files, 261 tests pass. The full pytest suite passes, before and after merging main at b42d9b3.
  • New guards: src/lib/cef.test.ts (dissector, all three vendor shapes, escapes, UTF-8 byte spans), WireView.test.tsx and CoverageBoard.test.tsx. Positive controls, each observed red and then restored green:
    • Pin by index instead of by line: the pin test fails.
    • byteSpan returns character offsets instead of byte offsets: the multi-byte test fails.
    • A cell click calls onSelect directly: the focus-versus-load test fails.
    • absentTactics returns []: the absent-tactic test fails.
  • Rendered contrast audit, walking every text node on the run, coverage, collector, logs and docs views in Chromium: 0 below WCAG AA across about 4,250 nodes. A planted low-contrast line was caught at 1.43:1, so the audit can fail.
  • No horizontal page overflow at 1440 or 390 wide.
  • README screenshots regenerated with scripts/capture-webui-screenshots.py against a fresh loopback instance. This is the first recorded execution of the script.
  • black and ruff are clean on the script.

Documentation impact

  • docs/webui-silver-red-design.md: dated revision section "2026-10-19: operations console". The palette table shows old values beside new ones, and the September text is kept with a pointer.

  • README.md: UI description, Coverage and Wire paragraphs, image alt texts, and a new line in the progress list. All seven docs/images/webui-*.jpg regenerated.

  • CHANGELOG.md: a new Unreleased section.

  • tasks/uat-plan.md: dated note on the navigation change. UI-02 now runs on the Coverage tab, and CHAIN-16 also covers the Coverage tab.

  • CLAUDE.md: dated implementation note pointing at the live design contract.

  • scripts/capture-webui-screenshots.py:

    • Takes REPLICANT_CHROME and REPLICANT_CHROME_ARGS, so it runs under a Linux Chromium.
    • Waits for the Tier 0 button itself, because "Validation contract" is also the title of the loading card.
    • Uses the Coverage flow and the new canvas colour.
  • Unaffected:

    • API and safety docs: no backend change.
    • The lab runbook: it has no UI tab references.
  • Maintained documentation changed alongside the behavior, or unaffected surfaces are explained above.

  • CHANGELOG.md records the operator-visible change.

  • Historical decision records were preserved or received a dated addendum.

  • Documentation claims were checked against the implemented behavior.

Scope boundary

  • Not built: the third mocked direction, an Operations timeline for scenarios. Web scenario surface stays deferred (CHAIN-16), and docs/roadmap-2026-09.md holds new surface behind the first observed rule fire.
  • Nothing here verifies delivery or detection. The Coverage board's "Rule fire" cell says it is not visible to Replicant, and the Wire view shows what was emitted, not what any SIEM received.
  • No backend, transport, engine or catalog change. The only Python change is the screenshot script.
  • Vendor CEF and the [Unverified] markers are untouched.

Generated by Claude Code

Redesign the web UI so it reads as a security tool, built from Refero screen
research and three reviewed mockups.

- Handling banners top and bottom ("synthetic telemetry // lab use only //
  detection unverified"), a top command bar with live status cells, a status
  footer, darker canvas, hairline layout, 4px panels and 3px controls.
- Coverage board replaces the technique list: ATT&CK tactic swimlanes in
  kill-chain order, absent tactics named, and a dossier that loads a technique
  into the run workspace.
- Wire view replaces the plain event stream: event list, CEF dissection with
  held keys marked, and a byte view where the selected field lights up. Parsed
  from the emitted line (webui/src/lib/cef.ts), never from the plan.
- Run evidence moves to a full-width band above the form after a run; the full
  technique reference spans both columns.
- The Operations timeline mock is not built: web scenario surface stays
  deferred (CHAIN-16) behind the launch gate.

New guards for the dissector, wire view and coverage board were each run
against deliberately broken code and observed to fail. Rendered contrast audit
of every text node: zero below AA, with a planted control caught. README
screenshots regenerated with the capture script, which now takes
REPLICANT_CHROME and REPLICANT_CHROME_ARGS and waits for the loaded validation
contract.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01HbjsVBv8HQSQkAds6W5Y1v
@404SecNotFound
404SecNotFound merged commit 467b734 into main Oct 19, 2026
13 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants