Skip to content

Releases

Kali MCP v0.1.0-beta.15 — Reliable Update Discovery and Core DNS Recovery

Choose a tag to compare

@github-actions github-actions released this 09 Nov 13:31
f69418b

Kali MCP v0.1.0-beta.15 — Reliable update discovery and Core DNS recovery

This prerelease addresses a real Raspberry Pi 5/Kali upgrade case: the beta.13 host CLI could discover beta.14, but the unprivileged Docker Core could not resolve api.github.com. The Control Center showed "Non verificata", even after the operator restored Core DNS, until a fresh check was performed.

Fixed

  • Release-check feedback: the protected /api/v1/updates/check endpoint returns the actual GitHub result or an actionable HTTP 503 diagnostic. It no longer reports unconditional success on a DNS/HTTP error.
  • Automatic recovery: failed background GitHub release checks retry with bounded 30 → 60 → 120 → 240 → 300-second backoff, rather than waiting up to six hours for the usual successful-check interval. A manually requested check bypasses the backoff.
  • Dashboard clarity: the Overview and Updates screens distinguish verified, unverified, empty-channel and failed GitHub lookups, show the selected channel, and provide an estimated retry time after failure.
  • Optional per-Core upstream DNS: KALI_MCP_DNS_SERVER is a validated IPv4/IPv6 literal, chosen by the operator in the SSH wizard or authenticated deployment settings. Empty preserves Docker's normal DNS. A separate Compose overlay applies it only to kali-mcp-core, never the whole Docker daemon or Raspberry host.
  • Upgrade persistence: a beta.15 installer invoked with --upgrade can preserve an already configured, single explicit DNS server from the running Core's Docker HostConfig.Dns. The setting is carried into root-owned hybrid deployment files before the Core is recreated; it survives later Core restarts, browser-origin changes and upgrades.
  • Regression tests: failed GitHub checks/backoff, explicit DNS validation, wizard persistence, overlay rendering, standard hybrid smoke and Core-to-Agent IPC.

No target CIDR, allow-all, host/root permission, auth or Cloudflare policy is changed. A permissive network scope remains an intentional operator decision for authorized tests.

Upgrading a beta.14 appliance that uses a local DNS override

Important: beta.14's bundled CLI upgrade invokes the old beta.14 installer, which does not know how to preserve dns.override.yml. For a first transition to beta.15, use the verified beta.15 release installer instead of the old CLI's upgrade command. The new installer discovers the existing explicit Core DNS, migrates it and applies its new Compose overlay.

On the Kali host over SSH, with no active assessment job:

mkdir -p ~/kali-mcp-beta15 && cd ~/kali-mcp-beta15
TAG=v0.1.0-beta.15
BASE="https://github.com/the-code-learner/kali-mcp/releases/download/$TAG"
curl -fL --retry 3 -o install-hybrid.sh "$BASE/install-hybrid.sh"
curl -fL --retry 3 -o kali-mcp-hybrid.yml "$BASE/kali-mcp-hybrid.yml"
curl -fL --retry 3 -o SHA256SUMS "$BASE/SHA256SUMS"
sha256sum --check SHA256SUMS
sudo env KALI_MCP_VERSION="$TAG" KALI_MCP_RELEASE_CHANNEL=beta \
  bash ./install-hybrid.sh --upgrade

The installer performs a SQLite backup and checks the Core/Agent after recreation. It does not replace Docker daemon DNS, host resolver files or your selected network scope.

Afterward:

readlink -f /opt/kali-mcp/current
sudo docker inspect kali-mcp-core \
  --format 'DNS={{json .HostConfig.Dns}} Health={{.State.Health.Status}}'
sudo docker exec kali-mcp-core /opt/venv/bin/python -c \
  'import socket; print("GitHub DNS:", socket.gethostbyname("api.github.com"))'
sudo docker exec -e PYTHONPATH=/opt/kali-mcp/current/src kali-mcp-core \
  /opt/venv/bin/python -c \
  'from kali_mcp.broker_client import call; print(call("/run/kali-mcp-agent/agent.sock","ping",timeout=5))'

Check Control Center → Aggiornamenti → Verifica release. If the DNS server changes with a new DHCP network, edit KALI_MCP_DNS_SERVER in the authenticated Control Center and verify the Core's active DNS. Local DNS may be necessary to resolve private services; no public DNS is assumed.

Limitations

A DNS override is not a firewall, proxy or guaranteed fix for blocked HTTPS egress. It does not diagnose all HTTP failures, repair an unreachable upstream DNS or make a privileged host shell subject to typed-adapter CIDR restrictions. A host HTTP healthcheck alone is not proof of the Core-to-Agent socket; verify both after any upgrade.

