An isometric illustration of a central router connected to many smaller satellite modules, one of which is cracked and leaking light.

The Permissionless Perimeter: The Squid Module Exploit

A technical post-mortem of the $3.2M SquidRouterModule exploit and what it reveals about ambiguous ownership in modular DeFi architectures.

15 min read
Share X LinkedIn

cover

Introduction

When the team behind Squid Router, a cross-chain swap aggregator built atop Axelar, responded to a roughly $3.2 million exploit in November 2025 by saying they did not know who had deployed the affected contract, the statement read as evasive on first pass. On second pass it read as something stranger: an honest description of how a meaningful share of DeFi now works.

The contract in question, referred to in disclosures as a SquidRouterModule, carried Squid’s name in its identifier and was reachable through transaction flows that users would reasonably associate with the Squid product. It was not, according to the team, written, deployed, or operated by them. It was a third-party integration that lived in the same neighborhood as the official router and had inherited some of its reputational gravity without inheriting its review process.

This pattern — protocols whose effective attack surface extends well beyond the code their core team maintains — is not new. What the Squid incident makes legible is the structural ambiguity of ownership in modular DeFi: the gap between the contracts a team audits and ships, the contracts that compose with them, and the contracts that users actually interact with under the team’s brand. The exploit was small by historical standards. The governance problem it surfaces is not.

We use the Squid incident as an entry point to examine how third-party modules become load-bearing in protocols designed for permissionless composability, why responsibility tends to evaporate at module boundaries, and what comparable cases across DeFi history suggest about the durability of this failure mode.

What actually happened to Squid

img1

Squid Router is a cross-chain liquidity layer that uses Axelar’s General Message Passing to route swaps and arbitrary calls between chains. In practice it is a coordination layer: a user submits a swap on chain A, Squid routes through DEX liquidity on chain A, hands a payload to Axelar, and a corresponding contract on chain B receives that payload and executes the destination-side logic. The destination-side logic is where the design opens up.

To support arbitrary post-bridge actions — deposit into a lending market, mint an LP position, stake a token, swap into something illiquid — the architecture allows calls to be dispatched to executor or module contracts. Some of those modules are written by the Squid team. Others are written by integration partners, by protocols wanting to expose themselves as a Squid destination, or by anonymous deployers who found that the routing infrastructure would happily forward calls to whatever address satisfied a loose interface.

According to public disclosures around the incident, the exploited contract was one of these adjacent modules rather than the core router. Reporting by The Block summarized the team’s position: the module had not been deployed by Squid, the team could not identify the deployer, and they distanced themselves from operational responsibility for it. Funds were drained through a flaw in how the module handled inbound calls — a pattern broadly consistent with insufficient validation of who could trigger which internal function, though specific technical disclosures remained sparse at the time of writing.

The dollar figure, reported at roughly $3.2 million, places the event well below the year’s largest incidents but well above the threshold where users notice. More importantly, the wallets and flows affected were ones that users had every reason to associate with Squid: the module bore the protocol’s name, sat in its routing graph, and was reachable through what looked like a Squid transaction. From a user’s vantage point, the trust perimeter was the brand. From the team’s vantage point, the trust perimeter ended several hops earlier.

The interface as an attack surface

The deeper technical observation is that interfaces, not just contracts, can be exploited. A routing protocol that accepts any contract implementing a given function signature has effectively published an open call for integrations. Anyone can deploy a contract that satisfies the interface, name it suggestively, and insert it into user-facing flows through aggregator frontends, third-party UIs, or transaction-construction libraries. The protocol team’s review does not extend to these deployments because, by design, no review is required.

This is the same property that makes ERC-20 tokens composable with every DEX without permission — and the same property that produces the long tail of malicious tokens that look identical to legitimate ones in a wallet UI. The cost of permissionlessness is that the interface becomes the trust boundary, and interfaces are easy to satisfy without being safe.

The “we don’t know who deployed this” problem

img2

The most consequential line from the Squid disclosure was not technical. It was the admission that the team could not identify who had deployed the affected contract. As a piece of crisis communication this lands awkwardly, but as a description of operational reality in modular DeFi it is exact.

There are at least three reasons a core team can lose track of what gets deployed under its umbrella.

The first is the integration partner pattern. Many protocols actively encourage third parties to write adapters that connect to their core. The core team reviews the first wave of these adapters — typically the partners they themselves onboard — and then publishes the interface so that future integrations no longer require their attention. Six months later, contracts written by people the team has never spoken to are routing user funds through the protocol. Some are competent. Some are not. The team’s responsibility for any given module is undefined.

The second is the forked-and-relabeled pattern. A third party takes a known-good module from the core team’s repository, modifies a few lines, and deploys it under a name that includes the protocol’s brand. On-chain, the contract is indistinguishable in spirit from an official module. Off-chain, there is no registry pinning the official deployment addresses to the official commit hashes in a way that user-facing tools enforce. The provenance is recoverable in principle and rarely checked in practice.

