← Back to Blog

Make Defense Faster Than Offense

Four-panel summary of Regents Labs d/acc and Post-Math receipts: Patchbay 18-host live TLS scoreboard and 5 regents defend recipes, Techtree Formal Proof Registry with Lean 4.36.0 ML-DSA-65 proof, Campaign 5 open-weights defensive models (CBOM-Auditor-14B and CloakShield-4B), and Cloak local Apple Silicon AI with 4-language SIWA v3 FIPS 204 verification.
On this page

Nothing broke today, and the real bottleneck is defense speed

Two years ago people were debating whether chatbots could write decent boilerplate. In late 2026, AI systems are generating proof sketches on major open math problems, and three independent groups published conditional subexponential discrete-log preprints (ePrint 2026/3020 by Liu, Zhang, and Ren, alongside Las Vegas constructions by Akshima et al. and Kaarel Kaarelson) within weeks of OpenAI's October 2026 Exponential Time Hypothesis (ETH) disproof construction.

Start with what the mathematics actually says. Nothing deployed is broken. The claimed deterministic algorithm for discrete logarithms in prime-order elliptic curves and \mathbb{F}_p^* runs in 2^{O(b/\sqrt{\log\log b})} time and 2^{O(b/(\log b)^{1/4})} space, and it is strictly conditional on OpenAI's Cauchy-Hermite Boolean tensor contraction machinery and related unverified AI-assisted proofs. As Steve Galbraith and Alfred Menezes noted, the asymptotic bound only beats Pollard's rho (2^{b/2}) once prime bit lengths climb past roughly b \gtrsim 2^{2^{17}}. Deployed 256-bit curves (P-256, secp256k1, Ed25519) are untouched. P \stackrel{?}{=} NP remains open, and RSA, AES, and NIST's post-quantum standards (ML-KEM, ML-DSA, SLH-DSA) remain intact.

That still leaves the practical asymmetry Vitalik Buterin laid out in his writing on defensive acceleration (d/acc). Offense happens quickly and unilaterally; someone publishes a new exploit class or a plausible attack sketch in weeks. Defense is a whole-of-society grind. Upgrading legacy software, auditing millions of lines of real code, moving servers off downgrade-prone defaults, formally verifying security invariants, and keeping open defensive models runnable on ordinary hardware takes years unless the tooling itself gets much faster.

Small-coalition plans that try to keep frontier capability locked inside one company or one country fail the same test. Promising global benefits later distributes rented access, not power, and access without power erodes under domestic political pressure. Asymmetric defensive software works in the opposite direction. When a verifier, a migration tool, a local open-weights runtime, or an open identity protocol works well, the world becomes safer regardless of who runs it, which keeps pluralism viable without central chokepoints or mass surveillance.

What showed up when we audited our own stack first

Before lecturing anyone else about post-quantum readiness or defensive engineering, we wrote live probes and ran them against our own services, repositories, and an 18-host ecosystem slice drawn from Patchbay's agentic commerce catalog plus Regents, SIWA, NEAR AI Cloud, and Cloudflare. Four concrete gaps showed up immediately.

First, our own edge was behind our assumptions. Running Patchbay's live 12-way concurrent Post-Math Readiness Scoreboard across 18 reachable hosts (https://regents.sh/api/v1/patchbay/security/scoreboard, 543 ms, digest sha256:8375566b7b8c7de05bbfe549c30da5daab54a2017da928313e7c9898b4887748) showed 14 of 18 hosts (77.8%) negotiating hybrid X25519MLKEM768, including cloud-api.near.ai, cloudflare.com, coinbase.com, alchemy.com, shopify.com, perplexity.ai, and venice.ai. Four hosts negotiated classical ECC only: regents.sh, siwa.regents.sh, boundless.sh, and stripe.com. Every host tolerated hybrid PQ ClientHellos without a middlebox reset.

The sharper finding had nothing to do with X25519MLKEM768 support. Zero of the 18 hosts enforced TLS 1.3 only. Every single host, including Cloudflare and cloud-api.near.ai, accepted a forced TLS 1.2 classical handshake. Zero of the 18 hosts served a post-quantum X.509 leaf certificate (13 used ECDSA P-256 and 5 used RSA-2048). Unless the client enforces a strict TLS 1.3 minimum and checks the negotiated key exchange, an active path attacker can strip hybrid PQ on every server in that table.