Kali MCP v0.1.0-beta.14 — Cancellable Assessments and Efficient Job Orchestration

Choose a tag to compare

@github-actions github-actions released this 09 Nov 02:15
d79502a

Kali MCP v0.1.0-beta.14 — cancellable assessments and lower-chatter job orchestration

This prerelease follows the beta.13 Raspberry Pi 5 assessment: a single authorized prompt completed a multi-hour network and Wi-Fi inventory, with many tool calls, a timed-out long port sweep, and a failed attempt to cancel a running job. It preserves the beta.13 Native Host Agent/socket architecture.

Changes

  • Real jobs_cancel: cancel queued jobs immediately; request termination of tracked running host processes and Docker sandbox containers through the existing private Unix socket. Each job has a random ID; no new TCP listener, privileged Core capability, or unauthenticated MCP endpoint is introduced.
  • Race-aware process lifecycle: job IDs travel from Core to Agent, subprocesses run in their existing independent process groups, and cancellation can arrive before the Agent starts a process. A completed job remains terminal even if a late response arrives. Running-job cancellation is acknowledged first; use jobs_wait or jobs_get to confirm cancelled.
  • jobs_wait(job_id, timeout=15): bounded long poll (0–30 seconds), with the same per-client ownership checks as jobs_get. Replaces many rapid jobs_get calls during lengthy assessments.
  • Friendlier tool search: word/synonym matching for ordinary requests such as wifi wireless scan and network discovery scan, without adding unreviewed executables or expanding permissions.
  • network_manage(action="wifi_scan"): read-only alias of the existing scan action.
  • Assessment quality guidance: distinguish passive RF observations from active network probes; label exploitability hypotheses clearly rather than claiming every reachable service is compromised.
  • Job status: timed-out broker jobs are now represented as timed_out rather than generic failed.

Explicitly unchanged: scope and privilege choices

The permissive target configuration used in the authorized lab (allow_all_targets=true) is not classified as a beta.14 defect and is not tightened automatically. The administrator's allowed_target_cidrs, denied_target_cidrs, and allow_all_targets persist across upgrades. The deny-first target policy continues to apply to typed adapters. As already documented in beta.13, arbitrary host shell commands are not universally restricted by typed-adapter CIDRs. Choose the scope appropriate to each authorized engagement.

Host/root/deployment ceilings and administrator approval remain unchanged. No forced changes are made to Wi-Fi, firewall, interfaces, NAT or the premises network.

Limitations and operational notes

  • Cancellation targets jobs launched through the registered job engine. Commands manually started within a persistent interactive PTY are still managed by terminal_close, not jobs_cancel.
  • Cancellation is best effort for processes that already exited, during Agent restart, or while Docker is unavailable. jobs_cancel confirms acceptance, not terminal completion, until jobs_wait shows cancelled.
  • A subprocess may have independently daemonized into a new session; process-group cancellation is not a full host-wide process containment guarantee.
  • The 0–30-second jobs_wait limit reduces model/tool round trips but does not itself guarantee lower model-token output on every client.
  • No scope change is made during upgrade; 192.168.137.0/24 remains excluded only on deployments that explicitly configured it.

Validation and upgrade

The beta.14 release workflow gates publication on pytest, compilation, JavaScript validation, Compose validation, a real hybrid systemd/Docker install, OAuth/API/CORS smoke checks, two Agent socket restarts, and idempotent upgrade. New regression tests cover host process-group cancellation, pre-start cancellation, queued/running jobs, long polling, immutable final states, discovery and deny-first scope.

Upgrade through Updates → Check now, selecting the newly published v0.1.0-beta.14 release when it becomes available. Check Agent online, Core online, and the configured scope after restart. A green CI result does not replace verification on the physical Raspberry Pi.

Kali MCP v0.1.0-beta.9 — WebUI Session Reauthentication and Safe Permission Forms

Choose a tag to compare

@github-actions github-actions released this 08 Nov 16:29
e366bdf

Kali MCP v0.1.0-beta.9 — Safe WebUI reauthentication for capability forms

This prerelease addresses the raw browser response
{"error":"Administrator login required"} observed after submitting
Execution capabilities → Enable/Disable on a previously open dashboard.