The third is the stale-frontend pattern. Aggregators, wallets, and frontends that integrated a protocol months or years ago may still route through deprecated modules or through experimental contracts that the team never intended to be production-facing. The frontend keeps working, the contracts keep accepting calls, and the team learns that the deprecated path was still live only after it gets exploited.

All three patterns share a structural feature: the protocol’s effective surface area, defined as the set of contracts that a reasonable user might invoke while believing they are using the protocol, is strictly larger than the protocol’s audited surface area, and the difference is not tracked by anyone.

Why disclosure is so awkward here

When the gap is exposed by an exploit, the team faces a choice with no clean exit. Claiming responsibility for the third-party module implies a duty of care the team never accepted and cannot scalably provide for every future integration. Disclaiming it, as Squid did, reads to users as deflection — they got hurt on what looked like Squid, and being told it was not really Squid does not make the loss feel less direct.

Neither stance is dishonest. They simply reflect that the legal and reputational categories — “the protocol”, “the team”, “the integration” — do not map cleanly onto the on-chain reality of permissionless module deployment. The honest answer to “whose contract was this?” is often “nobody’s, in the sense you mean”.

A short history of third-party perimeter failures

img3

The Squid incident is recent, but the underlying failure mode has a lineage worth tracing. Across the past several years, a recurring pattern of exploits has hit not the core protocol but adjacent code — modules, adapters, routers, integrations — that sat inside the protocol’s effective trust perimeter while sitting outside its audit perimeter.

Aggregator and router adapters

DEX aggregators present the cleanest analogy. An aggregator’s value comes from supporting many venues, and supporting many venues means writing adapters — small contracts that translate the aggregator’s internal call into the specific calldata each venue expects. Multiple aggregators have suffered losses through bugs in individual adapters, where the core routing logic was sound but a single adapter mishandled token approvals, return values, or refund paths. Users approving the aggregator’s main router were exposed to the worst-behaved adapter in the set, not the average one.

The structural lesson is that approvals are coarse and integrations are fine-grained. Once a user has granted an aggregator allowance over a token, every contract that aggregator can call into becomes part of that token’s threat model.

Vault strategies

Yield vault protocols, particularly during the 2020–2021 cycle and intermittently since, illustrated the same problem in a different dialect. A vault’s “strategy” — the contract that actually deploys deposited capital into external protocols — was often written by an independent strategist, reviewed by a different team than the one that built the vault, and upgraded on a cadence the vault’s depositors did not track. Several incidents in this category involved strategies that interacted with a venue in ways the vault auditors had not modeled, or that trusted oracle paths the vault depositors had not signed up for.

Depositors thought they were using “the vault”. They were using the vault’s strategy. The two were not the same security object.

Bridge executors and post-bridge modules

Cross-chain protocols are particularly exposed because the architecture explicitly demands an extension point. Bridging value without bridging action is, for most users, not useful — the point is to do something on the destination chain. That means a destination-side executor contract, and that executor contract has historically been the soft spot. Several cross-chain exploits over the past two years have targeted the destination-side execution layer rather than the message-passing layer itself, including cases where the core bridge proved sound but the executor’s handling of arbitrary calls allowed an attacker to impersonate a legitimate message origin.

Squid’s incident fits comfortably in this lineage. The router and the message-passing layer were not what failed.

Token approvals as the universal accelerant

Across all of these cases, token approvals function as the accelerant. DeFi UX has trained users to grant unlimited approvals to a known router or aggregator address. Those approvals do not expire and do not distinguish between contracts the team wrote and contracts the team’s contracts can call. An attacker who finds a way to make the trusted contract call into an attacker-controlled module — or who deploys the attacker-controlled module in a way that earns the trusted contract’s call — converts the user’s standing approval into a withdrawal authority. This is true even when no contract the user explicitly interacted with was malicious.

The economics of permissionless modules

img4

It is tempting to read this pattern as a failure of diligence: teams should audit every module, should refuse to expose interfaces they cannot police, should curate their integration partners more carefully. This reading is correct in spirit and incomplete in practice. The economics of modular DeFi push against curation in ways worth naming.

Permissionless composability is not a side effect of these protocols. It is the product. A cross-chain router whose destinations are limited to ten team-approved venues is a worse router, in a strict competitive sense, than one whose destinations are open. A DEX aggregator that turns down adapters because they were written by unknown developers loses execution quality to a competitor that accepts them. A lending market that refuses to list collateral until it has audited the underlying token’s contract concedes the long tail of usage to a market that does not.

Each individual team’s incentives push toward larger interfaces, more permissive integration paths, and looser curation, because the competitive cost of restriction is immediate and the security cost of permissiveness is probabilistic and delayed. The teams that grow fastest are the ones that lean into the open surface area; the ones that survive are the subset of those who get lucky on which modules turn out to matter.

Who is supposed to pay for the review?