Second, library defaults almost fooled us. Cloak's Rust gateway binary (cloak-near) originally pinned rustls to ring, which has zero hybrid PQ support. After swapping the provider to aws-lc-rs 1.19.0, inspecting kx_groups showed that rustls 0.23.46 still placed classical X25519 at slot 0 ahead of X25519MLKEM768. Without a check on the exact key-exchange order, the binary would have compiled with aws-lc-rs while still preferring classical ECC. We promoted X25519MLKEM768 to index 0, pinned cloak-near to TLS 1.3 only in Cloak v0.4.0, and added an opt-in fail-closed require_pq guard verified against stand-in TLS servers to write 0 request bytes when a peer falls back to classical X25519.

Third, a single Docker base-image line silently broke native post-quantum signing. Our siwa-server service already ran Erlang/OTP 29.1.2, which includes native FIPS 204 ML-DSA-65 in :crypto, yet its container base image was Debian Bookworm (OpenSSL 3.0) instead of Debian Trixie (OpenSSL 3.5+).

Fourth, red-teaming our own SIWA v3 hybrid verifier caught a pre-crypto DoS gap. We threw 10 classical-key forgery attacks at Siwa.HybridRequestAuth assuming the attacker held the victim's real secp256k1 private key: stripping sig2, swapping in an attacker ML-DSA-65 key, splicing a victim sig2 onto a re-signed /drain path, desyncing nonces, mutating a POST body by one byte, replaying requests across authorities, and presenting signatures past retired_after. Nine attacks failed closed immediately. The tenth, a 17 KB bloated x-siwa-receipt header, reached signature verification because the header budget had summed only x-siwa-signature and x-siwa-signature-input. Summing every forwarded SIWA v3 header against the 16 KB cap closed the path so all 10 attacks fail closed before parsing or cryptographic work.

SurfaceAssumption before auditLive observationFix shipped
18-host Patchbay ScoreboardHybrid PQ implies downgrade resistance14/18 X25519MLKEM768, 18/18 middlebox-clean, 0/18 TLS 1.3-only, 0/18 PQ leaf certs; regents.sh and siwa.regents.sh classical ECCLive Scoreboard API, CLI, MCP, and UI shipped on regents.sh; edge PQ proxy tracked with before/after diff check
Cloak (cloak-near)rustls + aws-lc-rs prefers PQrustls 0.23.46 placed X25519 ahead of X25519MLKEM768 by defaultPromoted X25519MLKEM768 to slot 0, pinned TLS 1.3 only, shipped require_pq and cloak crypto-status in Cloak v0.4.0
siwa-server + elixir-utilsOTP 29 ready for ML-DSA-65Bookworm shipped OpenSSL 3.0; 17 KB x-siwa-receipt bypassed pre-crypto header budgetShipped Debian Trixie (OpenSSL 3.5+), additive Stage 2 ML-DSA-65 enrollment, and 16 KB combined header cap

Turning d/acc into runnable software across Regents

Every product in the Regents stack maps to one piece of the defensive acceleration gap: upgrading legacy code cleanly, formally verifying critical invariants, training open-weights defensive specialists, running private models locally without gatekeepers, and keeping agent identity and on-chain authority replaceable.

Patchbay and regents defend: whole-of-society legacy software upgrades

Detecting an issue is only half of defense; teams need minimal, deterministic repairs that an independent machine can re-run from pinned commits without leaking private repo state.

Patchbay is live at /patchbay/validate?tab=crypto with the 18-host concurrent Scoreboard, a 2 MB 12-format lockfile and SBOM CVE scanner (cve.now), CycloneDX 1.6 CBOM crypto dependency audits, before-and-after diff-crypto migration receipts, and live block-pinned Base, Ethereum, Optimism, and Arbitrum Safe and EIP-7702 authority inspection (verified live against Base Safe 1.4.10x28fdac6c7b06bb095b9f4fa5a65a552bb8e38f51 at block 63437550 and live EIP-7702 EOA 0xd8dA...6045).