Changes

  • When the administrator session cookie is expired, missing or invalidated, a
    browser HTML form POST now receives 303 See Other to the superuser
    login page with an explanatory session-expired message.
  • The failed POST is discarded. No attempted capability change is queued,
    enabled, disabled, retried or replayed automatically after login.
    The administrator must return to the dashboard, select the capability and
    confirm the operation again, including password and root disclaimer as before.
  • The dashboard's asynchronous status check redirects to reauthentication on
    HTTP 401, avoiding an apparently usable page with inactive login credentials.
  • CSRF failures and protected capability-setting errors display a navigable,
    safely escaped browser message, rather than a raw JSON document.
  • Programmatic API clients continue to receive HTTP 401 with the original
    {"error":"Administrator login required"} JSON response, and retain the
    existing CSRF and error status contracts.
  • Expiry and superuser credential rotation still invalidate browser sessions.
    Cookies retain their existing four-hour maximum and Secure, HttpOnly,
    SameSite=Lax attributes; no security checks were relaxed.

What to do on beta.8 before upgrading

If a capability change shows the JSON login error, return to the main
dashboard, sign out if necessary, and sign back in to refresh the browser
cookie and CSRF token. Then reload the dashboard and repeat the intended
setting change. A failed 401 POST never enables the setting.

Installation

Install this beta using the authenticated WebUI Updates panel, if available.
After service restart, verify Installed: v0.1.0-beta.9. The installer
preserves superuser credentials and persistent settings. As always, the
core-upgrade job only confirms scheduling; check the installed version
after the detached installer finishes.

Scope and security

No OAuth PKCE, API token, MCP /mcp transport, --tools all, CORS,
systemd Host Agent, host/root privilege ceilings or Cloudflare settings are
changed. In particular, no Host Root or Host Exec permission is required to
repair an expired administrator session.

Regression tests exercise expired cookies, stale CSRF, credential rotation,
browser form redirect, API JSON contract and the non-execution of stale
capability changes. CI, the legacy Docker smoke and the hybrid systemd + Docker
smoke must pass before publishing.

Kali MCP v0.1.0-beta.8 — Public MCP Host and Browser CORS Management

Choose a tag to compare

@github-actions github-actions released this 08 Nov 16:12
cb10e1f

Kali MCP v0.1.0-beta.8 — llama.cpp WebUI / public HTTPS MCP integration

Based on the Raspberry Pi 5 / Kali ARM64 beta.7 integration report of 8 November 2026.

Fixed: public HTTPS MCP 421 Invalid Host header (P1)

The outer HTTP security gate accepted the public hostname but the MCP Python SDK's DNS-rebinding allowlist accepted only hostname:*, requiring an explicit port. Browsers usually send Host: kali-mcp.warebench.com, without :443. The SDK now gets both the exact configured public hostname and its explicit-port variant. DNS-rebinding protection remains enabled. There are no global wildcards, no reliance on client-supplied X-Forwarded-Host and no Cloudflare/TLS bypass.

SDK regression tests exercise exact public HTTPS host, :443, untrusted Host (421) and untrusted Origin (403). Hybrid HTTP smoke now exercises real OAuth and API-token MCP POST requests with portless Host (including initialize, tools/list, tools/call) after a successful CORS OPTIONS preflight.

New: MCP Browser Origins / CORS WebUI panel (P2)

  • Display Active in Core and Saved on Host origins independently and show the latest deployment state.
  • Add/remove exact HTTPS browser origins from the dashboard. All changes require an authenticated WebUI superuser, a valid per-session CSRF token, and independent superuser-password verification by the root Native Host Agent.
  • The root Host Agent schedules a dedicated systemd job. A narrow root-only script atomically updates the protected stack.env and agent.env, recreates only kali-mcp-core, checks Docker health and checks the active environment. If the change fails, it restores the previous files and attempts to restore the previous Core.
  • The Core container never receives a writable /etc/kali-mcp mount, Docker socket or host/root MCP execution entitlement.
  • The API token form has an optional Browser origin field. It validates the origin is already authorized and explicitly explains that CORS authorization and API-token authorization are distinct.
  • Check CORS tests the actual OPTIONS preflight. Providing a valid Bearer token additionally tests the SDK Host validation and real initialize and tools/list POSTs against the local MCP listener while preserving the public Host header. The test token is not logged, persisted or reflected in the result. Without a token, Host/MCP testing is clearly marked not tested.
  • Unknown origins remain blocked with HTTP 403. The allowlist is MCP-only; no administrative CORS wildcard or permissive Origin fallback was introduced.

Improved: API token usability (P3)

Responsive full-width panel; labeled inputs with desktop grid/mobile single column; a keyboard-accessible horizontally scrollable table with reachable Rotate/Revoke actions. This does not modify token permissions or secrets.

