diff --git a/.DS_Store b/.DS_Store
new file mode 100644
index 0000000..a6b917a
Binary files /dev/null and b/.DS_Store differ
diff --git a/.claude/launch.json b/.claude/launch.json
new file mode 100644
index 0000000..a3594c1
--- /dev/null
+++ b/.claude/launch.json
@@ -0,0 +1,11 @@
+{
+ "version": "0.0.1",
+ "configurations": [
+ {
+ "name": "landing",
+ "runtimeExecutable": "npm",
+ "runtimeArgs": ["--prefix", "landing", "run", "dev", "--", "--port", "5173", "--strictPort"],
+ "port": 5173
+ }
+ ]
+}
diff --git a/220/220 b/220/220
new file mode 100644
index 0000000..e69de29
diff --git a/LICENSE b/LICENSE
new file mode 100644
index 0000000..7e67daa
--- /dev/null
+++ b/LICENSE
@@ -0,0 +1,21 @@
+MIT License
+
+Copyright (c) 2026 BOUND contributors
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in all
+copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
+SOFTWARE.
diff --git a/README.md b/README.md
index addd99d..15d3fce 100644
--- a/README.md
+++ b/README.md
@@ -98,6 +98,28 @@ BOUND/
## Development & Security Notes
+BOUND was built from scratch during ETHGlobal Mumbai, according to the team. The team used Claude and OpenAI Codex as AI coding assistants for development, debugging, and documentation; generated changes require human review and tests. There has been no independent security audit.
+
+The GitHub Actions workflow is configured for local tests and Gitleaks but has not yet run on a hosted runner. Gitleaks Action requires a license for organization-owned repositories; no license or other secret has been provisioned here. Real-wallet and testnet runs are not part of the local suite. Browser end-to-end suites and the required metric reports remain to be integrated.
+
+## Arkiv submission evidence
+
+The testnet writer used for recorded entities is `0xe63393558e36df643347326e7e03ad5fb0e6c867` on Rabdi (chain 7794095). To query its unexpired BOUND records, run from the repository root after `npm ci`:
+
+```sh
+node --input-type=module <<'JS'
+import {createArkivRpcReader} from './integrations/arkiv/rpc.js';
+const reader = createArkivRpcReader({url:'https://rpc.rabdi.db-chain.testnet.arkiv.network',schemaTag:'bound.record.v1'});
+const records = await reader.query({owner:'0xe63393558e36df643347326e7e03ad5fb0e6c867'});
+console.log(records);
+JS
+```
+
+Results change as entities expire. A read on 2026-11-07 returned 10 records; this does not demonstrate the extension's user-facing live read. See [schema](arkiv/schema.md), [feedback](arkiv/friction.md), [reach](arkiv/reach.md), [why Arkiv](arkiv/why-arkiv.md), [how we use Arkiv](arkiv/how-you-use-arkiv.md), and [Swarm evidence and remaining gaps](arkiv/swarm.md).
+
+## License
+
+BOUND is licensed under the [MIT License](LICENSE). Third-party components may have their own licenses.
- BOUND is developed with AI-assisted tooling. Generated code and changes require human review and testing.
- Local integration fakes validate application behavior but do not establish that external services work correctly.
- Never commit private keys, funded wallet credentials, or real-user secrets.
diff --git a/arkiv/README.md b/arkiv/README.md
index 0076fdb..402b88b 100644
--- a/arkiv/README.md
+++ b/arkiv/README.md
@@ -1,5 +1,20 @@
# Arkiv integration status
+## ETHGlobal Mumbai submission
+
+BOUND is targeting **Build on Arkiv (from scratch)** as its main Arkiv track, with the **Arkiv + Swarm bonus** as a separate submission. The team reports that BOUND was built during ETHGlobal Mumbai. The main track requires a live testnet write and a user-visible feature that reads Arkiv data; the latter still needs an end-to-end demonstration before qualification can be claimed.
+
+Judging evidence:
+
+- [Arkiv feedback](friction.md): integration friction and reproduction details.
+- [Reach](reach.md): intended users, availability and current limitations.
+- [Why Arkiv](why-arkiv.md): what public, owned, expiring records add and what stays off Arkiv.
+- [How BOUND uses Arkiv](how-you-use-arkiv.md): the read/write flow and user-visible behavior.
+- [Schema](schema.md): entity types, query fields, ownership and expiry.
+- [Arkiv + Swarm bonus](swarm.md): integration evidence, reproduction and remaining gaps.
+
+The repository's [main README](../README.md) includes the writer address, a runnable query and the team's AI disclosure. The project is [MIT licensed](../LICENSE).
+
**Status: initial live write/read/expiry demonstrated; full integration remains open.** The selected public test environment is Rabdi, chain ID 7794095. A synthetic baseline create and patch, an observation write, an owner-filtered query, and observation expiry were recorded on 2026-11-06. The public test writer was `0xe63393558e36df643347326e7e03ad5fb0e6c867`. See [read boundary](../integrations/arkiv/README.md) and [transaction evidence](../packages/contracts/feasibility.md). Renewal, rollover, and full watcher-to-extension integration still require live verification.
Keep the writer distinct from curator and user wallets. Never record private keys or access credentials.
diff --git a/arkiv/friction.md b/arkiv/friction.md
index 6a92519..feefefe 100644
--- a/arkiv/friction.md
+++ b/arkiv/friction.md
@@ -6,3 +6,9 @@
- The proposed record schema and create/patch path were exercised live; renewal and crash-recovery behavior remain locally tested only. At-least-once queue delivery requires receiver-side operation-ID deduplication.
- Watcher journal storage is single-process and bounded; migration, multi-process coordination, and production operations are not complete.
- The Gitleaks CI job has not run in GitHub. Its action requires a license secret for organization-owned repositories. No secret was added by this change.
+
+## Actionable feedback
+
+**Consistent pagination:** We expected a paginated query to represent one stable view. Pages may span different blocks, so our reader rejects that result rather than returning a potentially inconsistent bundle. Reproduction: run an owner query through `createArkivRpcReader.query` while the queried data or chain changes between pages; see pagination checks in `integrations/arkiv/rpc.js`. A snapshot or block-pinned query and a resumable cursor would make this easier. The timing-dependent failure is not claimed to occur on every run.
+
+**Operation recovery:** A transaction may have been broadcast even if the client loses the response. We expected a straightforward way to determine its final result; our integration persists signed transactions and operation IDs and performs readback before acknowledging. A documented end-to-end recovery recipe for uncertain submissions and idempotency would help. See `integrations/arkiv/sender.js`.
diff --git a/arkiv/how-you-use-arkiv.md b/arkiv/how-you-use-arkiv.md
index 5d2e8a4..6c53136 100644
--- a/arkiv/how-you-use-arkiv.md
+++ b/arkiv/how-you-use-arkiv.md
@@ -3,3 +3,5 @@
The intended path is extension observation queue → watcher intake and deduplication → watcher-owned expiring observation → hourly baseline → owner-verified bundle. Warned events are separate and contain no user decision. Observations during an active incident are excluded. Drift and incidents are separate records; incidents carry a plain Swarm reference and report digest.
The local test `scripts/integration/local.test.js` exercises part of this flow with fake storage and cannot prove the live integration. The Arkiv writer was exercised separately on Rabdi and an hourly watcher scheduler is implemented. The client-side privacy filter, extension consumption, live scheduled flow and a clean end-to-end round trip remain unverified.
+
+The extension has an Arkiv reader and consumes watcher context for warning decisions; a missing baseline is reported as not checked rather than a positive result. This is implemented behavior, not evidence that a live write-to-extension demonstration has passed. The owner and expiry checks and local lifetime choices are described in [schema.md](schema.md). Verify a user-visible decision with a newly written record before presenting the requirement as complete.
diff --git a/arkiv/reach.md b/arkiv/reach.md
index ebb0231..1908cd1 100644
--- a/arkiv/reach.md
+++ b/arkiv/reach.md
@@ -3,3 +3,5 @@
Arkiv stores public site-level observations and watcher-owned baseline, drift, incident, and status records. Only watcher-owned records accepted after owner and expiry checks may inform those signals. Any party can publish a lookalike schema. Observations and reporter counts cannot establish trust. Reporter keys are rotating pseudonyms, not verified distinct people; Sybil resistance is absent.
The extension must download seeded records as a bundle. Per-site and uncurated-site reads need the specified Anon-RPC route. The watcher or public nodes may see network metadata. No live extension-to-Arkiv round trip is demonstrated yet.
+
+BOUND is intended for people interacting with wallet-enabled sites and for maintainers investigating suspicious frontend changes. The local prototype can be tried from the repository, but its live user-facing Arkiv flow is not yet demonstrated; no user count or post-event shipping commitment has been verified.
diff --git a/arkiv/schema.md b/arkiv/schema.md
index 417e05b..1bb9e5a 100644
--- a/arkiv/schema.md
+++ b/arkiv/schema.md
@@ -1,7 +1,19 @@
-# Proposed Arkiv schema
+# Arkiv schema
-The payload contracts are defined by `packages/contracts/index.js` and examples in `fixtures/contracts/records.json`. Version 1 proposes observation, baseline, drift, incident and status records. Incident payloads contain a report digest and plain unencrypted Swarm reference. The proposed entity contains an indexed `arkiv.schema` string, an indexed `bound.operation` key for retry deduplication, and a `payload` bytes attribute holding UTF-8 JSON. The `writer.js` boundary requires the operation lookup to find and verify a prior write; actual signed create, receipt parsing, indexes and lifetimes still need a live writer and cross-lane agreement. Arkiv documents a 128-byte string limit and 128-KiB bytes limit; see [write transactions](https://docs.arkiv.network/json-rpc/mutating-entities/) and [limits](https://docs.arkiv.network/reference/limits/).
+The local watcher uses the Rabdi testnet and `bound.record.v1`. The configured writer owns its entities; the public test writer used in documented tests is `0xe63393558e36df643347326e7e03ad5fb0e6c867`. Arkiv exposes owner, entity key and expiry as metadata. The reader filters by `$owner` and `arkiv.schema`, rechecks owner, schema and expiry, and the operation lookup also filters `operation`; a schema tag alone does not authenticate an entity. `kind` and `operation` are string attributes, and `payload` is UTF-8 JSON bytes. See [codec](../integrations/arkiv/codec.js), [reader](../integrations/arkiv/rpc.js), and [record validation](../packages/contracts/index.js). Site and chain are fields inside the payload and are filtered after reading, not indexed Arkiv attributes.
-Arkiv owner, entity key and expiry are metadata. The reader filters on the configured owner and rechecks the returned metadata. A schema tag is not proof of ownership. Observations are not seed trust and do not lift a score cap. Local schema tests are not a live protocol proof.
+| Kind | Purpose and selected payload fields | Local intake lifetime (blocks) |
+| --- | --- | --- |
+| observation | Site/chain, observed address and classification | 345600 |
+| baseline | Site/chain, observed counterparties and contracts | 43200 |
+| drift | Site/chain and infrastructure drift | 43200 |
+| incident | Site/chain, severity, `reportReference`, `reportDigest` | 43200 |
+| status | Site/chain, state, `feedReference`, optional incident reference | 43200 |
+| frontend | Site/chain and aggregated script hash evidence | 43200 |
+| evidence | Published incident/drift evidence | Defaults to drift lifetime |
+| trust_snapshot | Curated snapshot data | Defaults to baseline lifetime |
+| ens_record | ENS cache data | Defaults to status lifetime |
-A proposed incident status may carry a null incident reference while the report is unavailable; clients must retain the warning and disable the report link. This clarification requires shared acceptance. Status writes need idempotent ordering so a retried pending status cannot overwrite the final status.
+The exact valid fields are defined by the validators linked above. Lifetimes are block counts, not fixed wall-clock durations; local defaults may differ from other deployments and eligible records can be renewed. See [local configuration](../services/watcher/local-intake.mjs) and [archive](../integrations/arkiv/archive.js). Live create, patch, owner query and expiry evidence is in [feasibility.md](../packages/contracts/feasibility.md); full user-facing live flow has not yet been verified.
+
+An incident's `reportReference` is an unencrypted Swarm reference. Never publish a secret-bearing encrypted Swarm reference in a public Arkiv entity. No live entity linking the demonstrated safe page has yet been established.
diff --git a/arkiv/swarm.md b/arkiv/swarm.md
index ad3bd38..626f740 100644
--- a/arkiv/swarm.md
+++ b/arkiv/swarm.md
@@ -1,8 +1,8 @@
# Swarm evidence status
-**Not yet proven.** The intended Swarm artifacts are canonical snapshot bytes and public incident-report bytes. Arkiv incident records should contain the plain, unencrypted reference and report digest. A secret-bearing or encrypted reference must not be published.
+**Arkiv-to-Swarm link not yet proven.** The intended Swarm artifacts include canonical snapshot bytes and public incident-report bytes. Arkiv incident records contain a plain, unencrypted reference and report digest. A secret-bearing or encrypted reference must not be published.
-Before this gate can pass, record the test-network configuration, public artifact digests and references, independent second-gateway read and hash, entity key, public link, postage batch lifetime and funding source, Bee service, upload/read code, reproduction commands, timestamp, and observed failure modes. No reference, batch, endpoint, or upload is asserted here until actually verified. Snapshot and Swarm implementations belong to Developer 2; Developer 3 gathers the evidence and integrates through their adapter.
+Before this gate can pass, record the test-network configuration, public artifact digests and references, independent second-gateway read and hash, entity key, public link, postage batch lifetime and funding source, Bee service, upload/read code, reproduction commands, timestamp, and observed failure modes. The separate safe-page upload and its available evidence are documented below; an Arkiv entity linking it has not been verified. Snapshot and Swarm implementations belong to Developer 2; Developer 3 gathers the evidence and integrates through their adapter.
## Gateway-only transport
@@ -21,3 +21,13 @@ const verifiedBytes = await gateway.getVerified(reference, digest);
Host mode omits all postage headers and checks upload read-back against the input digest. It rejects a simultaneously supplied batch ID. `createSwarmAdapter({gatewayUrls})` creates a read-only adapter without an upload endpoint, batch or wallet. Existing response limits, timeouts, redirect rejection and externally anchored digest checks still apply. A digest received from the same untrusted gateway is not a trust anchor. Host-paid postage has operator-controlled availability and retention.
This is byte transport, not a domain lookup database. Signed domain-feed publishing, proof validation, TTL and extension coordination remain the separate domain-cache implementation described in `Docs/swarm-domain-cache-plan.md`. Safe-page collection publication uses `npm run swarm:safe:publish` and verifies all served files separately.
+
+## Demonstrated safe-page upload and reproduction
+
+On 2026-11-07 the separately uploaded public safe-page collection was reachable at [bzz.limo](https://bzz.limo/bzz/2ef102c267b6d62900b8c31c25620405d5fff12e22cd01f79038bd3eea0e682c/). Its reference is `2ef102c267b6d62900b8c31c25620405d5fff12e22cd01f79038bd3eea0e682c`. An earlier read through the upload gateway redirected to `/forbidden`; a successful read on a different gateway does not establish long-term availability.
+
+This upload used the host-paid gateway mode of [`scripts/swarm/publish-safe-page.mjs`](../scripts/swarm/publish-safe-page.mjs), using `https://api.gateway.ethswarm.org`; it supplies no postage batch header. The host controls postage: its actual batch ID and funding wallet are not known from this repository and must be obtained from the provider if the judges require them. The user's own Bee-node funding is not evidence that this gateway upload used that node or its stamp.
+
+To repeat, install dependencies with `npm ci`, run `node apps/safe-page/build.mjs`, then `npm run swarm:safe:check`. To perform an actual public upload, run `npm run swarm:safe:publish`; the command returns a reference only after attempting readback. Gateway availability and publication policy apply. To read an existing upload without uploading again, open the link above or run `curl -L https://bzz.limo/bzz/2ef102c267b6d62900b8c31c25620405d5fff12e22cd01f79038bd3eea0e682c/`. For strict readback against the current locally built files, run `BOUND_SWARM_GATEWAY_URL=https://bzz.limo npm run swarm:safe:publish -- --verify 2ef102c267b6d62900b8c31c25620405d5fff12e22cd01f79038bd3eea0e682c`; a different build can legitimately fail the byte comparison. The adapter's upload and verified-read code is in [`integrations/swarm/index.js`](../integrations/swarm/index.js).
+
+**Qualification gaps:** No verified Arkiv entity key is currently documented that points to this reference; the incident schema has a `reportReference` field, but that is not evidence that this safe-page upload was recorded there. The demo-video timestamp and host postage details still need confirmation. This file must be updated with the actual entity key, the corresponding reference, accessible link, and video timestamp after the linked flow is demonstrated. Do not publish an encrypted reference containing its decryption key in Arkiv.
diff --git a/arkiv/why-arkiv.md b/arkiv/why-arkiv.md
index aa0cd84..5b68478 100644
--- a/arkiv/why-arkiv.md
+++ b/arkiv/why-arkiv.md
@@ -1,3 +1,5 @@
# Why Arkiv
The proposed design uses Arkiv's queryable, wallet-owned, expiring entities for public site observations and status. It keeps these changing signals separate from the curator-controlled snapshot; an Arkiv observation is never a trust anchor. Owner checking is essential because anyone can publish matching attributes. Expiry and write/query behavior must be proven on the selected live network before claiming the integration works.
+
+Compared with an operator-only Postgres instance, Arkiv lets other clients query public, expiring records and verify the publishing wallet independently of our server. This still depends on the configured RPC and trusted owner; it is not a cryptographic state proof. Private keys, signed transaction journals and sensitive user data stay off Arkiv; observations are filtered before publication. Public records are not appropriate for secrets.
diff --git a/demo/frontend-switch/README.md b/demo/frontend-switch/README.md
new file mode 100644
index 0000000..27d30e1
--- /dev/null
+++ b/demo/frontend-switch/README.md
@@ -0,0 +1,13 @@
+# Same-URL frontend switch demo
+
+Run `node demo/frontend-switch/server.mjs a`, and in another terminal start `ngrok http 8081`. Visit the HTTPS URL printed by ngrok. Stop A with Ctrl+C, then run `node demo/frontend-switch/server.mjs b`; keep the ngrok process running. Reload the same URL. Return to A by stopping B and running the first command again.
+
+Both pages load `/app.js`, but A and B have different bytes. They only ask to connect a wallet; neither sends a transaction. The B label is revealed after connection for demo clarity. Scripts are cached for up to 60 seconds. Wait for that period and reload after switching, or use a fresh browser profile to avoid stale content; verify what is actually served before interpreting a result.
+
+Compute A's exact SHA-256 in the format used by BOUND:
+
+```sh
+node -e "const fs=require('fs'),crypto=require('crypto'); console.log('sha256-'+crypto.createHash('sha256').update(fs.readFileSync('demo/frontend-switch/a/app.js')).digest('base64'))"
+```
+
+The extension's frontend evidence uses watcher-published Arkiv records. Adding the hash to ENS as a text record does not currently create that baseline or cause the extension to read it. The existing `demo/hijack-server/seed-frontend.mjs` only accepts loopback origins, so it cannot seed an ngrok hostname. Frontend promotion needs safe scope, three reporter keys and one hour, plus Arkiv publication; see `services/watcher/README.md`. A frontend conflict alone does not guarantee a safe-page redirect; other policy and corroboration conditions apply. Do not represent this two-site fixture as a verified end-to-end detection until the actual ngrok-host baseline and warning have been tested.
diff --git a/demo/frontend-switch/a/app.js b/demo/frontend-switch/a/app.js
new file mode 100644
index 0000000..b212bf8
--- /dev/null
+++ b/demo/frontend-switch/a/app.js
@@ -0,0 +1,9 @@
+// Demo A: expected frontend. No transaction is submitted.
+document.querySelector('#connect').addEventListener('click', async () => {
+ const status = document.querySelector('#status');
+ if (!window.ethereum) { status.textContent = 'Install a wallet to continue.'; return; }
+ try {
+ const accounts = await window.ethereum.request({ method: 'eth_requestAccounts' });
+ status.textContent = accounts.length ? 'Wallet connected. Demo A loaded.' : 'No account selected.';
+ } catch (error) { status.textContent = error.message || 'Wallet connection cancelled.'; }
+});
diff --git a/demo/frontend-switch/a/index.html b/demo/frontend-switch/a/index.html
new file mode 100644
index 0000000..e42c8d2
--- /dev/null
+++ b/demo/frontend-switch/a/index.html
@@ -0,0 +1 @@
+
BOUND Demo ExchangeBOUND PRESENTATION · DEMO ONLY
Demo Exchange
Connect a wallet to preview a simulated exchange.
No wallet connected.
diff --git a/demo/frontend-switch/b/app.js b/demo/frontend-switch/b/app.js
new file mode 100644
index 0000000..4abd4a5
--- /dev/null
+++ b/demo/frontend-switch/b/app.js
@@ -0,0 +1,9 @@
+// Demo B: changed frontend simulating a hijack. No transaction is submitted.
+document.querySelector('#connect').addEventListener('click', async () => {
+ const status = document.querySelector('#status');
+ if (!window.ethereum) { status.textContent = 'Install a wallet to continue.'; return; }
+ try {
+ const accounts = await window.ethereum.request({ method: 'eth_requestAccounts' });
+ status.textContent = accounts.length ? 'Wallet connected. Demo B (changed script) loaded.' : 'No account selected.';
+ } catch (error) { status.textContent = error.message || 'Wallet connection cancelled.'; }
+});
diff --git a/demo/frontend-switch/b/index.html b/demo/frontend-switch/b/index.html
new file mode 100644
index 0000000..e42c8d2
--- /dev/null
+++ b/demo/frontend-switch/b/index.html
@@ -0,0 +1 @@
+BOUND Demo ExchangeBOUND PRESENTATION · DEMO ONLY
Follow one wallet request from the page to your decision. Scroll the steps, or select any box to see what it does, what it trusts and how it can fail.
+
+
+
+
+ {STEPS.map((s, i) =>
+
+
{s.text}
+ {s.proof.length > 0 && }
+
)}
+
+
+
+
+
+
+ {node
+ ? <>
+
{node.title}{node.sub}
+
+
What it does
{node.does}
+
What it trusts
{node.trust}
+
How it can fail
{node.fails}
+
+ >
+ :
Select any box to inspect it.
}
+
+
+
+
+
This diagram shows the project’s architecture. Live integrations and browser coverage are still being verified, and BOUND adds context to a request rather than guaranteeing it is safe.
+
+ ;
+}
diff --git a/landing/src/arch/arch.css b/landing/src/arch/arch.css
new file mode 100644
index 0000000..0a53b79
--- /dev/null
+++ b/landing/src/arch/arch.css
@@ -0,0 +1,42 @@
+/* ─── Architecture (Konva) ─── */
+.ar { background: var(--paper, #fff); color: var(--ink, #0b0b0c); font-family: var(--serif, "Instrument Serif", Georgia, serif); border-top: 1px solid var(--line, #e6e6e1); }
+.ar-inner { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: clamp(72px, 12vh, 150px) 0 clamp(56px, 9vh, 110px); }
+.ar-head h2 { margin: 0 0 20px; font-size: clamp(48px, 7vw, 108px); font-weight: 400; line-height: 0.95; letter-spacing: -0.025em; }
+.ar-head h2 em { font-style: italic; background: linear-gradient(var(--accent, #ffd500), var(--accent, #ffd500)) no-repeat 0 90% / 100% 38%; }
+.ar-head p { max-width: 56ch; margin: 0; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; color: #3d3d39; }
+
+.ar-grid { display: grid; grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr); gap: clamp(28px, 5vw, 72px); margin-top: clamp(40px, 7vh, 80px); align-items: start; }
+.ar-steps { margin: 0; padding: 0; list-style: none; }
+.ar-step { min-height: 52vh; padding: 28px 0 28px 22px; border-left: 2px solid var(--line, #e6e6e1); opacity: 0.42; transition: opacity 0.4s, border-color 0.4s; }
+.ar-step:last-child { min-height: 92vh; } /* keeps the sticky diagram on screen while the last step is read */
+.ar-step.is-active { opacity: 1; border-color: var(--accent, #ffd500); box-shadow: -2px 0 0 0 var(--accent, #ffd500); }
+.ar-step-btn { display: flex; align-items: baseline; gap: 14px; padding: 0; border: 0; background: none; color: inherit; font: inherit; text-align: left; cursor: pointer; }
+.ar-num { font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 12px; letter-spacing: 0.1em; padding: 3px 8px; border: 1px solid var(--ink, #0b0b0c); border-radius: 999px; background: var(--paper, #fff); transition: background 0.3s; }
+.ar-step.is-active .ar-num { background: var(--accent, #ffd500); }
+.ar-step-title { font-size: clamp(28px, 2.9vw, 42px); line-height: 1.05; letter-spacing: -0.015em; }
+.ar-step p { max-width: 46ch; margin: 14px 0 14px 0; font-size: clamp(18px, 1.4vw, 21px); line-height: 1.42; color: #2b2b28; }
+.ar-step-btn:focus-visible, .ar-canvas:focus-visible { outline: 2px solid var(--ink, #0b0b0c); outline-offset: 4px; border-radius: 6px; }
+
+.ar-stage { position: sticky; top: 76px; }
+.ar-card { border: 1px solid var(--ink, #0b0b0c); border-radius: 22px; background: var(--paper, #fff); padding: 14px 14px 0; box-shadow: 0 30px 60px -38px rgba(11, 11, 12, 0.55); overflow: hidden; }
+.ar-canvas { width: 100%; min-height: 520px; }
+.ar-canvas canvas { display: block; }
+.ar-inspector { margin: 6px -14px 0; padding: 16px 20px 18px; border-top: 1px solid var(--ink, #0b0b0c); background: var(--accent-soft, #fff4b8); min-height: 168px; }
+.ar-insp-head { display: flex; flex-wrap: wrap; align-items: baseline; gap: 4px 12px; }
+.ar-insp-head b { font-size: 26px; font-weight: 400; letter-spacing: -0.01em; }
+.ar-insp-head span { font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 11px; letter-spacing: 0.06em; color: #55554f; }
+.ar-inspector dl { display: grid; gap: 8px; margin: 10px 0 0; }
+.ar-inspector dt { font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 10px; letter-spacing: 0.12em; text-transform: uppercase; color: #55554f; }
+.ar-inspector dd { margin: 2px 0 0; font-size: 16px; line-height: 1.32; }
+.ar-hint { margin: 0; padding-top: 38px; font-size: 19px; color: #55554f; text-align: center; }
+.ar-note { max-width: 74ch; margin: 36px 0 0; font-size: 16px; line-height: 1.4; color: var(--muted, #6b6b64); }
+
+@media (max-width: 900px) {
+ .ar-inner { width: calc(100% - 32px); }
+ .ar-grid { grid-template-columns: 1fr; gap: 28px; }
+ .ar-stage { position: static; order: -1; }
+ .ar-step, .ar-step:last-child { min-height: 0; padding: 20px 0 20px 18px; opacity: 1; }
+ .ar-step.is-active { box-shadow: none; }
+ .ar-inspector { min-height: 0; }
+}
+@media (prefers-reduced-motion: reduce) { .ar-step { transition: none; } }
diff --git a/landing/src/arch/konvaDiagram.js b/landing/src/arch/konvaDiagram.js
new file mode 100644
index 0000000..6169f37
--- /dev/null
+++ b/landing/src/arch/konvaDiagram.js
@@ -0,0 +1,200 @@
+// Framework-free Konva diagram controller. GSAP drives every animated value; Konva only draws.
+// React owns the DOM around it (src/arch/Architecture.jsx) and talks to this through a handful of methods.
+import Konva from 'konva';
+import gsap from 'gsap';
+import { NODES, STEPS, layoutFor } from './model.js';
+
+const C = { paper: '#ffffff', ink: '#0b0b0c', muted: '#6b6b64', line: '#d4d4cc', zone: '#ecece6', accent: '#ffd500', soft: '#fff4b8', danger: '#d9381e' };
+const SERIF = '"Instrument Serif", Georgia, serif';
+const MONO = 'ui-monospace, "SF Mono", Menlo, Consolas, monospace';
+
+const rgb = (hex) => [1, 3, 5].map((i) => parseInt(hex.slice(i, i + 2), 16));
+const mix = (a, b, t) => { const [x, y] = [rgb(a), rgb(b)]; return `rgb(${x.map((v, i) => Math.round(v + (y[i] - v) * t)).join(',')})`; };
+const flat = (pts) => pts.flat();
+const segLen = (a, b) => Math.hypot(b[0] - a[0], b[1] - a[1]);
+
+/** Point at fraction t (0..1) along a polyline, plus the angle of that segment. */
+function along(points, t) {
+ const lens = points.slice(1).map((p, i) => segLen(points[i], p));
+ let d = t * lens.reduce((s, v) => s + v, 0);
+ for (let i = 0; i < lens.length; i++) {
+ if (d <= lens[i] || i === lens.length - 1) {
+ const k = lens[i] ? Math.min(d / lens[i], 1) : 0;
+ return [points[i][0] + (points[i + 1][0] - points[i][0]) * k, points[i][1] + (points[i + 1][1] - points[i][1]) * k];
+ }
+ d -= lens[i];
+ }
+ return points[0];
+}
+const pathLength = (points) => points.slice(1).reduce((s, p, i) => s + segLen(points[i], p), 0);
+
+export class Diagram {
+ constructor(el, { onSelect, reduced = false } = {}) {
+ this.el = el; this.onSelect = onSelect; this.reduced = reduced;
+ this.stepIndex = 0; this.selected = null; this.mode = null; this.dirty = false; this.introduced = false;
+ this.stage = new Konva.Stage({ container: el, width: Math.max(el.clientWidth, 280), height: 400 });
+ this.layer = new Konva.Layer();
+ this.stage.add(this.layer);
+ this.tick = () => { if (this.dirty) { this.dirty = false; this.layer.batchDraw(); } };
+ gsap.ticker.add(this.tick);
+ this.resizer = new ResizeObserver(() => this.resize());
+ this.resizer.observe(el);
+ this.build(this.modeFor(el.clientWidth));
+ // Konva measures text once. Redraw after the serif loads so nothing is laid out with the fallback.
+ document.fonts?.load('18px "Instrument Serif"').then(() => this.build(this.mode, true));
+ }
+
+ modeFor(width) { return width < 600 ? 'narrow' : 'wide'; }
+
+ resize() {
+ const width = this.el.clientWidth;
+ if (!width) return;
+ const mode = this.modeFor(width);
+ if (mode !== this.mode) this.build(mode, true);
+ else this.fit();
+ }
+
+ fit() {
+ const scale = Math.min(this.el.clientWidth / this.lay.width, 1.15);
+ this.stage.width(this.lay.width * scale);
+ this.stage.height(this.lay.height * scale);
+ this.layer.scale({ x: scale, y: scale });
+ this.el.style.height = `${this.lay.height * scale}px`;
+ this.dirty = true;
+ }
+
+ clear() {
+ this.tweens?.forEach((t) => t.kill());
+ this.tweens = [];
+ this.layer.destroyChildren();
+ this.nodes = {}; this.edges = {};
+ }
+
+ build(mode, keepState = false) {
+ this.clear();
+ this.mode = mode;
+ this.lay = layoutFor(mode);
+ const { zones, boxes, edges, labelAt } = this.lay;
+
+ for (const z of zones) {
+ const g = new Konva.Group({ listening: false });
+ g.add(new Konva.Rect({ x: z.x, y: z.y, width: z.w, height: z.h, cornerRadius: 18, fill: z.accent ? 'rgba(255,244,184,0.28)' : 'rgba(11,11,12,0.018)', stroke: z.accent ? C.ink : C.zone, strokeWidth: z.accent ? 1 : 1, dash: z.accent ? [] : [5, 5] }));
+ g.add(new Konva.Text({ x: z.x + 16, y: z.y + 10, text: z.label.toUpperCase(), fontFamily: MONO, fontSize: 9.5, letterSpacing: 1.2, fill: z.accent ? C.ink : C.muted }));
+ this.layer.add(g);
+ }
+
+ for (const [id, pts] of Object.entries(edges)) {
+ const arrow = new Konva.Arrow({ points: flat(pts), stroke: C.line, fill: C.line, strokeWidth: 1.3, pointerLength: 7, pointerWidth: 7, lineJoin: 'round', lineCap: 'round', dash: id === 'direct' ? [5, 5] : [], listening: false });
+ const label = new Konva.Text({ text: '', fontFamily: MONO, fontSize: 9.5, fill: C.ink, opacity: 0, listening: false, ...(labelAt[id] ? { x: labelAt[id][0], y: labelAt[id][1] } : { visible: false }) });
+ const packet = new Konva.Rect({ width: 8, height: 8, offsetX: 4, offsetY: 4, rotation: 45, fill: C.accent, stroke: C.ink, strokeWidth: 1.2, opacity: 0, listening: false });
+ this.layer.add(arrow, label, packet);
+ const e = { id, pts, arrow, label, packet, s: { on: 0, danger: 0 }, t: { v: 0 } };
+ e.run = gsap.to(e.t, { v: 1, duration: Math.max(0.9, pathLength(pts) / 190), ease: 'none', repeat: -1, paused: true, onUpdate: () => { const [x, y] = along(pts, e.t.v); packet.position({ x, y }); this.dirty = true; } });
+ this.tweens.push(e.run);
+ this.edges[id] = e;
+ }
+
+ for (const [id, box] of Object.entries(boxes)) {
+ const def = NODES[id];
+ const g = new Konva.Group({ x: box.x, y: box.y, name: id });
+ const ink = def.kind === 'ink';
+ const rect = new Konva.Rect({ width: box.w, height: box.h, cornerRadius: 13, fill: ink ? C.ink : C.paper, stroke: C.ink, strokeWidth: 1.2, dash: def.kind === 'untrusted' ? [5, 4] : [], shadowColor: C.accent, shadowBlur: 0, shadowOpacity: 0.9 });
+ const title = new Konva.Text({ x: 14, y: 11, text: def.title, fontFamily: SERIF, fontSize: this.lay.mode === 'narrow' ? 21 : 19, fill: ink ? '#fff' : C.ink });
+ const sub = new Konva.Text({ x: 14, y: box.h - 20, text: def.sub, fontFamily: MONO, fontSize: 9, fill: ink ? 'rgba(255,255,255,0.7)' : C.muted });
+ g.add(rect, title, sub);
+ if (def.kind === 'bound') g.add(new Konva.Rect({ x: box.w - 20, y: 11, width: 8, height: 8, rotation: 45, offsetX: 4, offsetY: 4, fill: C.accent, stroke: C.ink, strokeWidth: 1 }));
+ g.on('mouseenter', () => { this.el.style.cursor = 'pointer'; });
+ g.on('mouseleave', () => { this.el.style.cursor = ''; });
+ g.on('click tap', () => this.select(id));
+ this.layer.add(g);
+ this.nodes[id] = { id, def, box, g, rect, title, sub, ink, s: { on: 0, sel: 0, appear: this.introduced || this.reduced ? 1 : 0 } };
+ }
+
+ this.fit();
+ for (const n of Object.values(this.nodes)) this.paintNode(n);
+ for (const e of Object.values(this.edges)) this.paintEdge(e);
+ this.applyStep(this.stepIndex, true);
+ if (keepState && this.selected) this.nodes[this.selected] && this.tweenSel(this.nodes[this.selected], 1, true);
+ }
+
+ paintNode(n) {
+ const { on, sel, appear } = n.s;
+ n.g.opacity(appear * (0.4 + 0.6 * on));
+ n.g.y(n.box.y + (1 - appear) * 14);
+ n.rect.fill(n.ink ? mix(C.ink, '#26262a', on) : mix(C.paper, C.soft, on));
+ n.rect.strokeWidth(1.2 + on * 0.8 + sel * 1.4);
+ n.rect.shadowBlur(on * 16 + sel * 10);
+ this.dirty = true;
+ }
+
+ paintEdge(e) {
+ const { on, danger } = e.s;
+ const stroke = danger ? mix(mix(C.line, C.ink, on), C.danger, danger) : mix(C.line, C.ink, on);
+ e.arrow.stroke(stroke); e.arrow.fill(stroke);
+ e.arrow.strokeWidth(1.3 + on * 1.1);
+ e.label.opacity(on); e.label.fill(danger ? C.danger : C.ink);
+ e.packet.opacity(on);
+ e.packet.fill(danger > 0.5 ? C.danger : C.accent);
+ this.dirty = true;
+ }
+
+ to(obj, vars, paint) {
+ if (this.reduced) { Object.assign(obj, Object.fromEntries(Object.entries(vars).filter(([k]) => k in obj))); paint(); return; }
+ this.tweens.push(gsap.to(obj, { ...vars, onUpdate: paint, overwrite: 'auto' }));
+ }
+
+ applyStep(index, instant = false) {
+ const step = STEPS[index];
+ for (const n of Object.values(this.nodes)) {
+ const target = step.nodes.includes(n.id) ? 1 : 0;
+ if (instant || this.reduced) { n.s.on = target; this.paintNode(n); }
+ else this.to(n.s, { on: target, duration: 0.55, ease: 'power2.out' }, () => this.paintNode(n));
+ }
+ for (const e of Object.values(this.edges)) {
+ const active = step.edges.includes(e.id);
+ const danger = step.danger?.includes(e.id) ? 1 : 0;
+ if (this.lay.labelAt[e.id]) e.label.text(step.labels?.[e.id] ?? '');
+ if (instant || this.reduced) { e.s.on = active ? 1 : 0; e.s.danger = danger; this.paintEdge(e); }
+ else {
+ this.to(e.s, { on: active ? 1 : 0, danger, duration: 0.5, ease: 'power2.out' }, () => this.paintEdge(e));
+ }
+ if (active && !this.reduced) e.run.play(); else { e.run.pause(); e.packet.opacity(0); }
+ if (this.reduced && active) { const [x, y] = along(e.pts, 0.5); e.packet.position({ x, y }); e.packet.opacity(1); }
+ }
+ this.dirty = true;
+ }
+
+ setStep(index) {
+ if (index === this.stepIndex && this.nodes) { /* still reapply: cheap, idempotent */ }
+ this.stepIndex = index;
+ this.applyStep(index);
+ }
+
+ tweenSel(n, v, instant) {
+ if (instant || this.reduced) { n.s.sel = v; this.paintNode(n); return; }
+ this.to(n.s, { sel: v, duration: 0.35, ease: 'power2.out' }, () => this.paintNode(n));
+ }
+
+ select(id) {
+ if (this.selected && this.nodes[this.selected]) this.tweenSel(this.nodes[this.selected], 0);
+ this.selected = id;
+ if (id && this.nodes[id]) this.tweenSel(this.nodes[id], 1);
+ this.onSelect?.(id);
+ }
+
+ /** Staggered entrance. Called once, when the diagram scrolls into view. */
+ intro() {
+ if (this.introduced) return;
+ this.introduced = true;
+ const list = Object.values(this.nodes);
+ if (this.reduced) { list.forEach((n) => { n.s.appear = 1; this.paintNode(n); }); return; }
+ this.tweens.push(gsap.to(list.map((n) => n.s), { appear: 1, duration: 0.9, ease: 'expo.out', stagger: 0.07, onUpdate: () => list.forEach((n) => this.paintNode(n)), onComplete: () => { Object.values(this.nodes).forEach((n) => { n.s.appear = 1; this.paintNode(n); }); } }));
+ }
+
+ destroy() {
+ gsap.ticker.remove(this.tick);
+ this.resizer.disconnect();
+ this.tweens?.forEach((t) => t.kill());
+ this.stage.destroy();
+ }
+}
diff --git a/landing/src/arch/model.js b/landing/src/arch/model.js
new file mode 100644
index 0000000..00c5498
--- /dev/null
+++ b/landing/src/arch/model.js
@@ -0,0 +1,89 @@
+// Architecture diagram data. Names and paths mirror the repository (packages/*, services/*, integrations/*, apps/extension).
+// Roles and failure modes are taken from Docs/BOUND_Final_Architecture.md and the code. No node claims more than the repo does.
+
+export const NODES = {
+ site: { kind: 'untrusted', title: 'The website', sub: 'untrusted page', does: 'The dApp in your tab. Assume an attacker can control every script it serves, including its buttons, copy and any dialog it draws.', trust: 'Nothing. It is the thing being checked.', fails: 'It can show you anything. A page cannot be allowed to vouch for itself.' },
+ wallet: { kind: 'user', title: 'Your wallet', sub: 'EIP-1193 provider', does: 'Holds your keys and shows its own prompt. BOUND never signs or approves for you; it only decides whether the request is passed on.', trust: 'Your own key and wallet. Out of scope for BOUND.', fails: 'Some wallets show an opaque hash for typed data, which is part of why a second opinion helps.' },
+ hook: { kind: 'bound', title: 'In-page hook', sub: 'apps/extension', does: 'Patches request, send and sendAsync at document_start, freezes a copy of every value-moving request and takes a digest of it. The request is held, not blocked.', trust: 'Runs before page scripts, in the extension’s own isolated state.', fails: 'A provider reference the page saved before the hook ran bypasses it. BOUND reports that as “bypass possible” and never shows green.' },
+ decoder: { kind: 'bound', title: 'Decoder', sub: 'packages/decoder', does: 'Turns calldata and typed data into addresses with roles: rights, destination, called, token. Reads approvals, permits, setApprovalForAll, Permit2 and EIP-7702 authorizations.', trust: 'Pure code. No network, no state.', fails: 'Unknown ABIs and unrecognised typed data (a Safe transaction, for example) become “opaque” and are capped at 65. It does not guess.' },
+ policy: { kind: 'bound', title: 'Policy core', sub: 'packages/policy-core', does: 'evaluate() starts at 100 and caps the score for every address that is not trusted for its role. The result is green, amber, red, escalated, or grey when there is nothing to compare against.', trust: 'The evidence it is given: snapshot, drift, witnessed addresses.', fails: 'It checks who, not how much. A trusted contract with an unlimited allowance still scores green.' },
+ review: { kind: 'ink', title: 'Review window', sub: 'extension UI', does: 'A window owned by the extension, outside the page. It shows the verdict and reasons. Only a click inside this window can continue or cancel the request.', trust: 'MV3 isolation: the page cannot read or write extension state.', fails: 'Unanswered for ten minutes, a request is handed to your wallet (cancelled for the firewall tier).' },
+ ens: { kind: 'evidence', title: 'ENS root', sub: 'integrations/ens', does: 'A name whose record points at the current curator-signed snapshot. The reference lives in ENS, not in the site’s DNS.', trust: 'The curator’s ENS role (assumption A1).', fails: 'If that role is compromised, hostile addresses could be listed as trusted.' },
+ swarm: { kind: 'evidence', title: 'Swarm', sub: 'integrations/swarm', does: 'Content-addressed storage for the snapshot bytes (and a safe-page fallback). Any gateway can serve them; the extension checks the digest.', trust: 'Nothing about the gateway: the bytes are verified.', fails: 'With no reachable gateway BOUND uses the cached snapshot until it expires, then goes grey.' },
+ arkiv: { kind: 'evidence', title: 'Arkiv', sub: 'integrations/arkiv', does: 'Public, owner-filtered records the watcher writes: infrastructure drift and incident summaries for each site.', trust: 'Only entities written by the watcher’s owner are read.', fails: 'Records can go stale; the extension says when it is using a cached bundle.' },
+ anon: { kind: 'evidence', title: 'Anon-RPC', sub: 'integrations/anon-rpc', does: 'A privacy-minded route for eligible chain reads, so checking an address does not tell an RPC provider which site you are on.', trust: 'Chain data, verified where possible.', fails: 'Live integration is still being verified.' },
+ curator: { kind: 'producer', title: 'Curator', sub: 'services/curator', does: 'Compiles and signs per-chain snapshots of the addresses each site normally uses, publishes the bytes and writes the ENS root.', trust: 'Key separation and public snapshot diffs. Multi-party signing is future work.', fails: 'A coverage gap: sites the curator never lists have no snapshot, so they score grey.' },
+ watcher: { kind: 'producer', title: 'Watcher', sub: 'services/watcher', does: 'Polls DNS over HTTPS, TLS certificates and hosting for each site and writes drift and incident records. Fast signals for registrar and DNS takeovers.', trust: 'Multiple resolvers; corroboration before a drift counts as strong.', fails: 'Coverage and CDN noise. Uncorroborated drift is treated more gently than corroborated drift.' },
+};
+
+export const STEPS = [
+ { id: 'ask', title: 'A page asks your wallet to act', text: 'Any website can call your wallet’s provider. On a compromised site the request is whatever the attacker wrote: an approval, a permit, a transaction.', nodes: ['site', 'wallet'], edges: ['direct'], labels: { direct: 'request, unchecked' }, proof: ['badger', 'ledger'] },
+ { id: 'hold', title: 'BOUND holds the request', text: 'The extension’s hook sits in front of the provider. It freezes a copy of the request and records a digest, so what is reviewed is exactly what would be sent.', nodes: ['site', 'hook'], edges: ['site-hook'], labels: { 'site-hook': 'request' }, proof: [] },
+ { id: 'decode', title: 'It reads what the request would do', text: 'The decoder turns raw calldata and signatures into addresses with roles. Shapes it does not recognise are scored low rather than guessed at.', nodes: ['hook', 'decoder'], edges: ['hook-decoder'], labels: { 'hook-decoder': 'bytes' }, proof: ['bybit'] },
+ { id: 'evidence', title: 'It asks sources the page cannot edit', text: 'ENS names the current snapshot, Swarm serves its bytes, Arkiv holds the watcher’s drift records, and Anon-RPC reads the chain privately. None of it passes through the site.', nodes: ['ens', 'swarm', 'arkiv', 'anon', 'curator', 'watcher', 'policy'], edges: ['ens-policy', 'swarm-policy', 'arkiv-policy', 'anon-policy', 'curator-ens', 'curator-swarm', 'watcher-arkiv'], labels: { 'ens-policy': 'evidence' }, proof: ['curve', 'squarespace'] },
+ { id: 'score', title: 'It scores the request', text: 'Start at 100. Every address that is not trusted for its role lowers the cap. Missing evidence gives grey, which is never shown as safe.', nodes: ['decoder', 'policy'], edges: ['decoder-policy'], labels: { 'decoder-policy': 'roles' }, proof: ['badger'] },
+ { id: 'decide', title: 'You decide, outside the page', text: 'The verdict appears in a window the page cannot draw or click. Continue forwards the same request to your wallet; the firewall tier needs a typed confirmation. A page that kept its own provider can still skip all of this.', nodes: ['policy', 'review', 'wallet'], edges: ['policy-review', 'review-wallet', 'direct'], labels: { 'policy-review': 'verdict', 'review-wallet': 'you decide', direct: 'path BOUND cannot see' }, danger: ['direct'], proof: ['bybit'] },
+];
+
+const ZONE_LABELS = { page: 'The page · untrusted', bound: 'BOUND · extension, isolated from the page', evidence: 'Evidence · outside the page' };
+const mid = (b) => [b.x + b.w / 2, b.y + b.h / 2];
+const top = (b) => [b.x + b.w / 2, b.y];
+const bottom = (b) => [b.x + b.w / 2, b.y + b.h];
+const left = (b) => [b.x, b.y + b.h / 2];
+const right = (b) => [b.x + b.w, b.y + b.h / 2];
+
+function wide() {
+ const W = 680, colX = [16, 188, 360, 532], w = 132, h = 58, rowY = [44, 176, 336, 484];
+ const at = (c, r) => ({ x: colX[c], y: rowY[r], w, h });
+ const b = { site: at(0, 0), wallet: at(3, 0), hook: at(0, 1), decoder: at(1, 1), policy: at(2, 1), review: at(3, 1), ens: at(0, 2), swarm: at(1, 2), arkiv: at(2, 2), anon: at(3, 2), curator: at(0, 3), watcher: at(2, 3) };
+ const bus = 300, polBottom = bottom(b.policy);
+ const viaBus = (n) => [top(b[n]), [top(b[n])[0], bus], [polBottom[0], bus], polBottom];
+ const e = {
+ direct: [right(b.site), left(b.wallet)],
+ 'site-hook': [bottom(b.site), top(b.hook)],
+ 'hook-decoder': [right(b.hook), left(b.decoder)],
+ 'decoder-policy': [right(b.decoder), left(b.policy)],
+ 'policy-review': [right(b.policy), left(b.review)],
+ 'review-wallet': [top(b.review), bottom(b.wallet)],
+ 'ens-policy': viaBus('ens'), 'swarm-policy': viaBus('swarm'), 'anon-policy': viaBus('anon'),
+ 'arkiv-policy': [top(b.arkiv), polBottom],
+ 'curator-ens': [top(b.curator), bottom(b.ens)],
+ 'curator-swarm': [right(b.curator), [bottom(b.swarm)[0], right(b.curator)[1]], bottom(b.swarm)],
+ 'watcher-arkiv': [top(b.watcher), bottom(b.arkiv)],
+ };
+ // Label anchors sit beside or above the line (x, y of the text's top-left).
+ const labelAt = { direct: [292, 52], 'site-hook': [mid(b.site)[0] + 8, 118], 'hook-decoder': [150, 160], 'decoder-policy': [322, 160], 'policy-review': [494, 160], 'review-wallet': [mid(b.review)[0] + 8, 118], 'ens-policy': [250, 284] };
+ const zones = [
+ { id: 'page', x: 0, y: 8, w: W, h: 104, label: ZONE_LABELS.page },
+ { id: 'bound', x: 0, y: 128, w: W, h: 124, label: ZONE_LABELS.bound, accent: true },
+ { id: 'evidence', x: 0, y: 312, w: W, h: 258, label: ZONE_LABELS.evidence },
+ ];
+ return { mode: 'wide', width: W, height: 584, boxes: b, edges: e, labelAt, zones, node: { w, h } };
+}
+
+function narrow() {
+ const W = 340, x = 30, w = 280, h = 50;
+ const flowY = { site: 34, hook: 138, decoder: 216, policy: 294, review: 372, wallet: 470 };
+ const b = {};
+ Object.entries(flowY).forEach(([id, y]) => { b[id] = { x, y, w, h }; });
+ const evidence = ['swarm', 'curator', 'ens', 'watcher', 'arkiv', 'anon'];
+ evidence.forEach((id, i) => { b[id] = { x, y: 584 + i * 78, w, h }; });
+ const R = 324, L = 14;
+ const toPolicy = (n) => [right(b[n]), [R, right(b[n])[1]], [R, right(b.policy)[1]], right(b.policy)];
+ const e = {
+ direct: [left(b.site), [L, left(b.site)[1]], [L, left(b.wallet)[1]], left(b.wallet)],
+ 'site-hook': [bottom(b.site), top(b.hook)], 'hook-decoder': [bottom(b.hook), top(b.decoder)], 'decoder-policy': [bottom(b.decoder), top(b.policy)],
+ 'policy-review': [bottom(b.policy), top(b.review)], 'review-wallet': [bottom(b.review), top(b.wallet)],
+ 'ens-policy': toPolicy('ens'), 'swarm-policy': toPolicy('swarm'), 'arkiv-policy': toPolicy('arkiv'), 'anon-policy': toPolicy('anon'),
+ 'curator-ens': [bottom(b.curator), top(b.ens)], 'curator-swarm': [top(b.curator), bottom(b.swarm)], 'watcher-arkiv': [bottom(b.watcher), top(b.arkiv)],
+ };
+ const zones = [
+ { id: 'page', x: 4, y: 6, w: 332, h: 90, label: ZONE_LABELS.page },
+ { id: 'bound', x: 4, y: 108, w: 332, h: 328, label: ZONE_LABELS.bound, accent: true },
+ { id: 'evidence', x: 4, y: 548, w: 332, h: 490, label: ZONE_LABELS.evidence },
+ ];
+ return { mode: 'narrow', width: W, height: 1052, boxes: b, edges: e, labelAt: {}, zones, node: { w, h } };
+}
+
+export const layoutFor = (mode) => (mode === 'narrow' ? narrow() : wide());
+export const EDGE_IDS = Object.keys(wide().edges);
diff --git a/landing/src/closing/Closing.jsx b/landing/src/closing/Closing.jsx
new file mode 100644
index 0000000..9b25bf5
--- /dev/null
+++ b/landing/src/closing/Closing.jsx
@@ -0,0 +1,33 @@
+import React, { useRef } from 'react';
+import gsap from 'gsap';
+import { ScrollTrigger } from 'gsap/ScrollTrigger';
+import { useGSAP } from '@gsap/react';
+import { Words } from '../lib/shared.jsx';
+import './closing.css';
+
+gsap.registerPlugin(ScrollTrigger, useGSAP);
+
+export default function Closing() {
+ const root = useRef(null);
+
+ useGSAP(() => {
+ const q = gsap.utils.selector(root);
+ const mm = gsap.matchMedia();
+ mm.add('(prefers-reduced-motion: no-preference)', () => {
+ gsap.fromTo(q('.rv-w'), { opacity: 0, y: 36 }, { opacity: 1, y: 0, ease: 'none', stagger: 0.12, scrollTrigger: { trigger: root.current, start: 'top 75%', end: 'center 50%', scrub: 0.6 } });
+ gsap.fromTo(q('.cl-em'), { backgroundSize: '0% 38%' }, { backgroundSize: '100% 38%', ease: 'none', scrollTrigger: { trigger: root.current, start: 'top 55%', end: 'center 40%', scrub: 0.6 } });
+ gsap.from(q('.cl-actions > *'), { autoAlpha: 0, y: 20, duration: 0.8, ease: 'expo.out', stagger: 0.1, scrollTrigger: { trigger: q('.cl-actions')[0], start: 'top 92%', once: true } });
+ });
+ document.fonts?.ready.then(() => ScrollTrigger.refresh());
+ }, { scope: root });
+
+ return
+
In Web3, the interface is where trust becomes action. But an attacker can change what a familiar site serves without changing what you expect to see.
01 / THE SURFACE
A familiar address
You arrive at a website you recognize. The address and the design feel reassuring.
02 / THE CHANGE
↗↘
Something underneath shifts
A lookalike domain or a changed frontend can put a different request in front of you.
03 / THE MOMENT
⌑
A decision without context
By the time your wallet asks you to act, it may be difficult to tell what changed.
-
-
THE IDEA / A LITTLE MORE CLARITY
Security should help you understand the moment.
BOUND is built around a simple idea: compare what you're seeing with independently verifiable information, then make the result easier to understand.
✳
-
-
02 / HOW IT WORKS
A small check. A bigger picture.
Three pieces work together to bring independent context into the browser, without asking you to decode the infrastructure.
{architecture.map(item => {item.n}
{item.title}
{item.text}
↗)}
THE BOUND ARCHITECTURE ↗
⌘
THE INPUTWebsite & browser
01
OBSERVE
◎
THE REFERENCEENS + Arkiv
02
COMPARE
✳
THE OUTCOMEA clearer status
03
A CHECK, NOT A GUARANTEE ● ● ●
The site-safety flow shown here is the project’s proposed direction. Live integrations and browser coverage are still being verified.
-
-
-
04 / THE TECHNOLOGY
Built on open infrastructure.
Different tools, one purpose: make information about the sites you use easier to verify.
{stack.map(([n,title,text,tag]) =>
{n} /↗
{n === '01' ? '▣' : n === '02' ? '◈' : n === '03' ? '◫' : '◎'}
{title}
{text}
{tag})}
Technologies shown reflect the project architecture; their live integration and privacy properties require verification.
-
05 / THE DEMO
See the full story unfold.
A closer look at the problem, the proposed approach, and the experience BOUND is working towards.
{validVideoId ? :
✳
BOUND / PROJECT DEMO
The full picture, coming into focus.
Demo video coming soon.
05 / 05
}
Extension prototype: extract the downloaded ZIP, open chrome://extensions or edge://extensions, enable Developer mode, and select Load unpacked. Choose the extracted folder containing manifest.json. Configuration is required, and live integrations are still being verified.
- >;
+ return <>
+ Skip to content
+
+
+
+
+
+
+
+
+
+
+
+
+ >;
}
createRoot(document.getElementById('root')).render();
diff --git a/landing/src/problem/Problem.jsx b/landing/src/problem/Problem.jsx
new file mode 100644
index 0000000..02cd568
--- /dev/null
+++ b/landing/src/problem/Problem.jsx
@@ -0,0 +1,118 @@
+import React, { useRef } from 'react';
+import gsap from 'gsap';
+import { ScrollTrigger } from 'gsap/ScrollTrigger';
+import { useGSAP } from '@gsap/react';
+import { CHAIN, WEB3 } from './ascii.js';
+import './problem.css';
+
+gsap.registerPlugin(ScrollTrigger, useGSAP);
+
+// Copy carried over from the previous "The problem" section. `mark` segments get the yellow highlighter.
+const paragraphs = [
+ {
+ id: 'surface',
+ side: 'right', // centre → right edge
+ parts: [
+ { t: 'In Web3, the interface is where trust becomes action. But an attacker can change what a familiar site serves, ' },
+ { t: 'without changing what you expect to see.', mark: true },
+ ],
+ },
+ {
+ id: 'moment',
+ side: 'left', // left edge → centre
+ parts: [
+ { t: 'A lookalike domain or a changed frontend can put a different request in front of you. By the time your wallet asks you to act, it may be ' },
+ { t: 'hard to tell what changed.', mark: true },
+ ],
+ },
+];
+
+// Every word is its own inline-block so GSAP can move/fade it; plain spaces sit between them so text still wraps and reads normally.
+function Words({ parts }) {
+ return parts.map((part, i) => {
+ const words = part.t.trim().split(/\s+/).map((w, j, all) => {w}{j < all.length - 1 || !part.mark ? ' ' : null});
+ return part.mark ? {words} : {words};
+ });
+}
+
+// ASCII art, one per line so it can be typed in line by line. Decorative, so hidden from screen readers.
+const Art = ({ lines, name }) =>
{lines.map((l, i) => {l || ' '}{'\n'})}
;
+
+const EACH = 0.07; // seconds of timeline between consecutive words
+const WORD = 0.35; // seconds each word takes to resolve
+const DIM = 0; // unwritten words are invisible. A dim ghost reads as muddy on black
+
+// Adds "write this paragraph left → right" to a timeline at `at`, typing its ASCII art in alongside. Returns when it finishes.
+function writeParagraph(tl, para, at, art) {
+ const words = gsap.utils.toArray('.bp-w', para);
+ const total = (words.length - 1) * EACH + WORD;
+ tl.fromTo(words, { opacity: DIM, y: 10 }, { opacity: 1, y: 0, duration: WORD, ease: 'power2.out', stagger: EACH }, at);
+ gsap.utils.toArray('.bp-mark', para).forEach(mark => {
+ const inside = gsap.utils.toArray('.bp-w', mark);
+ const start = at + words.indexOf(inside[0]) * EACH;
+ tl.fromTo(mark, { backgroundSize: '0% 1.04em' }, { backgroundSize: '100% 1.04em', duration: inside.length * EACH + WORD, ease: 'none' }, start);
+ });
+ if (art) typeArt(tl, art, at, total);
+ return at + total;
+}
+
+function typeArt(tl, art, at, total) {
+ const lines = gsap.utils.toArray('.ln', art);
+ tl.fromTo(lines, { opacity: 0 }, { opacity: 1, duration: 0.25, ease: 'none', stagger: Math.max(0.05, (total - 0.25) / Math.max(1, lines.length - 1)) }, at);
+}
+
+export default function Problem() {
+ const root = useRef(null);
+
+ useGSAP(() => {
+ const q = gsap.utils.selector(root);
+ const mm = gsap.matchMedia();
+
+ // Desktop: pin, then one scrubbed timeline. Paragraph 1 is written, THEN paragraph 2 slides in from the left and is written.
+ // Each paragraph types in the ASCII art that shares its row of the page.
+ mm.add('(min-width: 901px) and (prefers-reduced-motion: no-preference)', () => {
+ const [p1, p2] = q('.bp-p');
+ const [chain, web3] = q('.bp-art');
+ gsap.set(q('.bp-w'), { opacity: DIM });
+ gsap.set(q('.bp-mark'), { backgroundSize: '0% 1.04em' });
+ gsap.set(q('.ln'), { opacity: 0 });
+ gsap.set(p2, { x: -90, autoAlpha: 0 });
+
+ const tl = gsap.timeline({
+ defaults: { ease: 'none' },
+ scrollTrigger: { trigger: root.current, start: 'top top', end: '+=170%', pin: true, scrub: 1, anticipatePin: 1 },
+ });
+ const end1 = writeParagraph(tl, p1, 0.05, chain);
+ tl.to(p2, { x: 0, autoAlpha: 1, duration: 0.7, ease: 'power3.out' }, end1 + 0.05);
+ const end2 = writeParagraph(tl, p2, end1 + 0.3, web3);
+ tl.to({}, { duration: 0.4 }, end2); // hold the finished page briefly before the pin releases
+ });
+
+ // Tablet / mobile: no pin. Each paragraph and each piece of art writes itself as it travels up the screen.
+ mm.add('(max-width: 900px) and (prefers-reduced-motion: no-preference)', () => {
+ gsap.set(q('.bp-w'), { opacity: DIM });
+ gsap.set(q('.bp-mark'), { backgroundSize: '0% 1.04em' });
+ gsap.set(q('.ln'), { opacity: 0 });
+ q('.bp-p').forEach(p => {
+ const tl = gsap.timeline({ scrollTrigger: { trigger: p, start: 'top 85%', end: 'bottom 55%', scrub: 0.8 } });
+ writeParagraph(tl, p, 0);
+ });
+ q('.bp-art').forEach(a => {
+ const tl = gsap.timeline({ scrollTrigger: { trigger: a, start: 'top 92%', end: 'bottom 62%', scrub: 0.8 } });
+ typeArt(tl, a, 0, 2);
+ });
+ });
+
+ document.fonts?.ready.then(() => ScrollTrigger.refresh());
+ }, { scope: root });
+
+ return
+
+
+ {paragraphs.map(p =>
)}
+
+
+
+
+
;
+}
diff --git a/landing/src/problem/ascii.js b/landing/src/problem/ascii.js
new file mode 100644
index 0000000..5d01a2e
--- /dev/null
+++ b/landing/src/problem/ascii.js
@@ -0,0 +1,59 @@
+// ASCII art for the Problem page. Plain ASCII only, so it lines up in any monospace font.
+// Everything is generated from small pieces so the columns can never drift out of alignment.
+
+const pad = (s, n) => s + ' '.repeat(Math.max(0, n - s.length));
+
+/** Put two blocks of text side by side. `drop` moves the right block down. */
+const side = (left, right, gap = 6, drop = 0) => {
+ const w = Math.max(...left.map((l) => l.length));
+ const rows = Math.max(left.length, right.length + drop);
+ return Array.from({ length: rows }, (_, i) => `${pad(left[i] ?? '', w)}${' '.repeat(gap)}${right[i - drop] ?? ''}`.trimEnd());
+};
+
+const box = (rows) => {
+ const w = Math.max(...rows.map((r) => r.length));
+ const bar = `+${'-'.repeat(w + 2)}+`;
+ return [bar, ...rows.map((r) => `| ${pad(r, w)} |`), bar];
+};
+
+const block = (n, hash, txs) => [
+ '+----------+',
+ '| BLOCK |',
+ `| ${pad(`#${n}`, 9)}|`,
+ `| ${pad(hash, 9)}|`,
+ `| ${pad(`${txs} txs`, 9)}|`,
+ '+----------+',
+];
+
+// A chain: each block points back at the one before it.
+const blocks = [block(19042, '0x9f3a..', 214), block(19043, '0xc71e..', 187), block(19044, '0x2b8d..', 203)];
+export const CHAIN = [
+ ...Array.from({ length: 6 }, (_, row) => blocks.map((b, i) => (row === 2 && i > 0 ? `<-----${b[row]}` : `${i > 0 ? ' ' : ''}${b[row]}`)).join('') + (row === 2 ? '<- ...' : '')),
+ '',
+ 'each block signs the one before it.',
+ 'change one byte and every hash after it breaks.',
+];
+
+// An Ethereum-style diamond beside a web3 domain bar: the page looks right, but is it?
+const DIAMOND = [
+ ' /\\ ',
+ ' / \\ ',
+ ' / /\\ \\ ',
+ ' / / \\ \\ ',
+ ' / / \\ \\ ',
+ ' < <------> > ',
+ ' \\ \\ / / ',
+ ' \\ \\ / / ',
+ ' \\ \\/ / ',
+ ' \\ / ',
+ ' \\/ ',
+];
+const PANEL = [
+ ...box(['https://app.yourname.eth [ok]']),
+ '',
+ ' ENS -> 0x9f3a...c71e',
+ ' [ connect wallet ]',
+ '',
+ ' looks right. is it?',
+];
+export const WEB3 = side(DIAMOND, PANEL, 6, 2);
diff --git a/landing/src/problem/problem.css b/landing/src/problem/problem.css
new file mode 100644
index 0000000..4ef8467
--- /dev/null
+++ b/landing/src/problem/problem.css
@@ -0,0 +1,36 @@
+/* ─── The problem: the page the black ink lands on. Black ground, yellow text. ─── */
+/* The hero ends fully black. Pull this page up by one screen so it is already in place the moment the hero's pin ends,
+ instead of leaving a blank black screen to scroll through. Desktop only: phones do not pin the hero. */
+.bp-wrap { position: relative; z-index: 5; margin-top: calc(-1 * max(100svh, 700px)); /* the hero is max(100svh, 700px) tall */ background: var(--ink, #0b0b0c); }
+.bp { position: relative; min-height: 100svh; display: flex; align-items: center; overflow: hidden; background: var(--ink, #0b0b0c); color: var(--accent, #ffd500); font-family: var(--serif, "Instrument Serif", Georgia, serif); font-weight: 400; }
+.bp-inner { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: 72px 0; } /* same side padding as the hero */
+
+.bp-grid { display: grid; grid-template-columns: 1fr 1fr; column-gap: 40px; row-gap: clamp(36px, 8vh, 96px); }
+.bp-p { margin: 0; font-size: clamp(26px, min(3.1vw, 5.2vh), 50px); line-height: 1.14; letter-spacing: -0.012em; text-wrap: pretty; }
+.bp-right { grid-column: 2; grid-row: 1; } /* centre → right edge */
+.bp-left { grid-column: 1; grid-row: 2; } /* left edge → centre */
+.bp-w { display: inline-block; will-change: transform, opacity; }
+/* On black, the highlighter inverts: a yellow bar with black type. Instrument Serif's content box is 1.30em tall and its glyphs
+ span 0.25em to 1.205em of it, so the bar is exactly that span (1.04em, offset 0.205em): it covers every ascender and descender
+ and stops short of the line above. */
+.bp-mark { color: var(--ink, #0b0b0c); background: linear-gradient(var(--accent, #ffd500), var(--accent, #ffd500)) no-repeat 0 0.205em / 100% 1.04em; -webkit-box-decoration-break: clone; box-decoration-break: clone; padding: 0 0.14em; margin: 0 -0.14em; }
+
+/* ASCII art fills the two empty quadrants: top-left beside paragraph 1, bottom-right beside paragraph 2. */
+.bp-art { margin: 0; font-family: var(--mono, ui-monospace, "SF Mono", Menlo, Consolas, monospace); font-size: clamp(10px, 1.1vw, 16px); line-height: 1.24; white-space: pre; color: var(--accent, #ffd500); text-shadow: 0 0 14px rgba(255, 213, 0, 0.28); user-select: none; overflow: hidden; }
+.bp-art-chain { grid-column: 1; grid-row: 1; align-self: center; justify-self: start; }
+.bp-art-web3 { grid-column: 2; grid-row: 2; align-self: center; justify-self: start; }
+
+@media (max-width: 900px) {
+ .bp-wrap { margin-top: 0; }
+ .bp { min-height: 0; overflow: visible; }
+ .bp-inner { width: calc(100% - 32px); padding: 84px 0 96px; }
+ .bp-grid { grid-template-columns: 1fr; row-gap: 40px; }
+ .bp-right, .bp-left, .bp-art-chain, .bp-art-web3 { grid-column: 1; }
+ .bp-art-chain { grid-row: 1; } .bp-right { grid-row: 2; } .bp-left { grid-row: 3; } .bp-art-web3 { grid-row: 4; }
+ .bp-p { font-size: clamp(26px, 7.4vw, 38px); }
+ .bp-left { padding-right: 12%; } /* keep the left/right feel: left para stops short of the right edge, right para starts short of the left */
+ .bp-right { padding-left: 12%; }
+ .bp-art { font-size: clamp(7px, 2.05vw, 11px); }
+ /* No pinned ink flood on phones: the page just arrives with a spattered edge. */
+ .bp::before { content: ""; position: absolute; left: 0; right: 0; top: -33px; height: 34px; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 120 34' preserveAspectRatio='none'%3E%3Cpath fill='%230b0b0c' d='M0 34V20C6 20 8 8 14 8s7 14 13 14 6-18 14-18 8 20 16 20 6-10 12-10 8 12 14 12 6-16 12-16 6 14 12 14 6-4 12-4V34Z'/%3E%3C/svg%3E") repeat-x bottom / 120px 34px; }
+}
diff --git a/landing/src/proof/Incidents.jsx b/landing/src/proof/Incidents.jsx
new file mode 100644
index 0000000..bbef563
--- /dev/null
+++ b/landing/src/proof/Incidents.jsx
@@ -0,0 +1,86 @@
+import React, { useRef } from 'react';
+import gsap from 'gsap';
+import { ScrollTrigger } from 'gsap/ScrollTrigger';
+import { useGSAP } from '@gsap/react';
+import { incidents, outOfScope } from './incidents.js';
+import './proof.css';
+
+gsap.registerPlugin(ScrollTrigger, useGSAP);
+
+function Sources({ list }) {
+ return
Each of these compromised the page, the domain or a library while the contracts stayed intact. All of them happened before BOUND existed. Facts below come from the linked reporting; where sources disagree, the range is shown.
BOUND adds context to a wallet request. It does not guarantee a site or transaction is safe, and the comparisons above are analysis, not proof of prevention.
+
+ ;
+}
diff --git a/landing/src/proof/Proof.jsx b/landing/src/proof/Proof.jsx
new file mode 100644
index 0000000..6d0f62e
--- /dev/null
+++ b/landing/src/proof/Proof.jsx
@@ -0,0 +1,14 @@
+import React from 'react';
+import { byIncident } from './incidents.js';
+import './proof.css';
+
+// Small citation chip: "Badger 2021". Links to that incident's card in the record.
+// Used wherever a claim on the site is backed by a documented incident.
+export default function Proof({ ids, label = 'Seen in' }) {
+ const items = ids.map((id) => byIncident[id]).filter(Boolean);
+ if (!items.length) return null;
+ return `${i.name}, ${i.year}`).join('; ')}`}>
+ {label}
+ {items.map((i) => {i.name.split(' ')[0]} {i.year})}
+ ;
+}
diff --git a/landing/src/proof/incidents.js b/landing/src/proof/incidents.js
new file mode 100644
index 0000000..1fac1cf
--- /dev/null
+++ b/landing/src/proof/incidents.js
@@ -0,0 +1,120 @@
+// Documented frontend / supply-chain compromises that happened before BOUND existed.
+// Facts here come from the linked reporting. Where sources disagree, the range or the disagreement is stated.
+// `lens` is BOUND's analysis of what it would have compared. It is not a claim that it would have prevented the loss.
+// `scenario` links to the replay in the toy-OS simulation (src/sim/scenarios.js).
+
+export const incidents = [
+ {
+ id: 'badger',
+ name: 'BadgerDAO',
+ when: 'December 2021',
+ year: 2021,
+ vector: 'Injected script',
+ loss: '≈ $115–120M',
+ lossNote: 'Estimates differ by source.',
+ headline: 'One injected script turned the deposit flow into an approval drainer.',
+ what: 'Attackers got into the site’s Cloudflare account (a compromised API key is the likely route) and injected a script into the front end. It prompted users’ wallets to approve token spending to an attacker-controlled address. The smart contracts were not breached; funds were taken directly from users of the website.',
+ seen: 'A normal-looking page and a wallet approval prompt.',
+ lens: 'The approval gives spending rights to an address this site had never used. BOUND compares that rights-role address with the site’s own trusted list outside the page and scores it low.',
+ limit: 'It warns; the user can still continue. It needs a curated baseline for the site.',
+ scenario: 'badger',
+ sources: [
+ { label: 'Halborn: explained', url: 'https://halborn.com/blog/post/explained-the-badgerdao-hack-december-2021' },
+ { label: 'Blockworks', url: 'https://www.blockworks.com/news/hackers-drain-115-million-from-bitcoin-defi-focused-badgerdao' },
+ ],
+ },
+ {
+ id: 'curve',
+ name: 'Curve Finance',
+ when: 'August 2022',
+ year: 2022,
+ vector: 'DNS hijack',
+ loss: '≈ $570–612K',
+ lossNote: 'Reports vary; later recovered in part.',
+ headline: 'The domain was right. The server behind it was not.',
+ what: 'Attackers compromised the domain registrar’s nameserver and pointed the site at a cloned front end that asked users to approve a malicious contract. Curve’s own contracts were untouched, and the team moved users to another domain while the DNS fix propagated.',
+ seen: 'The correct address in the browser bar and an identical-looking site.',
+ lens: 'A nameserver change is a signal the page cannot forge. BOUND’s watcher records DNS and certificate drift, and drift lowers the score for any untrusted address on that site.',
+ limit: 'Drift detection depends on the watcher’s coverage and is still being verified end to end.',
+ scenario: 'curve',
+ sources: [
+ { label: 'rekt.news', url: 'https://rekt.news/curve-finance-rekt' },
+ { label: 'Kitco', url: 'https://www.kitco.com/news/article/2022-08-10/hackers-steal-611500-worth-users-funds-hijacking-curve-finance-homepage' },
+ { label: 'Web3 is Going Great', url: 'https://www.web3isgoinggreat.com/embed/curve-finance-frontend-compromised' },
+ ],
+ },
+ {
+ id: 'ledger',
+ name: 'Ledger Connect Kit',
+ when: '14 December 2023',
+ year: 2023,
+ vector: 'Poisoned library',
+ loss: '≈ $600–680K',
+ lossNote: 'Reports vary. The malicious code was live for about five hours.',
+ headline: 'A trusted wallet library shipped a drainer to every site that loaded it.',
+ what: 'Malicious versions 1.1.5–1.1.7 of Ledger’s Connect Kit were published after an npm account was compromised, and dApps that loaded the kit at runtime served wallet-drainer prompts to their users. Ledger hardware and Ledger Live were not affected, and the bad versions were replaced by 1.1.8. Sources differ on the exact access route.',
+ seen: 'A legitimate dApp, from a legitimate team, with a familiar connect dialog.',
+ lens: 'Every site that loaded the library looked fine. The drainer still had to ask the wallet for an approval or signature, which is the request BOUND reads.',
+ limit: 'BOUND does not inspect the library. It only sees what the library asks the wallet to do.',
+ scenario: 'ledger',
+ sources: [
+ { label: 'BleepingComputer', url: 'https://www.bleepingcomputer.com/news/security/ledger-dapp-supply-chain-attack-steals-600k-from-crypto-wallets/' },
+ { label: 'The Hacker News', url: 'https://thehackernews.com/2023/12/crypto-hardware-wallet-ledgers-supply.html' },
+ { label: 'SlowMist', url: 'https://slowmist.medium.com/supply-chain-attack-on-ledger-connect-kit-analyzing-the-impact-and-preventive-measures-1005e39422fd' },
+ ],
+ },
+ {
+ id: 'squarespace',
+ name: 'Squarespace domain hijacks',
+ when: '9–12 July 2024',
+ year: 2024,
+ vector: 'Registrar takeover',
+ loss: 'Not consolidated',
+ lossNote: 'Reporting names affected projects, not one reliable total.',
+ headline: 'Registrar accounts were taken over across many crypto domains at once.',
+ what: 'DNS records for crypto and DeFi domains registered with Squarespace, including Celer Network, Compound Labs, Pendle Labs and Unstoppable Domains, were changed to send visitors to wallet-drainer pages. Reporting links it to weak defaults after the Google Domains migration; the exact cause was not confirmed in the sources reviewed.',
+ seen: 'The project’s real domain, now serving someone else’s page.',
+ lens: 'For a site the curator never listed there is no snapshot, but the watcher can still see the DNS change, and an address the site never used is still untrusted.',
+ limit: 'With no baseline BOUND can only say “no score”, which is not a safe signal.',
+ scenario: 'squarespace',
+ sources: [
+ { label: 'BleepingComputer', url: 'https://www.bleepingcomputer.com/news/security/dns-hijacks-target-crypto-platforms-registered-with-squarespace/' },
+ { label: 'rekt.news', url: 'https://rekt.news/thanks-squarespace/' },
+ { label: 'The Block: Celer', url: 'https://www.theblock.co/news/markets/2024-07-11-celer-network-thwarts-attempted-dns-attack-that-allegedly-puts-128-web3-projects-at-risk-304956' },
+ ],
+ },
+ {
+ id: 'bybit',
+ name: 'Bybit / Safe{Wallet}',
+ when: '21 February 2025',
+ year: 2025,
+ vector: 'Tampered Safe{Wallet} JavaScript',
+ loss: '≈ $1.4–1.5B',
+ lossNote: 'About 401,000 ETH. The FBI attributed it to North Korea’s TraderTraitor group.',
+ headline: 'Signers saw a routine transfer. They signed away the wallet.',
+ what: 'Investigators found malicious JavaScript served from Safe{Wallet}’s cloud infrastructure that only changed behaviour when Bybit’s cold-wallet transaction was about to be signed. The interface showed a routine transfer while the signed transaction handed control of the wallet contract to the attacker. Forensics found the original files were restored about two minutes after the theft. Bybit’s own systems were not breached.',
+ seen: 'A routine transfer on the real Safe{Wallet} site.',
+ lens: 'The review window lives in the extension, outside the page, so a tampered page cannot redraw it. But BOUND does not decode Safe transactions: it would show an amber “typed-data fields not recognized”, not the delegatecall.',
+ limit: 'Partial at best today. Decoding Safe transactions and delegatecall is not implemented.',
+ scenario: 'bybit',
+ sources: [
+ { label: 'NCC Group / Fox-IT', url: 'https://www.nccgroup.com/research/in-depth-technical-analysis-of-the-bybit-hack/' },
+ { label: 'SlowMist', url: 'https://slowmist.medium.com/bybits-1-5-billion-theft-unveiled-safe-wallet-front-end-code-tampered-84b78f0fa9c2' },
+ ],
+ },
+];
+
+// Reported to be fair about scope: an incident BOUND would not have addressed.
+export const outOfScope = {
+ id: 'solana-web3js',
+ name: '@solana/web3.js backdoor',
+ when: 'December 2024',
+ loss: 'Reported ≈ $130K so far',
+ text: 'A hijacked publish account added code that sent private keys to an attacker’s server. It hit software that holds keys directly, such as bots and backends. No wallet prompt is ever shown, so there is nothing for a wallet-request check to review.',
+ sources: [
+ { label: 'The Hacker News', url: 'https://thehackernews.com/2024/12/researchers-uncover-backdoor-in-solanas.html' },
+ { label: 'The Register', url: 'https://www.theregister.com/2024/12/05/solana_javascript_sdk_compromised/' },
+ ],
+};
+
+export const byIncident = Object.fromEntries(incidents.map((i) => [i.id, i]));
diff --git a/landing/src/proof/proof.css b/landing/src/proof/proof.css
new file mode 100644
index 0000000..2d63135
--- /dev/null
+++ b/landing/src/proof/proof.css
@@ -0,0 +1,56 @@
+/* ─── Proof: citation chips + the incident record ─── */
+.pf-chips { display: inline-flex; flex-wrap: wrap; align-items: center; gap: 6px; font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 11px; letter-spacing: 0.04em; vertical-align: middle; }
+.pf-chips-label { text-transform: uppercase; letter-spacing: 0.12em; color: var(--muted, #6b6b64); margin-right: 2px; }
+.pf-chip { display: inline-flex; align-items: center; gap: 5px; height: 22px; padding: 0 9px; border: 1px solid var(--ink, #0b0b0c); border-radius: 999px; background: var(--paper, #fff); color: var(--ink, #0b0b0c); text-decoration: none; transition: background 0.2s, transform 0.2s; }
+.pf-chip b { font-weight: 500; }
+.pf-chip:hover { background: var(--accent, #ffd500); transform: translateY(-1px); }
+.pf-chip:focus-visible { outline: 2px solid var(--ink, #0b0b0c); outline-offset: 2px; }
+
+.pf { background: var(--paper, #fff); color: var(--ink, #0b0b0c); font-family: var(--serif, "Instrument Serif", Georgia, serif); border-top: 1px solid var(--line, #e6e6e1); }
+.pf-inner { width: min(1240px, calc(100% - 64px)); margin: 0 auto; padding: clamp(72px, 12vh, 150px) 0; }
+.pf-head h2 { margin: 0 0 20px; font-size: clamp(48px, 7vw, 108px); font-weight: 400; line-height: 0.95; letter-spacing: -0.025em; }
+.pf-head h2 em { font-style: italic; background: linear-gradient(var(--accent, #ffd500), var(--accent, #ffd500)) no-repeat 0 90% / 100% 38%; }
+.pf-head p { max-width: 58ch; margin: 0; font-size: clamp(19px, 1.6vw, 24px); line-height: 1.4; color: #3d3d39; }
+
+.pf-list { position: relative; display: grid; gap: clamp(20px, 3vw, 36px); margin-top: clamp(40px, 7vh, 88px); padding-left: 44px; }
+.pf-rail { position: absolute; left: 10px; top: 14px; bottom: 14px; width: 2px; background: var(--line, #e6e6e1); border-radius: 2px; }
+.pf-rail-fill { position: absolute; inset: 0; background: var(--accent, #ffd500); box-shadow: 0 0 10px rgba(255, 213, 0, 0.7); transform-origin: 50% 0; border-radius: 2px; }
+
+.pf-card { position: relative; border: 1px solid var(--ink, #0b0b0c); border-radius: 22px; background: var(--paper, #fff); padding: clamp(22px, 3vw, 40px); box-shadow: 0 24px 50px -34px rgba(11, 11, 12, 0.5); scroll-margin-top: 90px; }
+.pf-card::before { content: ""; position: absolute; left: -41px; top: 38px; width: 13px; height: 13px; background: var(--accent, #ffd500); outline: 1.5px solid var(--ink, #0b0b0c); transform: rotate(45deg); }
+.pf-card:target { box-shadow: 0 0 0 4px var(--accent, #ffd500), 0 24px 50px -34px rgba(11, 11, 12, 0.5); }
+.pf-top { display: grid; grid-template-columns: 150px minmax(0, 1fr) minmax(0, 250px); gap: clamp(16px, 3vw, 40px); align-items: start; }
+.pf-year span { display: block; font-size: clamp(54px, 6vw, 84px); line-height: 0.9; letter-spacing: -0.03em; }
+.pf-year small, .pf-loss small, .pf-trio small { display: block; font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 10.5px; letter-spacing: 0.12em; text-transform: uppercase; color: var(--muted, #6b6b64); }
+.pf-year small { margin-top: 8px; }
+.pf-vector { display: inline-block; height: 24px; line-height: 22px; padding: 0 12px; border: 1px solid var(--ink, #0b0b0c); border-radius: 999px; font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 11px; letter-spacing: 0.08em; text-transform: uppercase; background: var(--accent-soft, #fff4b8); }
+.pf-main h3 { margin: 12px 0 6px; font-size: clamp(30px, 3.2vw, 46px); font-weight: 400; line-height: 1; letter-spacing: -0.015em; }
+.pf-headline { margin: 0; font-size: clamp(19px, 1.5vw, 23px); line-height: 1.3; color: #3d3d39; }
+.pf-loss { text-align: right; }
+.pf-loss strong { display: block; margin: 6px 0 4px; font-size: clamp(28px, 2.8vw, 40px); font-weight: 400; line-height: 1; letter-spacing: -0.015em; }
+.pf-loss span { display: block; font-size: 14px; line-height: 1.3; color: var(--muted, #6b6b64); }
+.pf-what { max-width: 82ch; margin: 24px 0 0; font-size: clamp(17px, 1.3vw, 20px); line-height: 1.45; color: #2b2b28; }
+.pf-trio { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; margin-top: 24px; }
+.pf-trio > div { padding: 16px 18px; border: 1px dashed rgba(11, 11, 12, 0.35); border-radius: 14px; }
+.pf-trio p { margin: 8px 0 0; font-size: 16px; line-height: 1.35; color: #2b2b28; }
+.pf-trio .pf-lens { border: 1px solid var(--ink, #0b0b0c); background: var(--accent-soft, #fff4b8); }
+.pf-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 14px 24px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line, #e6e6e1); }
+.pf-sources { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; padding: 0; list-style: none; font-family: var(--mono, ui-monospace, Menlo, monospace); font-size: 12px; }
+.pf-sources a { color: var(--ink, #0b0b0c); text-decoration: underline; text-decoration-color: var(--accent, #ffd500); text-decoration-thickness: 2px; text-underline-offset: 3px; }
+.pf-sources a:hover { background: var(--accent, #ffd500); }
+.pf-replay { display: inline-flex; align-items: center; gap: 10px; height: 42px; padding: 0 20px; border-radius: 999px; background: var(--ink, #0b0b0c); color: #fff; font-size: 17px; text-decoration: none; transition: transform 0.25s, background 0.2s; }
+.pf-replay:hover { transform: translateY(-2px); background: #26262a; }
+.pf-replay:focus-visible, .pf-sources a:focus-visible { outline: 2px solid var(--ink, #0b0b0c); outline-offset: 3px; }
+.pf-out { border-style: dashed; box-shadow: none; }
+.pf-out::before { background: var(--paper, #fff); }
+.pf-note { max-width: 70ch; margin: 28px 0 0; font-size: 16px; line-height: 1.4; color: var(--muted, #6b6b64); }
+
+@media (max-width: 900px) {
+ .pf-inner { width: calc(100% - 32px); }
+ .pf-list { padding-left: 26px; }
+ .pf-rail { left: 5px; }
+ .pf-card::before { left: -26px; top: 30px; width: 11px; height: 11px; }
+ .pf-top { grid-template-columns: 1fr; gap: 14px; }
+ .pf-loss { text-align: left; }
+ .pf-trio { grid-template-columns: 1fr; }
+}
diff --git a/landing/src/sim/engine.js b/landing/src/sim/engine.js
new file mode 100644
index 0000000..971a893
--- /dev/null
+++ b/landing/src/sim/engine.js
@@ -0,0 +1,100 @@
+// Pure simulation engine. No React, no DOM, no timers.
+//
+// The verdicts come from BOUND's own code, imported from the repository:
+// packages/decoder classifyRequest() → what the request would do
+// packages/policy-core evaluate() → score + verdict
+// The routing rules mirror apps/extension/sw.js (typed confirmation for the firewall tier, deadline behaviour).
+// Everything the UI shows as a result must come from a function in this file.
+import { classifyRequest } from '../../../packages/decoder/index.mjs';
+import { evaluate } from '../../../packages/policy-core/index.mjs';
+import { A, labelOf, short } from './requests.js';
+import { SITE_POLICY } from './scenarios.js';
+
+export const CONFIRM_PHRASE = 'I UNDERSTAND'; // sw.js: required for escalated verdicts
+export const DEADLINE_MINUTES = 10; // sw.js DEADLINE_MS = 10 * 60_000
+export const THRESHOLDS = { green: 70, amber: 40, red: 16 };
+
+const TIER = {
+ green: { tone: 'pass', title: 'Checks passed', window: 'Review window', summary: 'Every counterparty is on this site’s trusted list.' },
+ amber: { tone: 'warn', title: 'Review this request', window: 'Warning window', summary: 'Part of this request could not be matched to the site’s trusted list.' },
+ red: { tone: 'alert', title: 'Strong warning', window: 'Warning window', summary: 'This gives rights or funds to an address this site does not normally use.' },
+ escalated: { tone: 'stop', title: 'Firewall', window: 'Firewall window', summary: 'Strongest warning. You can still continue, after typing a confirmation.' },
+ grey: { tone: 'none', title: 'No score', window: 'Warning window', summary: 'BOUND had nothing to compare against. This is not a safe signal.' },
+};
+
+/** Runs one scenario through the real decoder and policy engine. */
+export function assess(scenario) {
+ const classification = classifyRequest(scenario.request);
+ const e = scenario.eval ?? {};
+ const baseline = e.baseline ?? null;
+ const policy = scenario.policy ?? SITE_POLICY;
+ const result = evaluate({
+ classification, policy, baseline,
+ signerAccounts: e.signerAccounts ?? [A.you],
+ drift: Boolean(e.drift),
+ witnessed: new Set((e.witnessed ?? []).map((x) => x.toLowerCase())),
+ coverage: e.coverage ?? 'mediated',
+ });
+ const entries = (classification.entries ?? []).map((item) => {
+ const address = item.address.toLowerCase();
+ const listed = Boolean(policy[address]);
+ return { address, shortAddress: short(address), label: labelOf(address), role: item.role, verified: item.verified !== false, listed };
+ });
+ const tier = TIER[result.verdict];
+ return {
+ scenarioId: scenario.id,
+ mediated: scenario.mediated !== false,
+ method: classification.method,
+ kind: classification.kind,
+ label: classification.label ?? null,
+ approvals: classification.approvals ?? [],
+ entries,
+ verdict: result.verdict,
+ score: result.score,
+ reasons: result.reasons,
+ coverage: result.coverage,
+ counterpartyRisk: result.counterpartyRisk,
+ tone: tier.tone, title: tier.title, window: tier.window, summary: tier.summary,
+ requiresTyped: result.verdict === 'escalated',
+ drift: Boolean(e.drift),
+ baseline,
+ };
+}
+
+/** A review decision. Mirrors sw.js: an escalated verdict needs the typed phrase to continue. */
+export function decide(assessment, action, typed = '') {
+ if (action === 'cancel') return { ok: true, forwarded: false, text: 'Cancelled. The page receives “User rejected the request”. Nothing reaches the wallet.' };
+ if (action !== 'continue') return { ok: false, forwarded: false, text: 'Unknown action.' };
+ if (assessment.requiresTyped && typed.trim() !== CONFIRM_PHRASE) {
+ return { ok: false, forwarded: false, error: 'confirmation_required', text: `Type ${CONFIRM_PHRASE} to continue past the firewall.` };
+ }
+ return { ok: true, forwarded: true, text: 'Forwarded to your wallet unchanged. Your wallet still asks you.' };
+}
+
+/** What happens to a pending review without a user decision. */
+export function lifecycleEvent(assessment, event) {
+ if (event === 'deadline') {
+ return assessment.requiresTyped
+ ? { forwarded: false, text: `${DEADLINE_MINUTES} minutes passed with no answer. This tier needs a typed confirmation, so the request is cancelled.` }
+ : { forwarded: true, text: `${DEADLINE_MINUTES} minutes passed with no answer. The request is handed to your wallet, which still asks you. Nothing was approved by BOUND.` };
+ }
+ if (event === 'stateChange') return { forwarded: false, text: 'The wallet account or chain changed during the review, so the decision no longer applies. The request is cancelled and must be sent again.' };
+ if (event === 'spoofClick') return { forwarded: false, ignored: true, text: 'Ignored. Only a click inside the extension’s own window can resolve a review. A message from the page cannot.' };
+ throw new Error(`Unknown lifecycle event: ${event}`);
+}
+
+/** The result of the wallet executing a forwarded request the user confirmed. */
+export function walletOutcome(scenario, confirmed) {
+ return confirmed ? scenario.consequence : { kind: 'none', text: 'Rejected in the wallet. Nothing changed.' };
+}
+
+/** Without BOUND the request goes straight to the wallet. */
+export function withoutBound(scenario) {
+ return { forwarded: true, text: 'The request goes straight to the wallet. Nothing checks it against the site’s own history.' };
+}
+
+/** Everything the coverage table shows, computed live from the real engine. */
+export function coverageRow(scenario) {
+ const a = assess(scenario);
+ return { id: scenario.id, group: scenario.group, title: scenario.title, incident: scenario.incident ?? null, verdict: scenario.mediated === false ? 'unseen' : a.verdict, score: a.score, label: a.label, mediated: a.mediated, limit: Boolean(scenario.limit) };
+}
diff --git a/landing/src/sim/engine.test.mjs b/landing/src/sim/engine.test.mjs
new file mode 100644
index 0000000..70be86f
--- /dev/null
+++ b/landing/src/sim/engine.test.mjs
@@ -0,0 +1,95 @@
+import test from 'node:test';
+import assert from 'node:assert/strict';
+import { scenarios, byId } from './scenarios.js';
+import { assess, decide, lifecycleEvent, coverageRow, walletOutcome, CONFIRM_PHRASE } from './engine.js';
+import { incidents } from '../proof/incidents.js';
+
+// The verdicts below come from BOUND's real decoder + policy-core. If a rule changes upstream,
+// this table fails and the simulation copy must be reviewed before the site claims anything.
+const EXPECTED = {
+ badger: ['red', 35], curve: ['escalated', 15], ledger: ['red', 35], squarespace: ['escalated', 15], bybit: ['amber', 65],
+ 'eth-sign': ['escalated', 0], delegation: ['escalated', 0], malformed: ['red', 35], 'hidden-address': ['amber', 65],
+ 'personal-sign': ['amber', 65], unsupported: ['grey', null],
+ 'trusted-unlimited': ['green', 100], bypass: ['red', 35],
+ deadline: ['red', 35], 'state-change': ['red', 35], spoof: ['red', 35],
+};
+
+test('every scenario has an expectation and vice versa', () => {
+ assert.deepEqual(Object.keys(EXPECTED).sort(), scenarios.map((s) => s.id).sort());
+});
+
+test('scenario verdicts match the real engine', () => {
+ for (const s of scenarios) {
+ const a = assess(s);
+ assert.deepEqual([a.verdict, a.score], EXPECTED[s.id], s.id);
+ }
+});
+
+test('the Bybit-style Safe transaction is NOT decoded: it is an unrecognised-typed-data amber, never red or green', () => {
+ const a = assess(byId.bybit);
+ assert.equal(a.kind, 'opaque');
+ assert.equal(a.label, 'Typed-data fields not recognized');
+ assert.equal(a.verdict, 'amber');
+ assert.ok(a.entries.every((e) => !e.verified), 'no address in the typed data is verified');
+});
+
+test('a trusted counterparty with an unlimited allowance still scores green (the documented limit)', () => {
+ const a = assess(byId['trusted-unlimited']);
+ assert.equal(a.verdict, 'green');
+ assert.equal(byId['trusted-unlimited'].limit, true);
+});
+
+test('hidden address in unknown calldata cannot score green', () => {
+ assert.notEqual(assess(byId['hidden-address']).verdict, 'green');
+});
+
+test('a detected bypass can never be green', () => {
+ const s = { ...byId['trusted-unlimited'], eval: { baseline: 'seeded', coverage: 'bypass_possible' } };
+ const a = assess(s);
+ assert.equal(a.verdict, 'grey');
+ assert.equal(a.score, null);
+});
+
+test('requests that never reach BOUND are reported as unseen, not scored', () => {
+ assert.equal(coverageRow(byId.bypass).verdict, 'unseen');
+ assert.equal(assess(byId.bypass).mediated, false);
+});
+
+test('firewall tier needs the typed phrase; cancel never does', () => {
+ const a = assess(byId.curve);
+ assert.equal(a.requiresTyped, true);
+ assert.equal(decide(a, 'continue').error, 'confirmation_required');
+ assert.equal(decide(a, 'continue', 'i understand').ok, false, 'phrase is exact');
+ assert.equal(decide(a, 'continue', CONFIRM_PHRASE).forwarded, true);
+ assert.equal(decide(a, 'cancel').forwarded, false);
+ const red = assess(byId.badger);
+ assert.equal(red.requiresTyped, false);
+ assert.equal(decide(red, 'continue').forwarded, true, 'BOUND warns, the user decides');
+});
+
+test('lifecycle: deadline forwards non-typed requests and cancels firewall ones', () => {
+ assert.equal(lifecycleEvent(assess(byId.deadline), 'deadline').forwarded, true);
+ assert.equal(lifecycleEvent(assess(byId.curve), 'deadline').forwarded, false);
+});
+
+test('lifecycle: state change cancels; page-drawn dialog is ignored', () => {
+ assert.equal(lifecycleEvent(assess(byId['state-change']), 'stateChange').forwarded, false);
+ const spoof = lifecycleEvent(assess(byId.spoof), 'spoofClick');
+ assert.equal(spoof.forwarded, false);
+ assert.equal(spoof.ignored, true);
+ assert.throws(() => lifecycleEvent(assess(byId.spoof), 'nope'));
+});
+
+test('wallet outcome only reports a consequence when the user confirms in the wallet', () => {
+ assert.equal(walletOutcome(byId.badger, true).kind, 'loss');
+ assert.equal(walletOutcome(byId.badger, false).kind, 'none');
+});
+
+test('every scenario that cites an incident cites a real entry, with sources', () => {
+ const ids = new Set(incidents.map((i) => i.id));
+ for (const s of scenarios.filter((x) => x.incident)) assert.ok(ids.has(s.incident), s.id);
+ for (const i of incidents) {
+ assert.ok(i.sources.length >= 2, `${i.id} needs at least two sources`);
+ for (const src of i.sources) assert.match(src.url, /^https:\/\//);
+ }
+});
diff --git a/landing/src/sim/requests.js b/landing/src/sim/requests.js
new file mode 100644
index 0000000..167d04c
--- /dev/null
+++ b/landing/src/sim/requests.js
@@ -0,0 +1,85 @@
+// Builders for the wallet requests used by the simulation.
+// Every address is fictional. Calldata is real ABI encoding so the real BOUND decoder can read it.
+
+const word = (value) => BigInt(value).toString(16).padStart(64, '0');
+const addressWord = (address) => address.slice(2).toLowerCase().padStart(64, '0');
+
+export const addr = (n) => `0x${n.toString(16).padStart(40, '0')}`;
+export const MAX_UINT256 = (1n << 256n) - 1n;
+
+// Fictional cast. Real addresses are 160 bits, and the decoder ignores calldata words below 2^64
+// (so small integers are not mistaken for addresses). The fakes therefore fill all 40 hex digits.
+const fake = (pattern) => `0x${pattern.repeat(10)}`;
+export const A = {
+ you: fake('5eed'),
+ token: fake('a0a0'),
+ router: fake('b0b0'),
+ vault: fake('c0c0'),
+ nft: fake('d0d0'),
+ attacker: fake('bad1'),
+ attacker2: fake('bad2'),
+ attackerImpl: fake('bad3'),
+ safe: fake('5afe'),
+};
+
+export const LABELS = {
+ [A.you]: 'You (signer)',
+ [A.token]: 'TOKEN contract',
+ [A.router]: 'Swap router',
+ [A.vault]: 'Vault',
+ [A.nft]: 'NFT collection',
+ [A.attacker]: 'Unknown address',
+ [A.attacker2]: 'Unknown address',
+ [A.attackerImpl]: 'Unknown contract',
+ [A.safe]: 'Team multisig',
+};
+
+export const short = (address) => `${address.slice(0, 6)}…${address.slice(-4)}`;
+export const labelOf = (address) => LABELS[address.toLowerCase()] || 'Unlisted address';
+
+const tx = (to, data = '0x', value) => ({ method: 'eth_sendTransaction', params: [{ from: A.you, to, data, ...(value ? { value } : {}) }] });
+
+export const approve = (token, spender, amount = MAX_UINT256) => tx(token, `0x095ea7b3${addressWord(spender)}${word(amount)}`);
+export const setApprovalForAll = (collection, operator, on = true) => tx(collection, `0xa22cb465${addressWord(operator)}${word(on ? 1 : 0)}`);
+export const transfer = (token, to, amount) => tx(token, `0xa9059cbb${addressWord(to)}${word(amount)}`);
+// Truncated on purpose: a valid approve needs a second 32-byte word.
+export const truncatedApprove = (token, spender) => tx(token, `0x095ea7b3${addressWord(spender)}`);
+// Uniswap-V2-shaped call whose ABI BOUND does not know. The path ends in `recipient`.
+export const unknownSwap = (router, recipient) => tx(router, `0x38ed1739${word(1000)}${word(900)}${word(160)}${addressWord(recipient)}${word(1_900_000_000)}${word(2)}${addressWord(A.token)}${addressWord(A.token)}`);
+
+export const ethSign = () => ({ method: 'eth_sign', params: [A.you, `0x${'ab'.repeat(32)}`] });
+export const personalSign = (text = 'Sign in to swap.example') => ({ method: 'personal_sign', params: [`0x${[...new TextEncoder().encode(text)].map((b) => b.toString(16).padStart(2, '0')).join('')}`, A.you] });
+export const unsupported = () => ({ method: 'wallet_addEthereumChain', params: [{ chainId: '0x539' }] });
+export const delegation = (delegate, chainId = '0x0') => ({ method: 'wallet_signAuthorization', params: [{ address: delegate, chainId, nonce: '0x0' }] });
+
+// EIP-2612 permit, exactly the field order BOUND's decoder recognises.
+export const permit = (token, spender) => ({
+ method: 'eth_signTypedData_v4',
+ params: [A.you, JSON.stringify({
+ types: {
+ EIP712Domain: [{ name: 'name', type: 'string' }, { name: 'version', type: 'string' }, { name: 'chainId', type: 'uint256' }, { name: 'verifyingContract', type: 'address' }],
+ Permit: [{ name: 'owner', type: 'address' }, { name: 'spender', type: 'address' }, { name: 'value', type: 'uint256' }, { name: 'nonce', type: 'uint256' }, { name: 'deadline', type: 'uint256' }],
+ },
+ primaryType: 'Permit',
+ domain: { name: 'TOKEN', version: '1', chainId: 1, verifyingContract: token },
+ message: { owner: A.you, spender, value: MAX_UINT256.toString(), nonce: '0', deadline: '1900000000' },
+ })],
+});
+
+// A Safe{Wallet} multisig transaction. `operation: 1` is DELEGATECALL: the signed payload lets the target run code as the Safe.
+export const safeTx = ({ to, operation }) => ({
+ method: 'eth_signTypedData_v4',
+ params: [A.you, JSON.stringify({
+ types: {
+ EIP712Domain: [{ name: 'chainId', type: 'uint256' }, { name: 'verifyingContract', type: 'address' }],
+ SafeTx: [
+ { name: 'to', type: 'address' }, { name: 'value', type: 'uint256' }, { name: 'data', type: 'bytes' }, { name: 'operation', type: 'uint8' },
+ { name: 'safeTxGas', type: 'uint256' }, { name: 'baseGas', type: 'uint256' }, { name: 'gasPrice', type: 'uint256' },
+ { name: 'gasToken', type: 'address' }, { name: 'refundReceiver', type: 'address' }, { name: 'nonce', type: 'uint256' },
+ ],
+ },
+ primaryType: 'SafeTx',
+ domain: { chainId: 1, verifyingContract: A.safe },
+ message: { to, value: '0', data: '0x', operation, safeTxGas: '0', baseGas: '0', gasPrice: '0', gasToken: addr(0), refundReceiver: addr(0), nonce: '41' },
+ })],
+});
diff --git a/landing/src/sim/scenarios.js b/landing/src/sim/scenarios.js
new file mode 100644
index 0000000..c315ad0
--- /dev/null
+++ b/landing/src/sim/scenarios.js
@@ -0,0 +1,165 @@
+// Scenario catalogue for the toy-OS simulation.
+// `incident` ids match src/proof/incidents.js. Nothing here claims prevention: each scenario is
+// replayed through BOUND's real decoder and scoring code (see engine.js) and shows what it returns.
+import { A, approve, setApprovalForAll, transfer, truncatedApprove, unknownSwap, ethSign, personalSign, unsupported, delegation, permit, safeTx } from './requests.js';
+
+// What BOUND's curated snapshot says swap.example normally uses. Everything else is unlisted.
+export const SITE_POLICY = Object.fromEntries([A.token, A.router, A.vault, A.nft].map((a) => [a, { sources: ['snapshot'] }]));
+
+const SITE = 'vault.example';
+const lose = (what) => ({ kind: 'loss', text: what });
+const fine = (what) => ({ kind: 'fine', text: what });
+
+export const scenarios = [
+ // ── Documented incidents, replayed ────────────────────────────────────────
+ {
+ id: 'badger', group: 'incident', incident: 'badger', title: 'Injected script asks for an unlimited approval',
+ page: { site: SITE, headline: 'Deposit into the vault', body: 'Approve once, then deposit. Same flow as always.', button: 'Approve & deposit' },
+ request: approve(A.token, A.attacker),
+ eval: { baseline: 'seeded' },
+ consequence: lose('Toy wallet: the unknown address can now move your whole TOKEN balance.'),
+ note: 'The page, the domain and the contracts are all normal. Only one script was changed, so there is no DNS or certificate signal. BOUND can only compare who is being given spending rights.',
+ },
+ {
+ id: 'curve', group: 'incident', incident: 'curve', title: 'DNS hijack serves a cloned frontend',
+ page: { site: SITE, headline: 'Swap TOKEN', body: 'Connect and approve to swap.', button: 'Approve & swap' },
+ request: approve(A.token, A.attacker),
+ eval: { baseline: 'seeded', drift: true },
+ consequence: lose('Toy wallet: the unknown address can now move your whole TOKEN balance.'),
+ note: 'Same request as the injected-script case, but the watcher has seen a nameserver change for the domain (corroborated drift). That is outside-the-page evidence the cloned site cannot edit.',
+ },
+ {
+ id: 'ledger', group: 'incident', incident: 'ledger', title: 'Poisoned library asks for a permit signature',
+ page: { site: SITE, headline: 'Connect your wallet', body: 'One signature to verify you own this wallet.', button: 'Verify wallet' },
+ request: permit(A.token, A.attacker),
+ eval: { baseline: 'seeded' },
+ consequence: lose('Toy wallet: an off-chain signature that lets the unknown address pull your TOKEN balance later.'),
+ note: 'A permit costs no gas and moves nothing yet, so it feels harmless. The decoder reads the spender out of the typed data and scores it like an approval.',
+ },
+ {
+ id: 'squarespace', group: 'incident', incident: 'squarespace', title: 'Registrar takeover on a site nobody curated',
+ page: { site: SITE, headline: 'Claim your rewards', body: 'Sign the approval to claim.', button: 'Claim' },
+ request: approve(A.token, A.attacker),
+ eval: { baseline: 'uncurated', drift: true },
+ consequence: lose('Toy wallet: the unknown address can now move your whole TOKEN balance.'),
+ note: 'The curator never listed this site, so there is no snapshot to compare against. BOUND leans on what the watcher saw change and on whether the site had used this address before.',
+ },
+ {
+ id: 'bybit', group: 'incident', incident: 'bybit', title: 'Multisig signer shown a routine transfer',
+ page: { site: 'safe.example', headline: 'Transfer 0 ETH to cold wallet', body: 'Routine wallet maintenance. Review and sign.', button: 'Sign transaction' },
+ request: safeTx({ to: A.attackerImpl, operation: 1 }),
+ eval: { baseline: 'seeded' },
+ consequence: lose('Toy wallet: the signed transaction runs the unknown contract’s code as your multisig.'),
+ note: 'The honest result here is partial. BOUND does not decode Safe transactions or their delegatecall flag. It sees typed data it cannot recognise and warns at amber. It does not know what the signature does.',
+ limit: true,
+ },
+
+ // ── Edge cases ────────────────────────────────────────────────────────────
+ {
+ id: 'eth-sign', group: 'edge', title: 'Blind signature (eth_sign)',
+ page: { site: SITE, headline: 'Verify you are human', body: 'Sign this challenge.', button: 'Verify' },
+ request: ethSign(),
+ eval: { baseline: 'seeded' },
+ consequence: lose('Toy wallet: a blind signature can be turned into any transaction. You cannot tell which.'),
+ note: 'Nothing readable is signed, so there is nothing to compare. BOUND treats it as the strongest warning.',
+ },
+ {
+ id: 'delegation', group: 'edge', title: 'EIP-7702 delegation valid on every chain',
+ page: { site: SITE, headline: 'Upgrade your account', body: 'Enable batched transactions.', button: 'Enable' },
+ request: delegation(A.attacker, '0x0'),
+ eval: { baseline: 'seeded' },
+ consequence: lose('Toy wallet: the unknown contract’s code now controls your account on every chain.'),
+ note: 'A chain id of zero makes the authorization replayable on any network. The decoder caps the score at 0.',
+ },
+ {
+ id: 'malformed', group: 'edge', title: 'Truncated, malformed calldata',
+ page: { site: SITE, headline: 'Approve TOKEN', body: 'Allow the vault to use TOKEN.', button: 'Approve' },
+ request: truncatedApprove(A.token, A.attacker),
+ eval: { baseline: 'seeded' },
+ consequence: fine('Toy wallet: malformed calldata would revert. Nothing is spent.'),
+ note: 'Requests that do not match their own ABI are scored low instead of being guessed at.',
+ },
+ {
+ id: 'hidden-address', group: 'edge', title: 'Unknown calldata hiding an address',
+ page: { site: SITE, headline: 'Swap TOKEN', body: 'Best route found.', button: 'Swap' },
+ request: unknownSwap(A.router, A.attacker),
+ eval: { baseline: 'seeded', signerAccounts: [A.you] },
+ consequence: lose('Toy wallet: the swap output is sent to the unknown address, not to you.'),
+ note: 'The router is trusted but the call is not an ABI BOUND knows. It scans the bytes for address-shaped words and refuses to score the call green.',
+ },
+ {
+ id: 'personal-sign', group: 'edge', title: 'Plain-text message signature',
+ page: { site: SITE, headline: 'Sign in', body: 'Sign the message to log in.', button: 'Sign in' },
+ request: personalSign(),
+ eval: { baseline: 'seeded' },
+ consequence: fine('Toy wallet: a login message. Nothing moves.'),
+ note: 'Text is not decoded into counterparties, so the score is capped at 65 even when the message is harmless. A cautious amber, not a verdict of harm.',
+ },
+ {
+ id: 'unsupported', group: 'edge', title: 'Method BOUND does not decode',
+ page: { site: SITE, headline: 'Add a network', body: 'Switch to the recommended chain.', button: 'Add network' },
+ request: unsupported(),
+ eval: { baseline: 'seeded' },
+ consequence: fine('Toy wallet: the wallet asks you about the new network.'),
+ note: 'Unsupported requests are forwarded with no opinion and are never shown as green.',
+ },
+
+ // ── Limits: where BOUND is not enough ────────────────────────────────────
+ {
+ id: 'trusted-unlimited', group: 'limit', title: 'Trusted contract, unlimited allowance',
+ page: { site: SITE, headline: 'Deposit into the vault', body: 'Approve once, then deposit.', button: 'Approve & deposit' },
+ request: approve(A.token, A.vault),
+ eval: { baseline: 'seeded' },
+ consequence: fine('Toy wallet: the vault can move your TOKEN balance. The vault is the site’s own, trusted contract.'),
+ note: 'Green means the counterparty is on the site’s trusted list. It does not mean the amount is wise, or that the trusted contract is bug-free. BOUND checks who, not how much.',
+ limit: true,
+ },
+ {
+ id: 'bypass', group: 'limit', title: 'Page uses a provider BOUND never patched',
+ page: { site: SITE, headline: 'Deposit into the vault', body: 'Approve once, then deposit.', button: 'Approve & deposit' },
+ request: approve(A.token, A.attacker),
+ eval: { baseline: 'seeded' },
+ mediated: false,
+ consequence: lose('Toy wallet: the unknown address can now move your whole TOKEN balance.'),
+ note: 'EIP-1193 providers are ordinary JavaScript objects. A page that saved a reference before BOUND ran can call it directly. BOUND cannot see that request, and says so.',
+ limit: true,
+ },
+
+ // ── Request lifecycle ────────────────────────────────────────────────────
+ {
+ id: 'deadline', group: 'lifecycle', title: 'You never answer the window',
+ page: { site: SITE, headline: 'Deposit into the vault', body: 'Approve once, then deposit.', button: 'Approve & deposit' },
+ request: approve(A.token, A.attacker),
+ eval: { baseline: 'seeded' },
+ lifecycle: 'deadline',
+ consequence: lose('Toy wallet: the unknown address can now move your whole TOKEN balance.'),
+ note: 'After the deadline an unanswered request is handed to your wallet, which still asks you. Requests that need a typed confirmation are cancelled instead.',
+ limit: true,
+ },
+ {
+ id: 'state-change', group: 'lifecycle', title: 'Wallet account changes mid-review',
+ page: { site: SITE, headline: 'Deposit into the vault', body: 'Approve once, then deposit.', button: 'Approve & deposit' },
+ request: approve(A.token, A.attacker),
+ eval: { baseline: 'seeded' },
+ lifecycle: 'stateChange',
+ consequence: lose('Toy wallet: the unknown address can now move your whole TOKEN balance.'),
+ note: 'The review was about one account on one chain. If either changes, the old decision no longer applies, so the request is cancelled and the page must ask again.',
+ },
+ {
+ id: 'spoof', group: 'lifecycle', title: 'Page draws a fake “security check”',
+ page: { site: SITE, headline: 'Deposit into the vault', body: 'Approve once, then deposit.', button: 'Approve & deposit' },
+ request: approve(A.token, A.attacker),
+ eval: { baseline: 'seeded' },
+ lifecycle: 'spoof',
+ consequence: lose('Toy wallet: the unknown address can now move your whole TOKEN balance.'),
+ note: 'A compromised page can draw anything, including a lookalike of a security dialog. Only the extension’s own window can resolve a review, so a click on a drawn dialog does nothing.',
+ },
+];
+
+export const byId = Object.fromEntries(scenarios.map((s) => [s.id, s]));
+export const GROUPS = [
+ { id: 'incident', label: 'Documented incidents', hint: 'Replays of real frontend compromises' },
+ { id: 'edge', label: 'Edge cases', hint: 'Unusual requests the decoder must handle' },
+ { id: 'limit', label: 'Known limits', hint: 'Where BOUND is not enough' },
+ { id: 'lifecycle', label: 'Request lifecycle', hint: 'What happens to a pending review' },
+];
diff --git a/landing/src/stack/Stack.jsx b/landing/src/stack/Stack.jsx
new file mode 100644
index 0000000..ba2893b
--- /dev/null
+++ b/landing/src/stack/Stack.jsx
@@ -0,0 +1,63 @@
+import React, { useRef } from 'react';
+import gsap from 'gsap';
+import { ScrollTrigger } from 'gsap/ScrollTrigger';
+import { useGSAP } from '@gsap/react';
+import Proof from '../proof/Proof.jsx';
+import './stack.css';
+
+gsap.registerPlugin(ScrollTrigger, useGSAP);
+
+// `proof` lists the documented incidents that bear on each piece. Anon-RPC has none: it is about privacy, not integrity.
+const items = [
+ { id: 'extension', title: 'Browser extension', text: 'A context layer where people already browse.', tag: 'Chromium · EIP-1193', proof: ['badger', 'ledger', 'bybit'] },
+ { id: 'ens', title: 'ENS', text: 'A verifiable starting point for trusted references.', tag: 'Identity · Reference', proof: ['curve', 'squarespace'] },
+ { id: 'arkiv', title: 'Arkiv', text: 'Public records and snapshots that can be checked.', tag: 'Records · Storage', proof: ['curve', 'squarespace'] },
+ { id: 'anon', title: 'Anon-RPC', text: 'A privacy-minded route for eligible chain reads.', tag: 'Private lookups', proof: [] },
+];
+
+// Line icons. Ink strokes with one yellow piece each, so they match the rest of the page.
+function Icon({ id }) {
+ const common = { fill: 'none', stroke: 'currentColor', strokeWidth: 2.2, strokeLinejoin: 'round', strokeLinecap: 'round' };
+ return ;
+}
+
+export default function Stack() {
+ const root = useRef(null);
+
+ useGSAP(() => {
+ const q = gsap.utils.selector(root);
+ const mm = gsap.matchMedia();
+ mm.add('(prefers-reduced-motion: no-preference)', () => {
+ gsap.from(q('.st-head > *'), { autoAlpha: 0, y: 24, duration: 0.9, ease: 'expo.out', stagger: 0.1, scrollTrigger: { trigger: q('.st-head')[0], start: 'top 85%', once: true } });
+ gsap.set(q('.st-card'), { autoAlpha: 0, y: 56 });
+ ScrollTrigger.batch(q('.st-card'), { start: 'top 90%', once: true, onEnter: els => gsap.to(els, { autoAlpha: 1, y: 0, duration: 1, ease: 'expo.out', stagger: 0.12 }) });
+ // Each icon draws itself once its card is in.
+ q('.st-card').forEach(card => gsap.from(gsap.utils.toArray('.st-icon *', card), { strokeDasharray: 200, strokeDashoffset: 200, duration: 1.4, ease: 'power2.out', stagger: 0.1, scrollTrigger: { trigger: card, start: 'top 88%', once: true } }));
+ });
+ document.fonts?.ready.then(() => ScrollTrigger.refresh());
+ }, { scope: root });
+
+ return
+
+
+
Built on open infrastructure.
+
Different tools, one purpose: make information about the sites you use easier to verify.
+
+
+ {items.map(item =>
+
+
{item.title}
+
{item.text}
+ {item.tag}
+ {item.proof.length > 0 && }
+ )}
+
+
Technologies shown reflect the project architecture; their live integration and privacy properties require verification.
{a.score === null ? 'No score. BOUND had nothing to compare against, which is not a safe signal.' : `Policy score ${a.score} of 100 heuristic points. This is not a probability that the request is safe.`}
+ {a.drift &&
Watcher reports infrastructure drift for this site.
A small pretend computer with a browser, a wallet and BOUND’s extension. Replay a documented incident, switch BOUND off to see what happened, then switch it on. Verdicts are computed live by BOUND’s own decoder and scoring code.
{s.phase === 'idle' ? 'Waiting for a request.' : s.bound ? 'BOUND observed no request.' : 'BOUND is off. Nothing was decoded or scored.'}
}
+ {s.log.length > 0 && {s.log.map((l, i) =>
{l.who} {l.text}
)}}
+
+
+
+
+ {s.phase === 'review' && s.a &&
}
+
+
+
+ {s.note ?
{s.tag}{s.note}
:
{step}
}
+
+
+
+
+
+
+ Simulation controls
+
+
+
+
+
+
+
{sc.title}
{sc.incident && }
+
{sc.note}
+
+
+
+
What BOUND returns for every replay
+
Computed live from the same code, not written by hand. “Unseen” means the request never reached BOUND.
+
+
Replay
Kind
Verdict
Score
Note
+ {rows.map((r) =>
+
+
{GROUPS.find((g) => g.id === r.group).label}
+
{VERDICT_NAME[r.verdict]}
+
{r.score ?? '—'}
+
{r.limit ? 'Known limit' : r.label ?? ''}
+
)}
+
+
+
Simulation. Timing is compressed, amounts are fictional, and the pages are mock-ups. BOUND provides context; it does not guarantee a site or transaction is safe. It is not an audit, and it does not cover every wallet path or every kind of attack.