We manage your security to weather the AI storm →

← Resource Hub

Web3 Pentest Findings in DeFi Backends, Keepers and Cloud

By Daniel Gelfand Updated 5 min read

Web3 Pentest Findings in DeFi Backends, Keepers and Cloud

Quick answer. In 315 offchain findings from 18 published Guardian reports, the largest groups are lost or raced messages, offchain math that drifts from the chain, unvalidated inputs and missing rate limits. 24 of them are Critical or High.

Watch: Web3 Pentest Findings in DeFi Backends, Keepers and Cloud 1:53
Video transcript

Offchain pentest findings are rarely published in any detail. Here is what Guardian's reviews found in DeFi backends, APIs, keepers and cloud.

By Guardian's count, offchain gaps accounted for seven hundred twenty nine million dollars of the losses in 2026's ten largest exploits.

The set is three hundred fifteen findings from eighteen public reports, plus three case studies. It is small, so read it as Guardian's findings, not industry statistics.

The biggest groups are messages that get lost or raced, accounting that drifts from the chain, unvalidated inputs, and missing rate limits.

Unlike smart contracts, the worst offchain bugs are rarely clever: a service computes a different number, drops a message, or accepts unlimited work.

At Synthetix, the backend checked only that a withdrawal was positive, not the contract's minimum, so dust requests burned relayer gas. In the same backend, a failed withdrawal still returned success, leaving funds locked.

Guardian's keeper review for GMX found eight Highs, mostly where its view disagreed with the contracts. A Synthetix keeper sat behind a public API Gateway with no authorizer, and its logs captured private keys.

Fix in this order, starting with the bugs that move value. Make offchain math match the chain, and test the two together. Never acknowledge a message before its work is durable. Bound every request per real client, with timeouts and size limits. Then sign whole payloads, and split keys by role.

Guardian's offchain team is led by Carlos Polop, who co-founded and built HackTricks. Read the full report, or talk to Guardian about the systems around your contracts.

Web3 pentest findings are rarely published. Guardian's own portfolio shows the gap: 315 published reports are filed as onchain work and only five as offchain.

The gap matters. At the launch of Vanguard, Guardian's count put $729M of the $769M lost in the ten largest exploits of 2026 down to offchain gaps.

This report collects what Guardian has published about offchain systems. It is a small, concentrated set, so read it as Guardian's findings, not industry statistics.

It is the third of three reports on Guardian's public data, after Guardian's critical findings report and its report on smart contract upgrade bugs.

Dataset Scope

The sources are Guardian's published reports as of November 8, 2026 (320 reports, 9,617 findings) and its offchain case studies.

315 findings have published details: 70 in two reports filed as offchain, and 245 inside 16 reports filed as onchain.

Three case studies add severity counts only: Avantis (two Criticals, six Highs), GMX's keeper (eight Highs) and USDT0's Gasolina signer (no Critical or High).

How we selected and counted:

  • Offchain reports. Two of the five filed as offchain; the other three review contract code.
  • Onchain reports. Findings in offchain files or services, or labeled Keeper. Excluding Global-only findings makes this a floor.
  • Case studies. Their finding details remain private, so they are not in the theme counts.
  • Themes. Keyword matches on finding titles. A finding can match several.

Limitations. The set is small and concentrated.

One report, Synthetix Withdrawal Flow, holds 17 of the 24 Critical and High findings, and its 83 findings have no final status recorded.

There is no published browser extension or SDK pentest in the set.

What the Findings Were About

Theme (by title)FindingsCritical or HighReports
Message handling, races and lost or stale state3467
Prices, precision and accounting3369
Untrusted inputs and external responses2216
Rate limits, quotas and resource exhaustion2256
Signatures, replay and payload binding1825
Authentication, sessions and privileged actions1506
Secrets, keys and credentials1413
Cloud and infrastructure configuration1304

The pattern differs from smart contracts. The highest-severity offchain findings are rarely about a clever exploit.

More often, a service computes a different number from the chain, drops a message or accepts unlimited work from anyone.

Backends, Keepers and Cloud

Trading backends and APIs

Synthetix's Withdrawal Flow review covered a Go backend and returned 17 Highs. Several show how a backend can lock user funds without any attacker.

When submitting a withdrawal failed, for example during an RPC outage, the handler still returned success. The queue discarded the request while the user's pending amount stayed locked (H-06).