Deployment and validation

Existing installations may install this release using Updates → Check now if the current version is healthy and updates are authorized. The installer retains credentials, persistent state and browser origins. As always, verify the Installed version rather than relying on the scheduled update job.

For a browser client (e.g. llama.cpp WebUI):

  1. In Kali MCP WebUI, authorize the exact browser origin, e.g. https://llm.davidecasalin.it. Wait until Active in Core reflects it and deployment state is active.
  2. Create an API Token for the browser client; copy it once.
  3. In llama.cpp, use Streamable HTTP https://kali-mcp.warebench.com/mcp with Authorization: Bearer <API_TOKEN>, custom headers empty, and Use llama-server proxy = OFF.
  4. Optionally run Check CORS with your origin and Bearer token. Successful preflight alone does not confirm MCP functionality; check the SDK Host and initialize/tools/list results too.

The example domains are only illustrative; the actual KALI_MCP_PUBLIC_URL and allowed browser origins must match your deployment. Keep the API token secret.

No OAuth 2.0 / PKCE, CLI, host/root policy, llama.cpp --tools all behavior or remote proxy architecture is changed. No bridge/container addition is required.

Testing

CI covers exact SDK Host/Origin matching, browser-origin validation and UI CSRF, privileged Agent authorization, atomic config mutation/rollback, Docker smoke for the pinned legacy release, and hybrid systemd/Docker integration. Hybrid smoke exercises real MCP OAuth/API Bearer and the Native Host Agent's CORS configuration update with Core-only recreate. Physical Raspberry Pi and Cloudflare browser integration still require operator validation.

Kali MCP v0.1.0-beta.7 — WebUI Origin and Form Security Fixes

Choose a tag to compare

@github-actions github-actions released this 08 Nov 15:17
b76e2be

Kali MCP v0.1.0-beta.7 — WebUI origin and form submission fixes

This prerelease fixes the {"error":"origin_mismatch"} page reported when using Updates → Check now on the beta.6 dashboard. The application still requires CSRF tokens and validates Origin/Referer and Fetch Metadata for security-sensitive POSTs.

Fixes

  • The dashboard previously set Referrer-Policy: no-referrer, while the hardened ingress requires a verifiable same-origin Referer when Chrome sends Origin: null for a form POST. Dashboard responses now use Referrer-Policy: same-origin. This sends a Referer only to the same origin; it is not shared across sites.
  • For browser form submissions blocked by the Origin safeguard, return a human-readable Request blocked page with a dashboard link instead of displaying raw JSON. Programmatic API callers continue to receive {"error":"origin_mismatch"}.
  • Add regression coverage for a legitimate same-origin Origin: null request, missing Referer/Fetch Metadata, mismatched Origin and invalid CSRF token.

Recovering legacy beta.4 installations

Some appliances upgraded from beta.4 were activated with the old installer, which did not write the config.ready completion marker. The beta.7 installer now validates the existing credential and settings files and atomically writes this marker without changing them. Incomplete or insecure configurations are not silently marked ready. This migration is exercised by regression tests and the hybrid release workflow.

If the old WebUI's forms are blocked by origin checks, the first upgrade to beta.7 must be run through SSH using the beta.7 release installer, not the old /opt/kali-mcp/current/scripts/install-hybrid.sh. After installation you can manage updates normally through the WebUI.

Important: deployment origin must still match

KALI_MCP_PUBLIC_URL must be the exact HTTPS origin used to access the WebUI, without trailing path. If you open https://kali-mcp.warebench.com, the value must be https://kali-mcp.warebench.com. A misconfigured origin is not bypassed by this fix. You can inspect just that nonsecret setting via:

sudo grep '^KALI_MCP_PUBLIC_URL=' /etc/kali-mcp/stack.env

The update keeps OAuth, MCP API tokens, security ceilings and --tools all unchanged. Host Root and Host Exec are not required for authorized WebUI updates.

Upgrade

Use the WebUI Updates → Check now after installing this release (or the SSH installer if an incorrect public-origin configuration prevents browser forms). Verify Installed: v0.1.0-beta.7 in the dashboard rather than relying on an update job's completed state.

See the CI and hybrid installation checks for automated regression results. Physical device and Cloudflare integration still require validation.

Kali MCP v0.1.0-beta.6 — Clear WebUI Update Status

Choose a tag to compare

@github-actions github-actions released this 08 Nov 14:50
76570b4

Kali MCP v0.1.0-beta.6 — WebUI Update Clarity

This prerelease follows v0.1.0-beta.5 and leaves the OAuth, API tokens, native Host Agent, permission ceilings, and --tools all behavior unchanged.

