Skip to content
SoundcreatesPublic

About

Resources

Stars

3 stars

Watchers

0 watching

Forks

Repository files navigation

BOUND

BOUND is an origin-aware browser firewall that protects Web3 users from hijacked frontends and DNS attacks.

When you interact with a dApp, BOUND intercepts the transaction before it reaches your crypto wallet. It decodes the calldata and checks the target contract against a verified, decentralized registry (anchored on ENS v2 and Swarm) while checking Arkiv for live DNS/TLS infrastructure drift. If an unauthorized contract or sudden domain change is detected, BOUND holds the transaction in a secure warning window—preventing wallet drains even when the domain name and SSL certificate look completely authentic.

📄 Technical Architecture & Privacy Whitepaper:
For the complete in-depth system architecture, zero-tracking user privacy guarantees, and RFC 9180 HPKE anti-poisoning cryptographic specifications, see the BOUND Architecture, Privacy & Anti-Poisoning Whitepaper.

flowchart LR
    subgraph Inputs["1. Policy & Monitoring Inputs"]
        direction TB
        A["<b>1. Curator Service</b><br/>━━━━━━━━━━━━━━━━━━━━━<br/>• Vets & compiles trusted contract policies<br/>• Anchors canonical root on ENS v2<br/>• Publishes trust snapshots to Arkiv"]
        B["<b>2. Watcher & Aggregator</b><br/>━━━━━━━━━━━━━━━━━━━━━<br/>• Monitors DNS, TLS & certificate drift<br/>• Ingests sealed HPKE community reports<br/>• Enforces k ≥ 2 anti-poisoning quorum"]
    end

    subgraph Storage["2. Decentralized Evidence Layer"]
        C["<b>3. Decentralized Storage Network</b><br/>━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br/>• <b>ENS v2</b>: Protocol root & attestations on Sepolia<br/>• <b>Arkiv</b>: On-chain TTL drift, status & baseline records<br/>• <b>Swarm</b>: Decentralized safe-page fallback storage<br/>• <b>Anon-RPC</b>: Mixnet routing for non-linkable queries"]
    end

    subgraph Extension["3. Client-Side Firewall"]
        D["<b>4. BOUND Extension Sandbox</b><br/>━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━<br/>• In-memory freeze of EIP-1193 & EIP-6963 calls<br/>• 100% local client-side policy evaluation<br/>• Zero tracking & zero cloud RPC analysis"]
    end

    subgraph Verdicts["4. Decision & Enforcement"]
        direction TB
        E["<b>✅ Approved Transaction</b><br/>━━━━━━━━━━━━━━━━━━━━━<br/>• Verified contract destination<br/>• Authentic domain & valid certs<br/>• Forwarded to wallet for signing"]
        F["<b>🛡️ Threat / Warning Held</b><br/>━━━━━━━━━━━━━━━━━━━━━<br/>• Unknown contract or active drift<br/>• Held in extension warning window<br/>• Requires explicit user consent"]
    end

    A -->|"Publishes Root & Baseline"| C
    B -->|"Broadcasts On-Chain Status"| C
    C -->|"Delivers Verified State"| D
    D -->|"Safe"| E
    D -->|"Risk"| F

    classDef curator fill:#f5f3ff,stroke:#7c3aed,stroke-width:3px,color:#4c1d95
    classDef watcher fill:#fffbeb,stroke:#d97706,stroke-width:3px,color:#78350f
    classDef storage fill:#eff6ff,stroke:#2563eb,stroke-width:3px,color:#1e3a8a
    classDef extension fill:#f0fdf4,stroke:#16a34a,stroke-width:3px,color:#14532d
    classDef safe fill:#ecfdf5,stroke:#059669,stroke-width:3px,color:#064e3b
    classDef threat fill:#fef2f2,stroke:#dc2626,stroke-width:3px,color:#7f1d1d

    class A curator
    class B watcher
    class C storage
    class D extension
    class E safe
    class F threat
Loading

Repository Structure

BOUND is organized into independent components, each responsible for a specific part of the contract verification and domain monitoring pipeline.

BOUND/
├── client/
│   ├── extension/              # Browser extension
│   ├── safe-page/              # Isolated warning and recovery page
│   ├── landing/                # Project website
│   ├── video/                  # Demo/video assets
│   └── demo/                   # Test dApp and frontend-switch sites
│       ├── test-dapp/
│       └── frontend-switch/
├── server/
│   ├── watcher/                # Domain monitoring and alert service
│   ├── curator/                # Trusted registry compiler and publisher
│   └── demo/                   # Local server fixtures
│       └── hijack-server/
├── shared/
│   ├── contracts/              # Shared schemas and contract evidence
│   ├── decoder/                # Transaction decoding
│   ├── policy-core/            # Shared policy evaluation
│   ├── snapshot/                # Registry snapshot logic
│   └── integrations/           # Arkiv, ENS, Swarm, and Anon-RPC adapters
├── scripts/                    # Rooted maintenance and integration scripts
├── fixtures/                   # Rooted test and evidence fixtures
├── .bound/                     # Local operational state and user data
├── Docs/                       # Project plans, guides, and evidence
├── package.json                # Root scripts and dependency/workspace policy
└── package-lock.json           # Root dependency lockfile

Use the root package.json scripts as the supported entry points where available. Examples:

npm test
node client/extension/build.mjs
node client/extension/browser-check.mjs
node server/watcher/run.mjs server/watcher/config-example.mjs
npm run demo:local

For component-specific setup, start with the README in that component directory. scripts/, fixtures/, and .bound/ remain rooted.

Directory names and subdirectories should reflect the actual repository layout.

Core Components

Component Responsibility
Curator Maintains and publishes the official registry of trusted smart contracts.
Watcher & Aggregator Monitors domain changes, collects community reports, and generates drift alerts.
ENS v2 Anchors the trusted registry's root hash on Ethereum.
Swarm Provides decentralized storage for registry snapshots.
Arkiv Stores live monitoring data, domain changes, and incident records.
Anon-RPC Enables private blockchain lookups without exposing unnecessary user information.
BOUND Extension Intercepts and freezes transaction requests, verifies contract authorization, and presents security warnings before wallet signing.

How the Components Work Together

  1. Registry creation: Curator compiles the official list of trusted smart contracts.
  2. Continuous monitoring: Watcher monitors domain changes and aggregates external reports.
  3. Decentralized verification: ENS v2 anchors registry integrity, Swarm stores snapshots, and Arkiv maintains live monitoring records.
  4. Transaction evaluation: The browser extension intercepts transaction requests and checks the target contract against the trusted registry.
  5. User protection: Verified transactions are forwarded to the wallet, while unknown contracts or suspicious domain changes trigger a warning and block the request.

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:

node --input-type=module <<'JS'
import {createArkivRpcReader} from './shared/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, feedback, reach, why Arkiv, how we use Arkiv, and Swarm evidence and remaining gaps.

License

BOUND is licensed under the MIT 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.
  • No independent security audit has been completed.
  • Browser end-to-end testing, external integration verification, and required security metric reports are still in progress.

For implementation details, see the implementation plan, Arkiv integration, contract feasibility evidence, and local hijack demo.

Financial-site registry

The 50-site candidate registry and capture/ENS publication plan provide sourced financial-site discovery and public JavaScript hashes. Candidates are unreviewed and do not automatically enter BOUND's trusted snapshot.

About

Resources

Stars

3 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages