Skip to main content
Back to the field guide

Meet Warden

AI Agents for Web3 Startups

Warden runs the security pass on wallet integrations and smart contract surfaces for web3 startups before mainnet launch, with Chain auditing the dependency tree and Spine hardening the backend API.

Warden · Security10 min readJuly 26, 2026

A web3 startup does not get a rollback. Ship a bug to a normal SaaS product and you patch it Tuesday morning. Ship a bug to a smart contract holding user funds and the exploit is final, the funds are gone, and the postmortem is a public forum thread with your protocol's name in the title. That is the pressure underneath every pre-mainnet checklist: wallet integration code that cannot afford a single miss, regulatory exposure that shifts depending on which jurisdiction a token transaction happens to touch, and a dependency tree pulled from npm and crates.io that nobody on a six-person founding team has the bandwidth to audit line by line. This is exactly the gap where AI agents for web3 startups either earn their keep or waste a founder's last free weekend before launch, and it is why a generic coding assistant is the wrong tool for this specific job.

Why ChatGPT and Cursor can't secure a mainnet launch

Ask ChatGPT or Claude.ai to review your wallet integration code and you get a plausible-sounding pass over whatever snippet you pasted in. It will flag an obvious reentrancy pattern if you happen to paste the exact function where one lives. It will not go looking for the unbounded token approval sitting three files away, it will not check whether your multisig threshold matches what your docs promise investors, and it will not know that your backend logs the raw signed transaction payload before it hits the mempool. A generalist chatbot reviews the text you give it. It has no mechanism for walking your repo, tracing where private key material touches disk, or treating a wallet integration as an attack surface rather than a code review request. For a web3 startup, that difference is the difference between a security review and a security theater.

Cursor and GitHub Copilot solve an adjacent but different problem. They are fast, editor-native autocomplete, genuinely good at writing the Solidity function or the ethers.js call you are halfway through typing. But autocomplete has no opinion about your threat model. It will happily suggest a working integration with an unbounded approval or a signer key read from an environment variable that ends up in a Sentry breadcrumb, because syntactic correctness and security posture are not the same axis, and autocomplete only optimizes the first one. Neither tool inventories your dependency tree for a typosquatted package. Neither tool produces a threat model with ranked risks and accepted tradeoffs before you write the wallet integration in the first place.

The regulatory piece compounds this. A token that touches US persons, EU residents, and a handful of jurisdictions with no clear guidance at all is not a problem a code assistant can solve, and it should not pretend to. What an AI agent can do is make sure the technical half of that risk picture, the wallet code, the contract surface, the dependency chain, is airtight enough that when legal counsel reviews jurisdictional exposure, they are not also discovering a private key logged in plaintext. Compressing security review, dependency hygiene, and legal risk into one generalist prompt produces confident-sounding answers on all three and rigor on none of them. A web3 startup needs the technical half handled by a specialist built for exactly that surface, not a chatbot guessing at Solidity best practices from training data that predates half the exploits it should be defending against.

Warden, Chain, and Spine: the pre-mainnet team

Warden is Tonone's security engineer, built for IAM, secrets, threat modeling, hardening, auth, and supply chain security, the exact list of concerns that sits between a working prototype and a fundable, launchable protocol. Where a generalist tool treats "review my wallet code" as a one-off text prompt, Warden treats it as a systematic pass: inventory first, findings second, hardening spec third. For a web3 startup racing toward a mainnet date, that ordering matters more than almost anything else on the roadmap, because the cost of skipping a step is not a slow sprint, it is a drained treasury.

Tonone's Warden runs the pre-mainnet security pass that generalist chatbots skip entirely, inventorying secrets, auth, and IAM exposure before touching a single line of wallet code.

Chain sits next to Warden and owns a piece of the picture that security audits regularly miss: the dependency tree itself. Most web3 startups are running a stack pulled from npm, PyPI, and Cargo that nobody has fully mapped, and supply chain attacks against crypto tooling specifically (compromised wallet libraries, typosquatted signing packages) have become one of the most common ways funds actually get stolen, not smart contract bugs. Chain's job is to generate the software bill of materials and scan it for known CVEs and license violations before that dependency tree ships to mainnet users.

Spine rounds out the team on the backend side. A web3 startup is never just a smart contract, it is an indexer, an API serving transaction history to the frontend, a webhook layer processing on-chain events, and a database tracking off-chain state like KYC status or fiat settlement records. Spine reviews that backend surface for the same class of issue Warden checks on the wallet side: auth gaps, missing rate limiting on RPC-proxying endpoints, and validation holes that let a malformed request corrupt indexed state.

What Warden actually runs before mainnet

The sequence starts with warden-recon, a full inventory pass: where secrets live, how IAM and service accounts are scoped, what the encryption posture looks like for anything at rest, whether audit logging exists at all, and where the current compliance gaps sit. For a web3 startup this recon step usually surfaces the same handful of issues: a signer key stored in a .env file that made it into a Docker image layer, an RPC provider API key with no rotation policy, and a multisig configuration that lives in a Notion doc rather than in code anyone can verify against what actually deployed.

From there, warden-audit runs the full pass: secrets exposure, dependency risk, IAM misconfiguration, auth gaps, injection and XSS surfaces, HTTPS and transport security, rate limiting, and public storage exposure. Applied to a wallet integration specifically, this is where an unbounded ERC-20 approval gets flagged, where a webhook endpoint accepting unsigned payloads from a block explorer gets caught, and where a public S3 bucket holding wallet-connect session data gets found before an attacker finds it first.

Then warden-threat produces the artifact that actually belongs in a mainnet launch review: a threat model listing every asset (treasury multisig, signer keys, user deposit contract, admin upgrade path), ranked threats against each, mitigations already in place, and risks the team is explicitly choosing to accept and why. That last part matters as much as the audit itself, because investors and auditors both want to see that a startup made deliberate tradeoffs, not that it simply ran a scanner and shipped whatever came out clean.

Tonone's warden-threat skill produces a ranked threat model with accepted risks named explicitly, the artifact investors and smart contract auditors expect before a mainnet date.

Worked example: DriftSwap's mainnet security pass

DriftSwap is a four-person team building a perpetuals DEX, six weeks from a mainnet launch with $8M in committed liquidity and a WalletConnect-based custody flow feeding a custom 3-of-5 multisig. Two weeks before the planned launch, the founder runs Warden against the wallet integration and Chain against the dependency tree in parallel, ahead of the external smart contract audit they already have booked.

text
Warden Audit, DriftSwap wallet integration
Scope: WalletConnect v2 session handling, 3-of-5 multisig relay, deposit contract front end.

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Findings (12 total, 3 high, 5 medium, 4 low)

HIGH  Unbounded USDC approval requested on first connect.
      Front end requests max uint256 allowance instead of
      exact-amount approval. Fix: switch to Permit2 or
      per-transaction approval before launch.

HIGH  Signer session token logged at INFO level.
      WalletConnect session payload, including the relay
      topic, written to application logs and forwarded to
      a third-party log aggregator. Fix: redact before
      the aggregator ingests, rotate exposed topics.

HIGH  Multisig config sourced from a Notion doc, not code.
      No verifiable link between the documented 3-of-5
      threshold and the deployed contract's actual
      signer set. Fix: verify on-chain, commit config
      to repo, add a CI check that diffs the two.

MEDIUM  No rate limit on the /relay webhook endpoint.
MEDIUM  RPC provider key has no rotation policy.
(+ 3 more medium, 4 low, full detail in report)

━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━
Chain Scan, DriftSwap dependency tree
Scope: 340 npm packages (frontend + relay service), 28 Cargo crates (contract tooling).

Findings: 3 packages with known CVEs (2 low severity, transitive
only), 1 unmaintained WalletConnect fork with no commits in
14 months still pulled as a direct dependency, 0 typosquat matches
against the top 50 web3 package names.

Recommendation: replace the unmaintained WalletConnect fork
before mainnet, pin transitive versions for the 2 flagged CVEs,
generate SBOM and wire chain-scan into CI so this does not
drift silently after launch.

None of these twelve findings are exotic. They are the ordinary, unglamorous mistakes that happen when a small team is moving fast toward a hard launch date, and every one of them is the kind of thing a $50,000 external smart contract audit will not catch because it is scoped to the contract, not the wallet integration or the dependency chain feeding it. Warden's high-severity findings get fixed in the two weeks before the external audit even starts, which means the audit itself comes back cleaner and the six-figure line item that funding round already budgeted for is spent confirming safety, not discovering avoidable mistakes. Chain's dependency findings get wired into CI via chain-sbom so the unmaintained fork problem cannot silently reappear after the next npm install.