Improvements

  • Installed vs latest: The WebUI Updates panel displays the release version of the currently running Core separately from the newest eligible GitHub Release.
  • Actionable permission guidance: When WebUI upgrade is disabled, the interface explains whether the native Host Agent, the deployment ceiling KALI_MCP_ALLOW_MCP_UPDATES, or the administrator's MCP Updates toggle is blocking it.
  • No-op protection: The WebUI disables the installation button when no newer version can be verified and rejects attempts to install the same or an older release.
  • Clear scheduling semantics: Clicking Install requests a detached systemd upgrade. A job marked completed means the upgrade was scheduled, not that the new release was installed. Verify completion when the dashboard displays the new Installed version after Core restarts.
  • Usable browser errors: Blocked update requests now render a human-readable page with navigation back to the dashboard instead of a raw JSON error document.
  • Browser cache refresh: The version-specific dashboard script URL avoids stale JavaScript after upgrade.

Upgrade

On an existing v0.1.0-beta.5 hybrid appliance with update installation authorized, use the WebUI Updates panel to install the latest eligible release. If no installation is allowed, enable the deployment ceiling through the SSH wizard and the MCP Updates toggle with superuser approval. The installer preserves the existing configuration and creates a WAL-consistent SQLite backup.

Check the Installed field on the dashboard after services restart. Latest available alone is not evidence that an upgrade succeeded.

This prerelease passed CI, Docker and hybrid systemd/Docker smoke checks. Physical hardware, Cloudflare and llama.cpp browser behavior should still be validated on your deployment.

Kali MCP v0.1.0-beta.5 — Installer Recovery + MCP API Tokens

Choose a tag to compare

@github-actions github-actions released this 08 Nov 14:32
4c91909

Kali MCP 0.1.0-beta.5 (candidate — not yet released)

Scope and compatibility

This is the next hybrid beta candidate based on 0.1.0-beta.4.
It retains the systemd Host Agent, non-privileged Docker MCP Core, existing
OAuth 2.0 Authorization Code + PKCE S256 (including discovery, registration,
access/refresh and rotation), and the single /mcp endpoint.

Authentication

  • Named, auditable API credentials: one-time display, random 384-bit secrets,
    SHA-256 digests in SQLite, 1–90-day expiry, immediate revocation,
    last-used metadata and optional per-tool allowlists.
  • New WebUI MCP Clients → API Tokens, with superuser reauthentication/CSRF.
  • Local sudo-authenticated CLI api-tokens, api-token-create,
    api-token-revoke, api-token-rotate. Rotation revokes the previous\n key in the same SQLite transaction and displays the replacement just once.\n Never place a secret in command arguments.
  • Identity audit separation: mcp:oauth:<client_id> and
    mcp:api:<token_id>. Keys are invalidated when the issuing superuser
    credential fingerprint changes.
  • Browser direct: Authorization: Bearer <API_TOKEN>, or the optional
    X-Kali-MCP-API-Key. Keep OAuth clients on the existing grants.

HTTP protection and browser support

  • MCP-specific exact-origin allowlist with KALI_MCP_BROWSER_ORIGINS.
  • OPTIONS /mcp preflight, CORS on MCP responses/errors and SSE, no CORS
    for admin/session routes. Duplicate or mixed authentication headers rejected.
  • Browser-safe login Referrer-Policy with guarded Origin: null handling
    when same-origin Referer and Fetch Metadata both agree.
  • MCP request ingress rate limiting plus existing Admin/OAuth throttles.

Hybrid installer reliability

  • --resume, --repair, --reconfigure, --upgrade; partial config
    detection and a last-written config.ready marker.
  • Atomic 0600 environment file replacements with fsync and safe retry;
    superuser hash preserved on resume; no secrets in installer phase logs.
  • Exclusive flock, durable phase diagnostics under
    /var/log/kali-mcp/install.log, release-directory traversal
    normalization, checks as Core uid 10001 and Host Agent execution user.
  • Online SQLite backup under /var/lib/kali-mcp/backups/ before upgrade.
    Rollback swaps binaries/release symlink; it does not downgrade database
    schema
    . The additive api_tokens table does not replace OAuth tables.
  • Cloudflared APT failure is nonfatal: reuse an existing binary or install
    an appropriately verified official package manually; no unverified binary
    downloads by the wizard. Installer prints absolute sudo CLI paths.

How to test on Kali ARM64

Run the installer from a pinned candidate commit/archive and then:

