420Docs context
Skip to content

BRIDGE-AUDIT-11 — Security, Adversarial and Economic Qualification

Repository-local implemented-boundary qualification complete. Baseline main is 671e72bef3a3c0e90e3db5581770049bfa9eb18d. The existing unmerged ecosystem candidate, PR #1183 / a467dfbd271be61ee6d022e950ea030c36cb747f, is included as this change's parent and is explicitly part of the audited implementation. No merge of that PR or this change is implied. The publishing PR records the final qualified SHA/tree.

Machine-readable results, retained source-linked evidence, full static analysis, per-record triage, and external-dependency/security assessment.

Confirmed corrections

  1. The Wallet/SDK/Exchange shared client could finish its last risk RPC after a silent provider chain switch and reach submission without another live-wallet check. The corrected client rechecks expiry, chain and account after the last risk reads; the exact request also carries the reviewed EIP-155 chainId. The selected wallet remains the signing authority. This does not claim protection against a malicious wallet that intentionally lies and signs arbitrary bytes.
  2. The client assumed an outbound route must have the local chain in its canonical source slot. Existing funded Bridge contracts also use foreign-to-local canonical routes with outbound enabled for their reverse leg. The client now checks either endpoint and presents the actual outbound source/destination assets, chain fingerprints and recipient family, retaining the canonical endpoint orientation in its binding. Previously valid reverse-leg routes were rejected; no contract admission checks are relaxed.
  3. The client invoked router admission but discarded its qualification ID. Requalification under unchanged route labels could therefore survive a user review. The returned nonzero approval identity is now part of the frozen review binding and is checked again around confirmation.

Two original-behavior reproductions are retained in client-original-reproduction.log. All corrected client cases, including qualification rotation and the transaction's explicit chain ID, pass in client-final.log. SDK packaging ships the same source and was rebuilt and tested; Exchange packaging and the actual browser-controller import were rebuilt successfully. This does not unlock the existing unqualified public browser form.

Original requirement mapping

Assigned requirement Actual qualification
Unit/integration/fuzz/invariants for active candidates All fourteen family graphs and token profiles reconcile to their retained original source SHAs and qualified transition manifests. The 196-entry attack catalogue has 182 implemented-boundary entries and 14 explicitly not-applicable-at-this-layer entries with original reasons. Zero production instances/approvals are active. Fresh malicious-token economic unit/integration/fuzz/stateful tests supplement the retained cases; native historical suites are not redundantly rerun.
Forged proofs/verifier impersonation Retained per-family header/signature/attestation/Merkle/quorum/wire rejection and original source identity; current qualification snapshots reject unqualified/revoked/substituted consumers and verifiers. Source hashes are checked, not inferred from a passing label.
Cross-chain/route/adapter replay Retained native outpoint/nonce/nullifier domains and canonical envelope admission; qualification/route identity and permanent router replay remain unchanged. Fresh client chain/qualification substitutions are rejected before wallet send.
Malicious tokens/callback/reentrancy New actual production router/custody tests exercise duplicate inbound mint callbacks, nested outbound burn callbacks, duplicate refund callbacks, excess mint, partial burn, transfer-tax and false-return funding/release. All invalid deltas roll back proof, value and exposure together.
Asset mapping/recipient substitution Retained canonical asset/mint/native token-route checks and immutable outcome tuple regressions. New invariant requires beneficiary balance equals managed supply. Client review now orients actual outbound network/asset identities and retains exact frozen recipient bytes.
Hostile governance/stale configuration Existing timelock/permission, code/implementation/chain-root/probe/route-hash guards remain source-valid. Qualified rotations do not inherit old approval or reset replay. The new client regression rejects a changed approval even when labels/version remain unchanged. A sovereign governance coalition explicitly replacing the trust root is an acknowledged authority boundary, not claimed cryptographically impossible.
Unauthorized adapter replacement/verifier rotation Original instance/proxy/direction qualification and current source lineage retained; current client binds admission identity. No arbitrary provider manifest can authorize a replacement.
Rate-limit/TVL-cap bypass Retained route/asset/shared-limit and pending-obligation cases; new stateful hostile-token handler interleaves deposits, withdrawals, cancellation/payment, callbacks and hourly/daily time changes under a hard 100-unit exposure cap. Outstanding claims cannot escape the cap.
Rounding/decimals/overflow Retained exact native-unit, token precision/dust conversion, uint64/uint256 and supply-overflow rejection cases and native historical/vector evidence. No production arithmetic source changed, so those passing graphs are preserved. New raw-amount client and hostile-token conservation regressions also pass.
Reorg/retry/failed-settlement accounting Retained source reorg, exact failed-stage retry, authenticated cancellation/refund, source replay retention and Bitcoin canonical payment evidence. Fresh failed mint/burn/refund/release assertions verify atomic rollback and unchanged liabilities. A timeout or workflow label cannot refund value.
Pause/emergency recovery/incident isolation Retained shared pause, direction, safe-when-paused reconciliation, withdrawal-recovery and qualification revocation graphs. New callbacks cannot enter another value path while custody is executing. Changes do not introduce a new emergency permission or bypass.
No unauthorized issuance/custody powers Real representation controller remains immutable and custody-qualified; arbitrary users/governance labels cannot mint/refund. Issuer USDC/CADC representations stay forbidden. New malicious mint/burn/refund/escrow tests and static authority review confirm implemented gates; no new issuance or custody role is added.
Static analysis/external dependencies Slither 0.11.3, 99 detectors, 101 bridge sources / 149-file closure / 173 contracts. All 386 bridge records are retained and triaged; the twelve High records are contextual guarded operations/protocol serialization, not confirmed new Solidity exploits. See the detailed assessment for native issuer, external token/proxy, Registry/governance, source-finality and custody trust boundaries.
Correct confirmed vulnerabilities / affected regressions Three client corrections above; 12 client and 2 SDK passes. No confirmed Solidity-source vulnerability was identified by the new economic tests or static review, so no speculative contract changes or expensive unchanged consensus reruns were introduced.

