TIP
← Initiatives / Software & web security

DESKTOP v5.0.0 / PLAYWRIGHT / ZAP / VERIFICATION

Web Security Hub

Web Security Hub: Desktop releaseWeb Security Hub: Windows installer CIWeb Security Hub: License: Apache-2.0Web Security Hub: DOIWeb Security Hub: OpenSSF Best PracticesWeb Security Hub: Contributions welcomeWeb Security Hub: Release asset downloadsWeb Security Hub: macOS Apple SiliconWeb Security Hub: Windows x64Web Security Hub: Documentation: English / Japanese

Turn user journeys into tests and assessments.

Follow authenticated pages and forms in a real browser. Desktop v5.0.0 brings Playwright, ZAP, and source analysis together with MCP access to verification results, human-approved OpenVEX exports, and genetic search.

  • macOS / Windows
  • Playwright + ZAP / SAST
  • MCP / OpenVEX / Genetic search
Web Security Hub character

Web Security Hub

Web Security Hub dynamic assessment interface with target URL, crawl scope, and ZAP settings
Actual assessment settings from the locally running application, rather than scan results.

01 /

Follow authenticated journeys

Explore SPAs and authenticated pages with Playwright. Review recorded interactions and reuse them for test generation, replay, and dynamic assessment.

02 /

Generate tests from rules

Generate valid, boundary, and invalid values from HTML form constraints, combine them pairwise, and export Playwright specs or YAML.

03 /

Evidence and remediation

Review dynamic and static findings alongside severity, OWASP categories, evidence, and remediation guidance.

01 / FEATURE TOUR

Explore what you can do.

WEB SECURITY HUB / 01

Assess the pages your browser can reach.

Set a start URL and crawl scope to collect same-origin traffic. Enable ZAP to use its established passive and active scan rules. Run active scans in a staging environment with explicit authorization.

Read the guide on this page ↓
Web Security Hub dynamic assessment settings
Actual settings screen. Start ZAP locally to enable integration.

WEB SECURITY HUB / 02

Turn a journey into repeatable tests.

Use saved scenarios to reach forms that ordinary link crawling cannot access. Generate test cases from discovered forms, then replay them and review HTML reports.

Read the guide on this page ↓
Web Security Hub test-case generation screen
Actual test-case generation screen. Value generation uses deterministic rules.

WEB SECURITY HUB / 03

Add a source-level perspective.

Inspect a local source tree for command execution, SQL string concatenation, and possible secrets, then review the evidence. Optional Claude Code review runs only when you authorize sending the displayed findings.

Read the guide on this page ↓
Web Security Hub static analysis screen for selecting a source directory
Actual static analysis settings. Automated findings support human review.

WEB SECURITY HUB / PRACTICAL GUIDE

Run a check. Read the evidence. Verify the fix.

Start with the included fixtures to learn the controls and read the results, then move to your own login flow, forms, and source. The dedicated sample covers boundaries, ownership, and skipped confirmation steps discussed in the TIP article.

Background: Playwright × ZAP × source analysis (TIP, Japanese) ↗

DESKTOP v5.0.0 / NEW CAPABILITIES

Connect verification to integration and review.

MCP

Let an MCP assistant read results, run permitted verifications, and prepare OpenVEX drafts. Choose capabilities at startup; a person retains approval.

MCP guide ↗

OpenVEX

Build a draft from verification evidence, then have a named reviewer decide with a justification. Export only approved drafts as OpenVEX v0.2.0. Zero findings never automatically means not affected.

OpenVEX guide ↗

Genetic search

Search a synthetic three-condition fixture using selection, crossover, and mutation. Compare fixed rules, genetic search, and optional LLM assistance under shared trial limits and fixed seeds. Confirm results in an independent session. LLM use is optional and off by default.

Genetic search guide ↗

Reuse scenario building blocks

Use variables, shared steps, CSV data sets, branches, loops, uploads, and downloads. Saved authentication sessions and logged locator healing support repeatable journeys.

Browsers and mobile

Use Chromium, Firefox, WebKit, and device emulation. iOS/Android use a separate Appium and WebdriverIO pipeline and require Xcode or Android SDK plus a simulator, emulator, or device.