sudo /usr/local/bin/kali-mcp status
sudo /usr/local/bin/kali-mcp api-tokens
sudo /usr/local/bin/kali-mcp api-token-create "llama.cpp-WebUI" --days 30

Set the browser origin in /etc/kali-mcp/stack.env (or run the wizard):

KALI_MCP_BROWSER_ORIGINS=https://llm.davidecasalin.it

Restart the Core using the systemd hybrid installer or normal Docker Compose
procedure; the /mcp URL remains unchanged.

Validation gates before public tag

GitHub Actions CI + hybrid/legacy smoke must pass. Additionally test real
Chrome/Firefox HTTPS login, OPTIONS through Cloudflare, direct llama.cpp,
llama.cpp /cors-proxy behind Nginx Basic Auth, ARM64 clean install and
interruption during each wizard phase. The separately observed installer
crash B05 has no captured original traceback and cannot be root-caused yet.

Host/root operations, network modification, package installs and MCP updates
are still protected by the original host-owned controls and deployment ceilings.

Kali MCP v0.1.0-beta.13 — Native Host Agent IPC Recovery and Reliable Scope Editor

Choose a tag to compare

@github-actions github-actions released this 08 Nov 21:32
9a46acc

Kali MCP v0.1.0-beta.13 — Native Host Agent socket recovery and safe scope editing

This prerelease fixes regressions discovered on a real Raspberry Pi 5 running beta.12. In that session systemd reported the Native Host Agent active, but the Core reported Broker unavailable: FileNotFoundError and the new Control Center showed Agent offline and 0/0 variables. Recreating only the Core restored the IPC ping, supporting the stale Docker bind-mount diagnosis.

Fixed: agent socket remains visible across systemd restarts

  • systemd/kali-mcp-agent.service now sets RuntimeDirectoryPreserve=yes for /run/kali-mcp-agent. This keeps the directory inode stable when the service restarts. The unprivileged Core mounts the directory read-only; it does not receive new host or root permissions.
  • The installer verifies a real IPC ping from inside the Core, rather than treating a healthy HTTP endpoint as sufficient.
  • The authenticated deployment-settings worker similarly verifies Core-to-Agent IPC after a service restart, before reporting settings applied.
  • A new hybrid CI gate restarts the Agent twice while keeping the Core running, verifies the directory device/inode match and the real authenticated socket connection, and checks the Core remains healthy.

Fixed: Control Center accurately reports offline configuration

  • If Native Host Agent settings cannot be read, All Settings lists the known variables as unavailable, rather than showing an empty inventory or inventing defaults. All mutation controls are disabled. Secret values stay masked.
  • The snapshot distinguishes Agent reachability from authoritative deployment-inventory availability. When Agent is unavailable, it separately reports the actual running Core's effective CIDR policy for diagnosis.
  • Scope editing preserves CIDRs typed by the operator during scheduled application and Core restarts. A successful form request now returns HTTP 202 Scheduled for SPA requests, not a misleading success after a redirect.
  • The UI only declares the scope applied when the Native Agent inventory, running Core's effective scope and deployment worker status all agree. It reports rollback/unverified outcomes explicitly.
  • The IPv4 preview remains labelled as a local simulation, not evidence that the CIDR blacklist is enforced by host shells or firewall.

Safe upgrade

Upgrade through Updates → Check now after confirming this release is listed. The existing beta.12 update path launches the previous detached supervisor; the beta.13 worker's monitoring and directory-preservation fixes take effect after its installation and service restart.

The only confirmed production recovery in the reported case was to recreate the Core container, without reinstalling or changing the .env files. After upgrading to beta.13, verify Core online · Agent online, that All Settings shows the actual configured variables, and 192.168.137.0/24 is persisted and reflected by capabilities_get (not merely shown as a local preview).

This release does not add host-wide egress firewall enforcement: denied CIDRs apply to typed Kali adapters; unrestricted Host Exec/terminal can bypass typed-adapter scope. Leave those capabilities disabled if host-wide isolation is required.

Validation

GitHub CI must pass Python tests, JavaScript syntax checks, Docker smoke, and hybrid systemd/Docker smoke. The hybrid gate includes the extra two Agent restarts with the same Core process as well as idempotent upgrades, OAuth 2.0, API Bearer, CORS, 100 MB file-transfer contracts and existing privilege boundaries. Real-world Cloudflare integration must still be verified on the Raspberry.

Kali MCP v0.1.0-beta.12 — Control Center UI/UX and Persistent Upgrade Timeline

Choose a tag to compare

@github-actions github-actions released this 08 Nov 20:51
f5ed511