Others are classic API abuse: no rate limit on withdrawal requests, server timeouts never applied, and request bodies read without a size limit.

Trade actions were also signed without fields such as withdrawal amount and destination, so a tampered request still verified (H-15).

In Ethereal's Orderbook DEX, Round 2, a WebSocket rate limiter logged an exceeded quota but still let the request through (H-01).

Rate limits keyed to the load balancer's address, not the client's, turned up there and in Longshot's Rust API. Longshot also lacked step-up 2FA on admin and vault routes that move funds.

Synthetix's withdrawal backend (M-06) checked only that a withdrawal amount was positive, not the contract's minimum for that collateral. Dust withdrawals passed every offchain check, then reverted onchain, with the relayer paying gas each time.

In the Avantis V2 backend, Guardian found two Criticals and six Highs. Both Criticals were fixed while the review was still running.

Keepers and automation

Keepers hold funded keys and act unattended. In this set, their serious bugs were mostly wrong numbers rather than broken access.

  • GMX keeper review: 55 findings and eight Highs, all eight resolved, mostly where the keeper disagreed with the contracts.
  • GMX operations script: double counted open interest when long and short collateral are the same token (High).
  • Bounce Tech automation: used position size where it needed margin, corrupting the target leverage calculation (High).
  • Synthetix LP vault keeper: swapped every reward token it received, including unconfigured ones, creating sandwich and slippage risk (High).

Cloud and secrets

The clearest cloud findings come from the Synthetix LP vault keeper on AWS. A public API Gateway endpoint had no authorizer, so anyone with the URL could invoke the keeper's Lambda.

Per the case study, request logging wrote full payloads, including private keys, to CloudWatch. Secrets and an RPC key were hard-coded in source.

Other reports add the same families. Bounce Tech's Terraform exposed a Kubernetes control plane to 0.0.0.0/0, and an account script printed private keys to the console.

In Synthetix's withdrawal backend, one private key held the relayer, watcher and teller roles (H-14). So the watcher votes meant to check withdrawals came from the key that requested and paid them.

Fix Priorities

The order follows what produced the most Critical and High findings in this set.

  1. Make offchain math match onchain math, and test them against each other (6 Critical or High).
  2. Never acknowledge a message before its work is durable (6 Critical or High).
  3. Bound everything, per real client: rate limits, timeouts and body size limits (5 Critical or High).
  4. Sign the whole payload, with a nonce and an expiry.
  5. Treat every client-supplied field as hostile, and check it against the contracts' own limits, such as a withdrawal minimum.
  6. Split keys by role, and keep secrets out of code and logs.
  7. Authenticate every endpoint that triggers value movement, with step-up 2FA for privileged actions.
  8. Lock down cloud defaults: control-plane access, security groups, WAF and log contents.

How Guardian Tests Offchain Systems

Each fix priority above maps to a check in one of Guardian's offchain pentests:

  • Offchain automation: what each keeper key can call, the ceiling on one run, and whether a stuck or spammed job halts safely.
  • API: rate limits, quotas and replay protection, and whether they hold per key, plus endpoints that fire relayers or onchain transactions.
  • Infrastructure: where keys and tokens live, who can read them, and what one stolen cloud key unlocks.

Automation reviews start by establishing what the system must guarantee, then work through the triggers, retries and key handling that break it. Source access is required.

For onchain teams, Vanguard returns half the package cost as credits toward offchain assessments. Its six months of update review cover up to 10,000 SLOC of offchain code.

For scope and price, see how much a web3 pentest costs and the best web3 pentesting firms.

Frequently Asked Questions

How severe are offchain findings compared with smart contract findings?

In the 315 published offchain findings with details, 24 (7.6%) are Critical or High, against 12.6% in reports filed as onchain. The scopes differ, and offchain Criticals do occur: the Avantis V2 backend review found two.

Are keepers and bots in scope for a web3 pentest?

They should be. Guardian's GMX keeper review returned 55 findings, eight of them High, mostly where the keeper's view of a position disagreed with the contracts.

What should a DeFi team fix first after an offchain pentest?

Start with anything that moves value: offchain math that disagrees with the contracts, messages acknowledged too early, replayable payloads, exposed keys and unauthenticated endpoints. Then add rate limits, timeouts and cloud hardening.

Sources

Pentest the systems around your contracts

Guardian's offchain team tests the backends, keepers, APIs and cloud accounts that decide what your contracts are asked to do.