Optional AI assertions

Check natural-language expectations against a text-only page snapshot. Enable it explicitly per site; page text may be sent to the configured AI service. Ordinary test-value generation remains rule based.

01 / SET UP

Start with the app, or run from source.

Desktop app

Download the macOS Apple Silicon DMG or Windows x64 installer from GitHub Releases. Node.js is included. Install the required browser from the first-run screen, then open the app.

Download the app ↗

The macOS app is Developer ID signed and Apple notarized. The Windows installer is unsigned. Intel Mac and Linux users can run the source edition.

Source edition

Install Node.js 24 or later and npm, run the following, then open http://localhost:4173.

git clone https://github.com/masahiroid/web-security-hub.git
cd web-security-hub
npm install
npx playwright install chromium
npm start

Sample verification needs no external target, real credentials, AI model, or ZAP setup. Initial browser and optional tool downloads need internet access.

02 / BASELINE → CHANGED → FIXED

First, reproduce a known fixture issue

Open Sample verification in the left navigation. It uses an included fixture, independent of the site selected in site management. Select all checks, then change only the fixture mode and run each assessment.

Fixture modes and expected results
ModeCandidates / reproducedWhat to review
Baseline22 / 0With the default settings, no violations are reproduced.
Changed22 / 4Reproduce four known fixture violations; select each row to inspect its evidence.
Fixed22 / 0Repeat with the same settings and confirm the reproduced count returns to zero.

Defaults cover 22 candidates and 44 trials including normal controls. Changing candidate, trial, or time limits changes the counts.

Changed fixture results and evidence for the selected trial
Actual application screen from the official course, showing known violations in the changed fixture.

Boundaries & Unicode

Check participant limits, text length, normalization, and missing fields.

Ownership

Compare access to the same fictional record as its owner, another user, an administrator, and an anonymous user.

Confirmation → completion

Compare a valid confirmed operation with an attempt to skip confirmation.

Read the evidence behind a result

Select a result row to inspect the trial ID, authentication profile, reached state, and source digest. Compare the normal control with the candidate and review server evidence and actual changes alongside HTTP responses. Open the HTML report to review the results in either language.

HTTP 200 alone does not establish a vulnerability. “No issue observed in scope” describes the tested conditions. The tool does not automatically finalize formal VEX affected / not_affected decisions.

Run the same sample from the source CLI
npm run verifier:run -- --mode baseline
npm run verifier:run -- --mode changed
npm run verifier:run -- --mode fixed

03 / FORM REGRESSION

Catch form changes with a saved test case

Next, use the fictional workshop application. This is separate from Sample verification: it covers site registration, login, scenarios, generated tests, and visual comparisons. In the desktop Home screen, start the hands-on environment. With the source edition, run the following in another terminal and leave the sample server running.

npm run training:setup
npm run training:start
  1. Open the sample

    http://127.0.0.1:4180/en/login — Sign in with learner@example.test / training-only and inspect the form accepting 1–5 participants.

  2. Select the site and scenario

    Select training-en in Hub. Review login settings and the saved scenario in site management. The scenario should reach the application form; do not submit the form while recording it.

    {
      "steps": [
        {
          "action": "goto",
          "url": "http://127.0.0.1:4180/en/apply"
        }
      ]
    }
  3. Generate tests, then keep a five-person case

    Run the test-generation pipeline. Then open Replay → Case editor, keep just the first row, set name=Demo Learner, contact=learner@example.test, participants=5, and save/regenerate.

  4. Record a baseline, then compare changed and fixed versions

    Record a baseline in the baseline mode. Switch to the changed mode, which lowers the limit to three, and replay the comparison: the five-person case no longer reaches the completion page. Switch to fixed and confirm the same session returns to PASS.

Replay results showing visual differences after the workshop participant limit changed
Actual screen from the official course. Review the replay after editing separately from the original generation report.

Recording a new baseline after finding a difference makes the changed version the new reference. Keep the original baseline while investigating the change.

Switch sample modes in the source edition
npm run training:mode -- baseline
npm run training:mode -- changed
npm run training:mode -- fixed