Kali MCP v0.1.0-beta.12 — Production Control Center

This prerelease promotes the user-reviewed beta.11 UI/UX staging to the real, authenticated Kali MCP WebUI, retaining its Console Dark / Light visual languages, responsive sidebar, grouped settings, and live job/audit panels. The staging's simulated interactions have been replaced with protected backend operations. This is a UI deployment, not a change to the public MCP protocol or any unrestricted host permission.

What changed

Control Center is now the default authenticated WebUI at `/`. The old dashboard remains available at `/legacy` for diagnostics and a reversible UX migration.

Navigation: Overview, Updates, Authorized Scope, Permissions, Clients & API Tokens, CORS, File Transfers & Jobs, Audit, All Settings and Guide. The 17 beta.11 editable deployment variables remain accessible, alongside masked, installer-managed settings. Admin modifications still require a valid cookie, CSRF and superuser confirmation. Browser origins remain separate from API authorization and do not bypass OAuth or Bearer authentication.

The front end uses the same approved staging CSS for responsive/mobile and dark/light layouts but does not synthesize data or mark fake changes as completed. Data comes from the authenticated, no-store `GET /api/v1/ui/snapshot` endpoint, which aggregates the actual Native Host Agent, deployment settings, origins, jobs, audit, tokens and OAuth client inventory. The dashboard retries status calls automatically after transient service interruptions and redirects expired admin sessions to login without replaying the pending POST.

API token secrets continue to appear once only. File transfer permissions remain per-MCP-client; the admin dashboard does not show arbitrary MCP client file contents or pretend to offer a privileged direct upload.

Real update monitoring across a Core restart

The beta.11 UI showed a `core-upgrade` job that only tracked scheduling. The beta.12 update path uses a detached root-owned systemd upgrade supervisor:

  • `scripts/upgrade_supervisor.py` starts the fixed, signed/tag-checked `install-hybrid.sh --upgrade` workflow and watches its installer phase events.
  • The supervisor writes a minimal, root-only, atomic `/var/lib/kali-mcp/update-status.json` (0600), independent of Core/Docker lifetimes.
  • The Native Host Agent exposes only sanitized state through `update_status_get` on its existing protected Unix socket.
  • The UI distinguishes `scheduled`, actual `running` phases, `completed`, `failed`, and `rolled_back`. A `completed` result requires an installer exit code of zero and verification of the requested deployed release, a healthy Docker Core, and an active Host Agent/socket.
  • Each client polls the authenticated snapshot every three seconds, reattempting after a temporary outage without resubmitting installation requests.
  • The progress bar shows workflow phases, not a fabricated download byte percentage.

An update that cannot safely be confirmed is marked failed, not silently shown as successful. Existing installer rollback and configuration backups remain in force; the supervisor reports their outcome instead of replacing their safety logic.

Security and compatibility

  • New frontend assets are local: `control-center.html`, `control-center.css`, `control-center.js`. Inline executable scripts are forbidden by a strict Content-Security-Policy.
  • The snapshot never exposes stored Bearer secrets, refresh tokens, superuser passwords, private keys or root installer logs.
  • Admin UI actions use the existing same-origin form endpoints, CSRF and separate superuser password checks. Batch changes are restricted to a maximum of three whitelisted non-scope settings, with CIDRs confined to their dedicated, strongly confirmed form.
  • Host Root / Host Exec, OAuth 2.0 with PKCE, DNS rebinding, the Cloudflare public URL, API Bearer, browser origins, one-time OpenLink/100 MB Base64 file transfers and the unprivileged Core topology are unchanged.
  • The explicit CIDR blacklist continues to protect typed adapters; it is not an OS-level network firewall for unrestricted host shell commands, even with Allow all disabled.

Known limits: File uploads and per-MCP-client file listings are still performed through authenticated MCP tools, not an admin file browser. Visual progress steps approximate named installer stages; no unmeasured download percentage is claimed. Offline demo data is never mixed into production.

Validation and rollout

Tests cover authenticated Control Center shell/CSP, redacted live snapshot, batch action CSRF and key restrictions, upgrade state persistency and duplicate scheduling, detached upgrade outcome and no false rollback, JS syntax, previous UI compatibility via `/legacy`, plus existing OAuth, OpenLink, CORS, Raspberry-style systemd + Docker smoke and upgrade preservation.

Update through the authenticated Updates screen after verifying this GitHub prerelease is eligible. Confirm Installed: v0.1.0-beta.12 and watch the real installer timeline. After an expected Core restart, the client will reconnect; do not interpret the scheduling job alone as success. For a temporary UI regression, navigate to `https:///legacy`; do not alter Host Root permissions as a workaround.