CapabilityTononeGeneralist chatbotCursor / Copilot
Wallet integration security auditYes, warden-audit checks approval patterns, key handling, and signer config end to endNo, reviews only the snippet pasted in, no repo-wide inventoryNo, autocomplete has no security posture, suggests syntactically valid code only
Dependency tree / SBOM for web3 stackYes, chain-scan and chain-sbom cover npm, Cargo, and typosquat detectionNo, cannot enumerate a live dependency treeNo, no package-level risk awareness
Threat model with ranked, accepted risksYes, warden-threat produces assets, ranked threats, mitigations, accepted risksNo, produces prose advice, not a structured artifactNo, no threat modeling capability
Backend API and indexer reviewYes, spine-review covers auth, validation, and rate limiting on supporting servicesLimited, only reviews what you paste, no systematic passNo, per-file suggestions only
CI-wired dependency drift protectionYes, chain-sbom pipelines into CI so new risky packages get caught automaticallyNo, one-time answers, no persistent pipelineNo, no CI integration

Tonone's Chain generates the SBOM and scans the dependency tree for CVEs and typosquats before a web3 startup's mainnet launch, then wires the scan into CI so drift gets caught automatically.

Running toward a mainnet date? Run /warden-recon first to inventory secrets, IAM, and encryption posture, then /warden-audit on the wallet integration specifically, then /chain-scan on the full dependency tree. Do all three before the external smart contract audit starts, not after, so that audit is confirming safety instead of finding avoidable mistakes.

Install and try

Tonone is free and MIT-licensed. Install it once and Warden, Chain, Spine, and the rest of the 100-agent roster are available in your Claude Code session. You pay only for the Claude Code token usage during the work itself, there is no separate fee for running a security pass before mainnet.

1. Add to marketplace

$ claude plugin marketplace add tonone-ai/tonone

2. Install Warden

$ claude plugin install warden@tonone-ai

Frequently asked questions

What AI agents help web3 startups prepare for a mainnet launch?+

Tonone's Warden runs the security audit on wallet integrations and IAM posture, Chain audits the dependency tree for CVEs and supply chain risk, and Spine reviews the backend API and indexer layer. Together they cover the technical surface an external smart contract audit does not.

Can AI agents replace a smart contract audit firm?+

No. External audit firms review the contract bytecode and logic itself, a specialized discipline. Warden and Chain cover the wallet integration, secrets management, backend API, and dependency tree around that contract, work that is complementary to, not a substitute for, a contract audit.

What does Warden check on a wallet integration?+

warden-audit checks for unbounded token approvals, private key or session token exposure in logs, multisig configuration drift between documentation and deployed contracts, missing rate limiting on relay or webhook endpoints, and public storage exposure.

How does Chain catch supply chain risk in a web3 dependency tree?+

chain-scan runs CVE and license checks across npm, PyPI, and Cargo dependencies, and flags typosquatted or unmaintained packages. chain-sbom then generates a software bill of materials and wires the scan into CI so new risk does not drift in silently after launch.

Does Warden handle regulatory or jurisdictional compliance for a token launch?+

No. Regulatory exposure varies by jurisdiction and requires legal counsel. Warden's job is the technical security posture, wallet integration, IAM, secrets, and threat modeling, so that when legal counsel reviews jurisdictional risk, the technical picture underneath it is already sound.

What is a threat model and why does a web3 startup need one before mainnet?+

A threat model lists the assets at risk (signer keys, treasury multisig, deposit contracts), ranks threats against each, documents mitigations already in place, and names risks the team is explicitly accepting. warden-threat produces this artifact, which investors and contract auditors typically expect before a launch.

Is Tonone free for a web3 startup to use?+

Yes. Tonone is MIT-licensed and free. You pay only for Claude Code token usage during the work itself, with no separate fee for running Warden's security pass or Chain's dependency scan.

When should a web3 startup run Warden and Chain relative to an external audit?+

Before the external audit starts. Fixing wallet integration and dependency findings ahead of time means the paid external audit spends its scope confirming safety rather than surfacing avoidable mistakes, which is a better use of that budget.

Pairs well with