In regents-cli, regents defend turns those audit classes into reproducible engineering jobs. Running regents defend run inspects a target file, optionally applies a minimal deterministic repair, and emits an allowlisted public regents.repair-record.v1 JSON document stamped with an RFC 8785 JCS SHA-256 record_digest and scrubbed against 15 specified secret, private IP, internal hostname, local path, and token leakage rules. Any verifier can run regents defend reproduce against pinned base and repaired commits via git archive in an empty temporary directory. Five recipes ship in regents defend: container-nonroot-runtime, dockerfile-openssl35-pqc-runtime (catching the exact Bookworm OpenSSL 3.0 bug), rustls-pq-kex-preference (catching ring-only Cargo.toml entries), tls-minimum-v13-config (removing TLS 1.2 downgrade lines across nginx, HAProxy, Caddy, and Elixir :ssl), and cbom-p0-broken-primitives (auditing MD5, SHA-1, RC4, AES-ECB, 3DES, and RSA-1024 while ignoring commented-out decoys).

Techtree: public formal verification and open-weights defensive specialists

Plausible AI prose is cheap and machine-checked proof is scarce. Techtree approaches d/acc defense from both ends: formal proofs checked by small kernels, and compact open-weights defensive models tested on disjoint held-out splits.

At /techtree/formal (GET/POST /api/v1/techtree/formal-proofs, MCP techtree_formal_proofs, CLI regents techtree formal), Techtree exposes a public d/acc Formal Verification Registry backed by Regents.Techtree.PostMath.Proof (techtree.post-math.proof.v1alpha1). Every committed or live-submitted bundle is verified fail-closed: RFC 8785 canonical JSON digests are recomputed from scratch, Ed25519, native ML-DSA-65, or hybrid manifest signatures are checked, any Lean proof with sorry_count > 0 or sorryAx is rejected, and an "unconditional" claim is refused if a single custom axiom appears outside Lean's standard kernel axioms (propext, Classical.choice, Quot.sound).

The registry ships seeded with two real ML-DSA-65-signed bundles. First, PostMathInvariants.lean (sha256:260fed87da42f8d2c51512b4986bb8d0fe540e1d76fb32bf5975445cf95ff6c8, bundle digest sha256:95b86c10b1e35a0f35670932a2375444b225a9c9c8b9e0abf60a4ca6034f5218), checked directly by Lean 4.36.0 with 9 theorems, 0 sorrys, and zero custom axioms (three SIWA v3 policy monotonicity theorems depend on no axioms at all, and the retired_after refusal and Cloak require_pq zero-byte theorems depend only on [propext]). Anyone can download both the .lean source and the .proof.json bundle and check them locally. Second, a signed CryptoConformanceReport (sha256:3fe56e2092354c31a693cd32e6578b6182cbbcc3cddaedb71ad930e9eb9f3891) recording our verified Cloak require_pq zero-byte refusal, 4-language FIPS 204 interop, and SIWA v3 expiry and header-budget checks.

Alongside formal proofs, Techtree's Uplift Factory has been training compact open-weights defensive models on single GPUs (Campaign 5 post_crypto track, staged in Techtree's experiment catalog):

  • CBOM-Auditor-14B (Qwen3-14B on 1x L4, 48.41 MiB verified uplift-package/2) scored 85.0% greedy (83.33% at T=1.0 vs 63.33% for 14B +Skill, p = 9.88e-10) on offline CycloneDX 1.6 and CIRG single-assumption lattice-agility audits, hitting 100% on p2_lattice and 100% decoy cleanliness with 12.6x fewer prompt tokens.
  • CloakShield-4B (Qwen3-4B on 1x L4) runs on-device secret exfiltration, wallet-hijack, contextual PII, and MCP prompt-injection checks in 36.8 ms per payload with 100% attack recall and 100% greedy prompt-injection recall (compared with 17.8% for a 3.5x larger 14B +Skill model, p = 2.89e-06). Its honest production gate is still open: benign false-positive rate on unseen security-adjacent decoys sits at 26.7% greedy in v1, and Wave 2 hard-negative mining is running to push that below 5%.
  • crypto-agility-migrate-v1 (Qwen3-4B multi-turn RL inside a live OpenSSL 3.5.0 environment, zero gold labels) achieved a 2.33x hidden lift (p = 0.0399), reaching 100% on disjoint JWT agility rotation tasks while exposing an honest cold-start RL exploration wall (0%) on live OpenSSL 3.5 X25519MLKEM768 and FIPS 205 SLH-DSA-128f tasks that Wave 2 SFT warm-start is now targeting.