Kali MCP v0.1.0-beta.11 — Deployment WebUI, Allow All and CIDR Blacklist

Choose a tag to compare

@github-actions github-actions released this 08 Nov 19:23
832557f

Kali MCP v0.1.0-beta.11 — WebUI Deployment & Security Settings

Designed after live Qwen 3.8 Flash Next testing against a Raspberry Pi Kali MCP beta.10. This prerelease closes the gap where the WebUI exposed permission toggles but target scope and most deployment variables still required SSH editing.

New: Deployment & Security settings

The authenticated dashboard now links to Deployment & Security. It shows every known `KALI_MCP_*` variable from the hybrid `stack.env` and `agent.env` configuration. Sensitive values are masked; system identity and socket paths are identified as installer-managed rather than exposed as arbitrary editable strings.

Editable, strictly validated settings include the authorized target policy, deployment privilege ceilings, API Bearer authentication flag, release channel, update interval, job timeout, public origin, listening port and bind address. The existing dedicated Browser Origins/CORS panel continues to manage its own list.

Edits require a valid administrator session and CSRF token, plus a second password verification by the root Native Host Agent. A fixed detached systemd worker updates only approved keys in both protected environment files (0600), starts a controlled Core recreation and Agent restart, verifies runtime values and service health, and attempts rollback if activation fails. The dashboard distinguishes scheduled from the final deployment state. No root filesystem or Docker socket is mounted into the Core.

Internal variables (broker socket, agent identity, superuser credential file, deployment topology) remain visible with descriptions but cannot be arbitrarily edited; secrets may only be rotated through their dedicated protected workflows. This is intentional hardening, not missing fields. Edits to public URL, bind or port can interrupt remote access; use recovery over SSH if a tunnel is externally misconfigured.

New: Authorized Scope with Allow all / Blacklist

The target configuration is now three explicit settings:

  • `KALI_MCP_ALLOWED_CIDRS` — comma-separated IPs or CIDRs (default: `127.0.0.1/32`).
  • `KALI_MCP_DENIED_CIDRS` — explicit always-excluded IPv4/IPv6 CIDRs or IPs (default empty).
  • `KALI_MCP_ALLOW_ALL_TARGETS` — `false` by default. When set to `true`, all valid IP targets are eligible except those matched by the blacklist.

Evaluation order: any excluded address => deny; otherwise, Allow all => permit; otherwise, IP must match an allowed CIDR. Every address returned by DNS for a hostname must pass both checks. A blacklisted subnet wins even if covered by a broader allowed CIDR. All changes are audited, and enabling Allow all requires at least one explicit exclusion and typing `ALLOW ALL` in the protected WebUI form.

For the network observed in the Qwen test, an example configuration for an engagement that permits every other target is:

```ini
KALI_MCP_ALLOW_ALL_TARGETS=true
KALI_MCP_DENIED_CIDRS=192.168.137.0/24
KALI_MCP_ALLOWED_CIDRS=127.0.0.1/32
```

This is only an example: use Allow all only if the authorized engagement really covers all other addresses. A safer choice is to keep Allow all disabled and list only the authorized test networks, plus exclusions.

Qwen can read the new scope using `capabilities_get`, but cannot update it. `tools_execute` typed adapters apply the deny-first policy.

Important remaining boundary: unrestricted Host Exec and interactive terminals are separate privileged execution capabilities. Arbitrary shell commands are not network-filtered by the typed adapter scope. Therefore, a blacklist alone does not guarantee packets to excluded networks cannot originate from a deliberately enabled generic host shell. If strict exclusion is required, keep generic host execution disabled while using typed adapters, until an OS-level egress enforcement mechanism is provided. The WebUI warns about this distinction explicitly. This build does not falsely claim host-wide network enforcement.

Tests

Unit tests cover default loopback-only policy, allowlist, Allow all with excluded subnet, mixed DNS answers, malformed CIDRs, 64-entry limit and secret redaction.

Integration tests cover CSRF, independent superuser confirmation and Allow all acknowledgment, rejection of unknown/internal settings, atomic writes preserving secrets and attempted rollback after a simulated unhealthy restart.

Hybrid systemd + Docker smoke exercises a real authenticated scope update to both environment files, Core recreation, Agent restart, and subsequent OAuth/API token operations. CI and release gating must pass before publication.

Upgrades are installed using the existing WebUI Updates panel; verify the installed version in the dashboard once restarted. No automatic adjustment of your existing authorized scope occurs during the upgrade.