Mail between two nodes that had just exchanged contact addresses never
arrived readable. Fixes along the whole path, each covered by a test:
- Status: the web UI's own requests get the full wormhole status, so it
stops treating a ready node as not ready.
- Invites: the owner node named in an invite is asked first, with an
onion-sized timeout; an import that could not reach it finishes in the
background and replaces the keyless contact it left behind.
- Aliases: no one-sided mailbox alias is made up on compose; both sides
address mail by node id until an alias is agreed.
- Signing: each mailbox request is signed once, keeping polls under the
sign rate limit.
- MLS: the welcome is sent with the mail until the peer answers, and the
receiver joins as the identity whose key package the sender used, with
that identity's DH key.
- Sender seal: a seal addressed to the node's DM identity opens even when
the browser names the node's transport identity.
- Gate rooms: the chat controller restarted the live stream and the room
long-poll on every status refresh, about 60 requests a second, which
exhausted local ports; it now reacts only to access changes, and the
stream waits a minute between tries when there is no admin session.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
A fresh-clone Docker test showed that joining Infonet worked after #760,
but everything after it did not:
- Gates and DMs still needed the admin key. Every gate, DM and identity
route the web UI calls now takes the proxy's operator-client token
(require_operator_client, or the new require_operator_client_or_admin
for routes that also take scoped admin tokens). Both copies of routes
defined in main.py and in routers/wormhole.py are switched, and an
unguarded duplicate of GET /api/wormhole/gate/{gate_id}/key is guarded.
Wormhole restart and the review, witness-import and transparency
publish tools stay admin-only.
- The backend only trusted browser origins on port 3000. The proxy sends
the token only after its own same-origin check passed, so the token now
stands for that check and a UI on any port works.
- LAN mode shares the dashboard with other devices, which can send any
Host header, so there the proxy withholds the token and the backend
ignores it: every browser signs in with the admin key, as before.
- A missing default local bootstrap manifest was reported as a bootstrap
error, so every new node showed "bootstrap warning". The file is
optional (peers come from the bundled seed and the signed swarm
manifest); a manifest path the operator configured must still exist.
- The README Docker quick start never created ADMIN_KEY, so the first
`docker compose pull` failed. It now creates one (bash and PowerShell)
and says what the key is for.
Tests that bypassed auth by overriding the old guards also override the
new ones.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The Docker frontend runs the standalone server with HOSTNAME=0.0.0.0, so
request.nextUrl.origin is http://0.0.0.0:3000 while the browser is on
http://localhost:3000. isAllowedBrowserRequest compared the browser's
Origin with that, so every POST (gate commands, admin unlock, join) failed
with "Cross-origin privileged request denied".
The own origin now comes from the Host header the browser connected to
(a cross-site page cannot set it), falling back to nextUrl.origin if the
header is missing or malformed. The operator-client host check uses the
same value, so behind a 0.0.0.0 bind it no longer treats every request
as coming from an IP address.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Joining Infonet from the UI failed with "operator authentication required"
unless the user had first unlocked admin with the admin key. That is the
first thing a new user does, so it hit everyone.
The frontend proxy now presents an HMAC of the admin key in
X-SB-Operator-Client, only when the page was reached by a name people use
for their own node (localhost, an IP, a LAN or single-label name, a
Tailscale name, or a configured host), and strips any copy of that header
a browser sends. The backend's new require_operator_client accepts that
token from an allowed origin, and otherwise falls back to the admin-key
check. Only /api/wormhole/join uses it; admin controls still need the key,
and a caller reaching the backend directly still gets 403.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
With Reticulum on, DMs and gate posts used to wait until both Tor and
Reticulum were ready. Now:
- Normal mode needs Tor only. DMs keep going through the Tor relay, gate
posts publish over Tor first, and Reticulum joins in when it is up.
- Maximum privacy (off by default, labelled slow) sends DMs and gate posts
only over Reticulum inside Tor and waits while either is down. It never
falls back to the relay, and this node's own gate posts are not served
over the Tor peer push or pull, so no peer can tell which node wrote
them.
- When Tor is down, queued DMs and gate posts ask right away whether to
send over a direct Reticulum link, saying what that gives up (the hub
sees your IP address; watchers see you use Shadowbroker; content stays
end-to-end encrypted and the recipient still cannot see your IP).
"Send over Reticulum" covers everything already waiting. "Don't ask me
again" asks "Are you sure?" first, then makes the direct link the
automatic backup. The direct link opens only after that consent and
closes as soon as Tor is back.
- Settings has the maximum-privacy switch and a way to be asked again.
- A hub node also offers its hub port on its onion address.
- Only the primary backend runs Reticulum, and Tor-tier checks read its
status in-process, so one node does not announce two identities.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Honour a per-message weaker-privacy approval for dm and gate release
On a node with RNS enabled but only one private transport up, dm and gate
items wait for private_strong. The "send with weaker privacy" approval
returned ok but did nothing: evaluate_network_release ignored it, the
worker wiped it on every pass for gate items, and the outbox overlay only
handled dm, so gate items never showed weaker_privacy_approval_required.
An explicit per-item approval now lets that one item release at
private_transitional, never lower. Without it the floor (Hardening Rec #4)
is unchanged and items stay queued. Contact-wide relay policies do not
lower the floor, and MESH_PRIVATE_RELEASE_APPROVAL_ENABLE=false disables
it entirely. Gate items now get the approval prompt in the outbox status.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
* Show queued gate posts and the weaker-privacy prompt in the gate view
Gate posts are sealed in the local private outbox and can wait there for
private_strong, but no gate UI showed that. The approval prompt existed
only in the DM compose panel, so a stuck gate post looked "posted".
The Infonet gate view now lists this node's queued gate posts above the
composer. When the backend reports weaker_privacy_approval_required it
shows "Keep waiting" (first) and "Send with weaker privacy", which call
the existing private-delivery action route. It polls only while a post
is waiting. The Mesh Terminal says a post is queued instead of "Posted".
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
---------
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
ip-api.com's free tier refuses HTTPS, so the IP dossier, the subnet
sweep and the entity graph all came back without a location. They now
read the free DB-IP Lite city and ASN databases stored in the data
folder, so the IPs being investigated are never sent to anyone.
- services/geoip_local.py: downloads the two files on the first IP
lookup (about 65 MB), checks each new file before it replaces the old
one, and keeps one copy. A daily job fetches a file only when a new
month's is out and only on installs that already have one.
SB_GEOIP_AUTO_UPDATE=0 turns downloading off.
- The sweep keeps its scan results when no location is available.
- The dossier credits DB-IP (CC BY 4.0) and no longer shows a risk
level or proxy flags it does not have.
- Adds maxminddb 3.2.0 to read the files.
Co-authored-by: Claude Opus 5.5 <noreply@anthropic.com>
Tighten access checks on a few backend endpoints, remove unused
duplicate route definitions from main.py, and add tests.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The sanctions index loaded only OpenSanctions us_ofac_sdn, so the recon and
whois/IP matches could not return a BIS Entity List, Military End User,
Unverified List, OFAC non-SDN, DoD 1260H, UFLPA or FCC Covered List party.
Load OpenSanctions us_sanctions (SDN, CSL, non-SDN, 1260H, UFLPA) and
us_fcc_covered_list, which is outside us_sanctions, with the same parser.
An entity in both files is kept once and carries every dataset. Hits now
include their datasets, and the source labels say what was screened.
C2IntelFeeds (github.com/drb-ra/C2IntelFeeds, CC BY-NC-SA 4.0) lists
likely Cobalt Strike team servers from the last 30 days. Each IP is
located with the same cached RIPEstat lookup as ViriBack, and both feeds
share the per-poll lookup budget. Credited in the Osiris notice and the
README source table.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cameras (all keyless public feeds, found in OSIRIS, checked live on
2026-11-18 and sampled through the media proxy):
- Minnesota MnDOT 511 map API: ~1,530 cameras, ~1,250 with live HLS
- DriveBC (British Columbia): ~1,050 stills
- Quebec 511: ~680 MP4 clips (proxy sends the Referer the host needs)
- City of Ottawa: ~400 stills; its MTO highway cameras are skipped
because 511 Ontario already carries them
- New England 511 (VT, NH, ME): ~360, on the existing IBI 511 ingestor
- City of Toronto: ~340 stills
- City of Calgary: ~220 stills
- Estonia Transpordiamet road-weather cameras: ~180 stills
- Saskatchewan Highway Hotline and PEI 511, on the IBI 511 ingestor
Both media proxy copies allow the new hosts.
Malware C2 layer: adds the ViriBack C2 Tracker (C2 panels reported in the
last 180 days), placed by RIPEstat's GeoLite lookup over HTTPS and cached
for a day; Cloudflare front addresses and unlocatable IPs are skipped.
The dump is reused for 30 minutes and new lookups are capped per poll.
Feodo Tracker stays. The layer panel label now names both sources.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Nothing in the repo imports satellite.js; it was only listed in
package.json. Removing it instead of taking Dependabot's 6 -> 7 bump (#720).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The two packages pin each other's exact version as a peer, so Dependabot's
separate PRs (#719 vitest, #721 coverage-v8) each failed npm ci. This bumps
both at once. Full suite on vitest 5.1.0: 128 files, 1125 tests passed.
dependabot.yml gets a "vitest" npm group (vitest, @vitest/*) so future
bumps of these arrive as one PR.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
URLhaus now needs an Auth-Key, and its recent-URL entries carry no country.
The old code put every country-less entry on the first centroid in the
table (Afghanistan) and read a field name the API doesn't use, so a key
alone would have stacked 100 dots over Afghanistan. The layer is now Feodo
Tracker only.
Feodo can go months without listing a new C2 server, which left the layer
showing a few old dots and looking broken. The fetcher now reports the
newest last_online among the plotted servers, and the layer panel's
source line reads "abuse.ch · none new since <Mon YYYY>" once that is two
weeks old, or "no C2 servers listed" when the list is empty.
README, the OpenClaw skill doc and two code comments no longer mention
URLhaus.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Address review feedback on #709:
- GlobalTicker: return null while stocks is still undefined so users
with finance enabled never see a flash of the offline state before
the first /api/live-data/slow response arrives. {} (feed off) still
renders the bar.
- Fresh installs: ticker starts closed when the backend reports no
market data, so the bar only appears after an explicit MARKETS click.
Only an unambiguous stored 'false' counts as a past user choice
(older builds auto-wrote 'true' on every load); auto state is no
longer persisted to localStorage.
- Shorter, quieter offline text (no amber): 'MARKETS OFFLINE · see
FINANCIAL_ENABLED in backend/.env'.
- Drop unused imports in GlobalTicker (useState, TrendingUp, ChevronUp).
Verified: eslint 0 errors; tsc --noEmit adds no new errors (178
pre-existing, all in *.test.ts fixtures); vitest 128 files / 1125
tests pass.
- Favicon and Apple touch icon built from the new SB mark
- Desktop (Tauri) icons regenerated from the new mark on a dark tile
- README header and FLIR screenshot replaced with current-UI images
kept in docs/images (the old GitLab upload paths were 404 on GitHub)
- Allow docs/images/ in .gitignore
- Browser tab title now reads ShadowBroker
Refs #707
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Clicking the Markets tab toggled a bar that rendered null when
/stocks was empty (FINANCIAL_ENABLED unset), so the tap appeared dead.
Render an explicit offline hint instead.
The merge-conflict resolution (3f1c882) reverted upstream d7a7595
"Patch runtime dependencies and migrate MapLibre worker integration",
switching to a default import that maplibre-gl does not provide.
- back to namespace import: maplibre-gl has no default export (TS1192)
- restore maplibregl.setWorkerUrl('/maplibre-gl-worker.mjs'), which
next.config.ts copies from node_modules into public/ at build time
- VoiceMicButton: put opacity-50 back on the opt-in-required and
lean-unavailable states; the restyle had dropped it, breaking the
section 5.2 render-matrix test
- uv.lock: black 26.3.1 -> 26.10.1 and certifi 2026.2.25 -> 2026.10.23
for newly published advisories
- CI audit step: install filelock>=4.2.1 alongside pip-audit; the
flagged filelock 4.1.0 is pip-audit's own dependency, not the backend's
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Resolve dependency conflicts by keeping the newer version of each package,
except maplibre-gl, which stays on 6.x because this branch migrated the map
worker to MapLibre 6 (main still pins 4.7):
- frontend: framer-motion 14.9, hls.js 1.7.4, lucide-react 1.66,
maplibre-gl 6.14, @types/node 26, vite 8.3.5, vitest 4.1.12
- backend: apscheduler 3.11.3, cachetools 7.2.8, cryptography 50.0.2,
keep anyio >= 4.14.2
- package-lock.json and uv.lock regenerated from the resolved manifests
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Brings the app into the same visual family as shadowbroker.dev: deep-navy
glass panels, Chakra Petch / Inter / JetBrains Mono, cyan-blue accents and
the shared logo mark.
- Display menu (VIEW): EO / FLIR / NVG / CRT sensor modes that re-tint the
UI and grade the map, plus basemap, map tone and HUD colour options
- Merge the Shodan, Recon, Supply Chain, Cyber Threats and AI Intel cards
into one tabbed TOOLS card so Data Layers gets the column
- Map alert callouts: at most two, kept clear of the side rails, screen
edges and offline banner, with notch or leader-line anchors
- Label declutter against HUD, callouts and cluster bubbles
- Scale for 1440p (1.125x HUD, 1.2x dialogs) and 4K, with dialog heights
capped to fit the screen
- Dossier footer pinned outside its scroller; related-coverage list no
longer repeats the lead story
- Escape closes the changelog, onboarding and startup-cache dialogs
- COMMS starts collapsed below 1200px tall; compact POTUS fleet card
- Many smaller polish fixes across news, legend, settings and status bar
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The WS URL builder offset any non-3000 frontend port (8302-3000+8000=13302),
which nothing listens on when 8302 is a plain published mapping. Keep the
offset only for the genuine dev side-by-side range 3000-3999, dial the
default backend port 8000 otherwise. NEXT_PUBLIC_BACKEND_PORT still wins.
Both found by @BeauBoorman running Shadowbroker live (#666).
Cyber threats: CISA KEV dateAdded values are date-only ("2026-11-03"), so
fromisoformat() returns naive datetimes and subtracting them from an aware
"now" raised TypeError. The bare except skipped every entry, so the layer
always showed zero recent CVEs from a healthy catalog. Parse them as UTC.
AIS: with every ship layer off the stream is stopped on purpose, but the
banner still blamed AISStream (and suggested an AISHub signup) and
/api/health reported "degraded" when AIS_API_KEY was set. ais_proxy_status()
now reports ship_layers_active; the banner and the health escalation skip
that case. Older backends without the field keep the old behavior.
Tests for both run in the CI backend smoke set; new banner tests cover the
frontend.
Co-Authored-By: Beau Boorman <216379357+BeauBoorman@users.noreply.github.com>
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Both images and CI run Node 24, but the frontend was typed against
@types/node 26, so TypeScript would accept Node 26-only APIs that fail at
runtime. Pin to ^24 (resolves 24.19.2) and stop Dependabot proposing major
@types/node bumps. Supersedes #670.
Typecheck (no non-test errors), lint (0 errors) and all 874 frontend
tests pass.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>