Verified executions and preserved evidence

Fresh qualification: 23 distinct tests pass — 9 Solidity, 12 client and 2 SDK. Solidity includes 2,500 fuzz inputs and 128 invariant runs / 8,192 calls / zero handler reverts. The 43-file owner-scoped IR build succeeded with the established Cancun/optimizer-200 settings; its 12 production bridge artifacts satisfy EIP-170, maximum 23,129 bytes. The large test-harness deployment limit is inherited from existing isolated qualification practice and is not used as a production code-size claim.

The existing BRIDGE-AUDIT-9 evidence remains source-valid at 160 distinct cases, 12,500 fuzz inputs, 512 invariant runs and 32,768 calls. Retained catalogue verification additionally checks 399 distinct referenced original pass records across all fourteen families. These are original records, not newly executed current-head tests, and overlapping retained cohorts are not added together. Original CI runs 43563876850 and 43563876854 remain tied to 5f58baf6dc861939a21119a0fce645060a067518.

The existing broad qualifier requested a negative dynamic-linker CLI flag unsupported by the official Forge release available here; it stopped before tests. The owner-scoped runner verifies dynamic_test_linking=false through Forge configuration and preserves the compiler, optimizer, via-IR, fuzz and invariant settings. Native solc was obtained from the official Solidity binary catalogue and SHA-256 verified. All diagnostics are retained; neither a command-line error nor an expected failing vulnerability reproduction is counted as passing evidence.

No new GitHub Actions runs are requested. Publication uses the existing [skip ci] mechanism; workflow jobs, path filters and branch policy are unchanged. No source commit was published as a debugging experiment.

Remaining external scope and next canonical work

No internal qualification work is blocked by testnet. Production source custody/owned UTXOs/HSM, source authority and finality services, native issuer/domain/OFT/Endpoint/DVN deployments and genuine funded cross-chain operations remain the unchanged prerequisites in the 420Bridge testnet work roadmap. SOL/POT/ARRR retain their already-recorded source-authority/history limitations. All production approvals remain empty; those prerequisites are not represented as satisfied by controlled local tests.

The next repository-defined work is that existing deployment/testnet qualification roadmap. No numbered BRIDGE-AUDIT-12 is defined in current main or this supplied task, and none is invented or begun.