Cloak: local open-weights AI without gatekeepers or cloud archives

Upgrading TLS tomorrow cannot protect traffic recorded yesterday, and defenders around the world cannot rely on a single cloud provider's access policies to defend their own systems. Local open-weights inference solves both problems at once: sensitive context never crosses the wire, and no central operator holds a kill switch.

Cloak v0.4.0 is published and live at /cloak. It pairs native Apple Silicon inference with Universal Privacy Shield (a < 2 ms secret tripwire and reversible alias map), opt-in on-device Neural PII detection that fails closed by default rather than silently sending unredacted prompts, corrupt SpendLedger quarantine, an authoritative Local Only supervisor gate, TLS 1.3-only pinning plus opt-in require_pq in cloak-near, offline Apple CryptoKit ML-DSA-65 release verification (cloak verify-release), and cloak crypto-status.

Staged locally for Cloak v0.5.0 are built-in Apache-2.0 Qwen 3.5 4B (Fast + Vision) for 8 GB Macs and Qwen 3.8 27B (Coding + Vision) with native vmlxCloakDoor tool calling, offline Apple Silicon audio/video transcription and structured PDF table reading, NEAR E2EE v3 with canonical per-field AEAD AAD and zero downgrade to v2, Ed25519 provider_tee and gateway enclave response signature verification, and pre-send Cloud Request inspection (Review cloud request and What Cloak sent). Cloak's status screens still name the external ECC boundaries it cannot control, including NEAR enclave hardware attestation and L1 chain rails.

SIWA v3: open, curve-agile identity across four languages

Allowing either ECC or a post-quantum signature during migration leaves an ECC impersonation door wide open, and signing a new key solely with a broken old key proves nothing.

Our SIWA v3 design decouples persistent agent identity (pairing_id) from any single curve. Agents pre-enroll a native FIPS 204 ML-DSA-65 key with dual proof-of-possession while classical keys still hold, enforce monotonic forward policies (ecc_only to hybrid_both requiring both secp256k1 and ML-DSA-65 signatures over the same RFC 9421 components, then pq_only), fail closed automatically at retired_after, and anchor emergency recovery on the human owner's Privy account.

To rule out cross-language drift before touching production sign-in, we verified one shared vector file (v1.json) across all four languages in the stack. From one 32-byte FIPS 204 seed, three independent implementations (Python cryptography 50.0.2, Apple CryptoKit MLDSA65 on macOS 26, and Erlang/OTP 29.1.2 :crypto backed by OpenSSL 3.6.4) derived the exact same 1,952-byte public key and verified each other's 3,309-byte signatures, paired with Rust rustls and aws-lc-rs for transport. Stage 0 (Debian Trixie / OpenSSL 3.5+) and Stage 2 additive ML-DSA-65 enrollment ship live on siwa.regents.sh without breaking existing v2 agents, paired with regents auth pq-status and regents auth pq-enroll in regents-cli.

Where the boundaries stay honest

None of this stack uses custom cryptography or third-party C bindings. Erlang/OTP 29 (OpenSSL 3.5+), Python cryptography 50, Apple CryptoKit, and aws-lc-rs already ship standardized FIPS 203, 204, and 205 primitives natively, so we build directly on them.

We keep explicit separation between implemented in source, published in a release, active on the wire, and enforced in production. Our own regents.sh and siwa.regents.sh edges still negotiate classical ECC behind Fly Proxy until hybrid PQ edge termination is enabled in front of Fly.io; Cloak v0.5.0 and Techtree's Campaign 5 experiment catalog are staged locally; and CloakShield-4B v1 stays behind its benign false-positive gate until Wave 2 clears it.

Start with live evidence rather than panic. Probe your own domain, lockfile, or Safe address at /patchbay/validate?tab=crypto, run regents defend recipes on your repositories, or inspect and submit Lean 4 proof bundles at /techtree/formal.

Agents see 29 WebMCP Tools