The desktop Home screen provides buttons for these mode changes.

04 / DYNAMIC ASSESSMENT & ZAP

Inspect traffic along the same journey

Open Dynamic assessment for the workshop sample. Review the start URL, use of the saved scenario, and authorization. Start with one page and ZAP/active checks off. Compare changed and fixed modes to see changes in CSP and MIME-sniffing protection findings.

ZAP for browser and form assessments

For regular dynamic assessment and replay, configure a running ZAP API and proxy. Its existing rules assess traffic reached through Playwright. Active scanning sends additional requests and requires explicit authorization and scope.

ZAP for local source verification

The source workspace’s ZAP environment tab can install a dedicated ZAP and Java runtime. Each verification owns a fresh session for passive evidence. This path does not run active scans or a spider.

First check whether findings match the headers you changed and disappear after fixing them. Review remaining findings and incomplete execution, rather than using a zero count as the only goal.

05 / SOURCE → REQUEST → EVIDENCE

Connect a source finding to an actual trial

  1. Analyze the source

    Select a local source folder. The training/sast/routes fixtures illustrate unique, ambiguous, and unsupported mappings. A unique candidate is a bounded file-local Express route mapping, not proof of execution.

  2. Run the dedicated source sample first

    Run the dedicated source sample. Expected statuses are 200 for the normal control and 422 for the candidate; both assessments remain under investigation. Detecting an unused TLS setting does not show it was applied to traffic.

  3. Define controls and scope for your own API

    Current source verification targets uniquely mapped literal GET/POST JSON APIs on numeric loopback HTTP origins with an explicit port. Start your app separately, select the source, finding, and origin, define normal/candidate JSON and the expected normal response, then authorize dispatch. If the normal control fails, the candidate is not sent.

ZAP session, message, and passive evidence associated with an individual trial
Actual screen from the official course. Keep normal-control evidence separate from candidate evidence.

What to check before sharing

  • The source version/digest, individual finding ID, and trial ID refer to the same assessment.
  • When using ZAP, evidence belongs to the message with the trial’s method and exact URL.
  • The run was not invalidated by a failed normal control, source change, cancellation, or budget limit.
  • Read the HTML explanation and retain JSON details. Keep exact input values privately if you need to reproduce the run.

Source verification remains under investigation. It does not establish that the running process loaded the analyzed bytes or executed the finding. Passive alerts are separate evidence, not confirmation of a SAST finding.

02 / FROM INPUT TO ACTION

A path from inspection to action.

01

Record the user journey

Prepare authentication and a scenario describing how to reach the pages and forms you want to review.

02

Test and assess the same flow

Reuse that scenario for form test generation and dynamic assessment with Playwright and ZAP.

03

Review evidence and improve

Review HTML reports and generated specs, address findings, and reuse the saved scenario for regression tests.

03 / COVERAGE

Know the scope of your assessment.

Browser exploration & proven rules

Playwright handles authenticated exploration and scenario replay. ZAP applies its existing scan rules to collected traffic.

Control target and impact

Use owned or authorized environments. Form tests and active scans send requests; start with a small staging scope.

04 / GET STARTED

Get started in three steps.

01

Launch the application

Choose the macOS/Windows desktop app or the source edition with Node.js 24 or later. Follow the setup section in the guide above.

02

Try the included sample

Compare baseline, changed, and fixed modes in Sample verification. Select result rows to inspect controls and trial evidence.

03

Move to your own journey

Prepare login settings and a scenario for an authorized target. Apply form regression tests, dynamic assessment, and source analysis as needed.

START WITH YOUR PROJECT

Make review part of your everyday work.

Web Security Hub

How data is handled

The application and source analysis run locally. Browser exploration communicates with the target; ZAP integration routes traffic through a local proxy. Optional AI review sends authorized SAST findings; opt-in AI assertions may send page text to the configured AI service. Desktop genetic search uses local models only; remote CLI use requires explicit permission, an API key, and a cost ceiling.

EXPLORE THE APPS / TIP

Three perspectives on your software.

Choose an app to explore its features and how to use it.