A related economic question is who funds module-level security review when the module is deployed by a third party. The core protocol team cannot scalably audit every integration without either charging integrators (which deters them) or absorbing the cost themselves (which scales linearly with integration count while protocol revenue does not). The integrators, particularly the anonymous ones, have little incentive to pay for a thorough audit of a contract they may abandon in three months. Users, who bear the actual loss when something fails, are not in a position to commission audits on contracts they did not know existed.

The result is a public-goods failure in which everyone agrees that more review would be valuable and no one’s individual incentive justifies paying for it. The defaults that emerge — light interface specifications, optional self-attestations, after-the-fact disclosures — reflect this gap rather than fixing it.

Reputation as a leaky substitute

In the absence of formal review, reputation does some of the work. Users learn which aggregators have been around longest, which routing protocols have weathered the most stress, which teams disclose incidents promptly. This is real information but it generalizes poorly: the brand-level reputation of a protocol provides almost no signal about the module-level reputation of any specific integration, especially when the module was deployed after the user formed their view of the brand.

The Squid case is a clean illustration. A user who had concluded, reasonably, that Squid was a competent team running a well-architected router was not wrong about the team or the router. They were exposed to a module whose reputation had nothing to do with either.

Designing for explicit perimeters

img5

If the failure mode is structural, the responses have to be structural too. We are skeptical of solutions that depend on every team adopting better hygiene; the incentive analysis above suggests those will erode at the margins. The more interesting question is what design changes would make the perimeter legible to users and tools without sacrificing the composability that makes the protocols valuable in the first place.

A few directions stand out as worth watching.

The first is module registries with cryptographic provenance: on-chain or off-chain registries that map contract addresses to the commit hash, deployer identity, and audit status of the deployed code, in a form that wallets and aggregators could check before signing a transaction. Several efforts along these lines exist but adoption is partial, and the question of who curates the registry — the core team, an independent body, the integrators themselves — replicates the original responsibility ambiguity at one level of remove.

The second is granular approvals: token approvals scoped not to a router address but to specific call patterns, expiration windows, or destination sets. ERC-7702 and related account-abstraction primitives make this technically more tractable than it was, though the UX of granular approvals has historically been bad enough that users default to the loose version. A path here exists but requires wallet vendors to absorb meaningful complexity for benefits that only materialize during exploits.

The third is explicit trust labeling in user-facing surfaces. Aggregators and frontends could expose, at the moment of transaction construction, which contracts in the path are first-party to the protocol the user thinks they are using, which are third-party, and what is known about each. This is a UI problem more than a contract problem, and it has the merit of meeting users where their mental model already lives — at the brand, not at the bytecode.

The fourth, and least satisfying, is resigned acceptance: an industry-wide acknowledgement that modular DeFi protocols carry a permanent third-party tail risk, that some fraction of incidents will involve contracts no core team will claim, and that user-side defaults — small approvals, frequent revocations, brand-skepticism — have to do more work than they currently do. This is where the industry effectively sits today, and the Squid incident did not move it.

Implications and open questions

The Squid module exploit is small enough that its specific dollar figure will not be remembered for long. The pattern it crystallizes — protocols whose effective trust surface extends beyond what any team has reviewed, and whose response to incidents in that extended surface is necessarily awkward — is durable, and it interacts with several trends worth tracking.

The first is the migration of more protocol logic into intent-based and solver-based architectures, where the executor of any given user intent may be selected dynamically from a competitive set. These designs are powerful and they push the third-party perimeter problem to its logical endpoint: the contract that handles a user’s funds at execution time may not have existed when the user formed their intent. The question of which “protocol” the user was using collapses entirely.

The second is the maturation of on-chain insurance and coverage products. If module-level risk cannot be eliminated by audit, it can in principle be priced. Whether coverage markets can develop the granularity to underwrite individual modules — rather than entire protocols — is an open question, and the answer matters for whether third-party integration ecosystems can scale without their tail risk swamping their utility.

The third is governance and legal precedent. As more incidents involve contracts whose deployers are unknown or anonymous, the implicit social contract that the front-facing team is the responsible party will continue to fray. We expect more disclosures that mirror Squid’s — honest, technically defensible, reputationally damaging — and we expect the distinction between “the protocol” and “the protocol’s perimeter” to become a category that users, regulators, and counterparties learn to read.

What we are watching for, in the months ahead: whether any major modular protocol publishes a formal module-attestation standard that wallets meaningfully enforce; whether the next incident in this category produces a clearer answer to the responsibility question than Squid did; and whether the largest aggregators and routers begin to differentiate themselves on perimeter discipline rather than on integration count. The first protocol to win on the security side of that tradeoff will be worth studying. The conditions under which winning that way becomes commercially viable are not yet in place.

Read next

Follow the next market structure breakdown

New Steadyrain research is published several times a week across DeFi risk, BTCFi, stablecoins, and RWA.