Reading every site's tools…

  1. Read Techtree catalog

    techtree_catalog

    Read the active Techtree catalog of published Climbs and Skills.

  2. Read Techtree bootstrap

    techtree_bootstrap

    Read Techtree CLI bootstrap and install metadata for the active release channel.

  3. Read a Techtree Climb

    techtree_climb

    Read the fixed task contract, data policy, and linked object URLs for one Techtree Climb by slug.

  4. List Techtree results

    techtree_publications

    List published Techtree evaluation results, newest first.

  5. Read a Techtree result

    techtree_publication

    Read one published Techtree Result and its verification receipt by bundle digest.

  6. Download a Techtree result bundle

    techtree_publication_bundle

    Read the exact submitted JSON proof bundle for a published Techtree Result.

  7. Read a published Techtree Skill

    techtree_skill

    Read a published Techtree Skill's files and standing Results by root digest.

  8. Read Techtree Wallet Bench

    techtree_wallet_bench

    Read the Techtree Agent Wallet Bench score grids as JSON.

  9. Read a Techtree Wallet Bench test

    techtree_wallet_bench_show

    Read one Agent Wallet Bench attempt's summary, rulings, and checks by attempt id.

  10. List Techtree Train comparisons

    techtree_train_comparisons

    List Techtree's published public Skill comparison demonstrations as JSON.

  11. Read a Techtree Train report

    techtree_train_report

    Read one Techtree Skill comparison's full per-case report JSON by slug.

  12. Read Techtree Docs

    techtree_docs_markdown

    Read Techtree's docs index as Markdown.

  13. Publish or withdraw a Techtree Result

    techtree_publication_submit

    Submit an independently signed Result proof bundle or withdrawal request as a paired agent for audience regents.

  14. List delivered Techtree projects

    techtree_account_projects

    List projects Techtree's team delivered to your paired person, newest first.

  15. Read one delivered Techtree project

    techtree_account_project

    Read one delivered Techtree project's summary, rerun_test receipt, scoring, signal_contract, Markdown report, and package metadata for your paired person.

  16. Download a delivered Techtree project package

    techtree_account_project_package

    Download and SHA-256 verify the exact gzipped tar package archive for one delivered Techtree project.

  17. List Techtree Uplift Factory orders

    techtree_orders_list

    List Techtree Uplift Factory orders belonging to your paired person, newest first.

  18. Read one Techtree Uplift Factory order

    techtree_orders_show

    Read one Techtree Uplift Factory order's state, quote, runbook, materials sha256, and delivered project link.

  19. Request a Techtree Uplift Factory order

    techtree_orders_create

    Request a managed factory order. Sean issues pilot invoices separately.

  20. Submit pilot materials

    techtree_orders_submit_materials

    Upload or replace the benchmark archive for an issued pilot invoice before the run starts.

  21. Authorize a factory invoice payment

    techtree_orders_authorize_payment

    Submit your signed EIP-3009 authorization for operator-sponsored payment of the invoiced USDC price.

  22. Confirm a sponsored factory invoice payment

    techtree_orders_confirm_payment

    Verify an existing sponsored transaction on Base for this prepaid Skills invoice and record the receipt if it matches. Never sends money.

  23. Cancel a Techtree Uplift Factory order

    techtree_orders_cancel

    Cancel an unpaid Techtree Uplift Factory order in state requested, checking, or quoted.

  24. List Model Climb proof reports

    techtree_model_climb_list

    List private Model Climb proof reports submitted for your paired person.

  25. Submit a Model Climb proof report

    techtree_model_climb_submit

    Verify and store a signed private Model Climb proof report for your paired person.

  26. Read one Model Climb proof report

    techtree_model_climb_show

    Read one private Model Climb proof report by digest for your paired person.

  27. List Techtree formal verification proofs

    techtree_formal_proofs

    List verified formal proofs, cryptographic conformance reports, and Everystate state machine reports in Techtree.

  28. Read one Techtree formal proof bundle

    techtree_formal_proof_show

    Read one verified formal proof receipt and its exact offline-verifiable techtree.post-math.proof.v1alpha1 JSON bundle by report_digest.

  29. Verify and submit a Techtree formal proof bundle

    techtree_formal_proof_submit

    Permissionlessly verify and register a signed techtree.post-math.proof.v1alpha1 bundle in Techtree's public d/acc Formal Verification Registry.