Web3 Security Shifts: Why Smart Contracts Are No Longer the Primary Target
BlockSec's latest weekly security brief puts roughly $39.5 million in losses across multiple chains on the table, according to the firm, and the headline figure isn't the story.
Lucas Meade·updated August 04, 2026

What's worth attention is that Allbridge Core's $1.65 million Solana exploit stemmed from an input validation flaw — yet it sits inside a month where contracts did exactly what they were coded to do and still drained funds.
The contract did nothing wrong. That's the problem.
TechFlow's monthly aggregation captures the same shift from a different angle: roughly $97 million in total losses for July, with cross-chain bridges absorbing more than $35 million in combined damage across AFX Trade, Verus, and B² Network within hours of each other. Protocol-level incidents dropped to 14-plus from 67 in June, but per-incident losses climbed sharply. Attack vectors are migrating from smart contract code to off-chain infrastructure — key leaks, signature compromise, governance rule design.
AFX Trade's bridge lost about 24.15 million USDC when an attacker obtained the bridge's private verifier signature key and authorized withdrawals the contract verified as legitimate. Funds were bridged from Arbitrum to Ethereum, swapped for roughly 12,467.5 ETH at around $1,937, and consolidated into a single wallet. No contract-level vulnerability was exploited; AFX suspended the affected bridge and posted a 30% white-hat bounty.
The BonkDAO treasury lost about $20 million in BONK after an attacker spent roughly $4 million acquiring enough voting tokens to clear Solana Realms' 1% pass-through threshold and push a malicious proposal on July 6. The contracts executed exactly as written. The vulnerability was in the governance rule design itself — Immunefi flagged this pattern as the canonical shape of the worst 2026 losses: funds lost not to code defects but to voting and rule design.
Ostium, an Arbitrum-based RWA perpetual protocol, lost approximately 23.75 million USDC from its OLP pool when an attacker compromised an off-chain price-signature system, fed a forged BTC/USD quote near $5,000, and cycled positions to drain liquidity. The contract trusted a signature; the signer was the weak link. Trading resumed on July 23.
What this means for your architecture
The trust boundary has moved outward. A code audit catches code bugs; it does not catch a leaked verifier key, a 1% quorum with no timelock, or an off-chain price signer that can be impersonated. In practice, you need to threat-model the entire signing path: who holds keys, how they're stored, rotation cadence, and blast radius if a single signer is compromised.
Bridges concentrate three things you don't want concentrated: custody keys, signature verifiers, and the bridge contract itself. If any one fails, funds move before monitoring catches up. Consider circuit breakers keyed to anomalous withdrawal velocity, and treat key management with the same rigor you'd apply to a hot wallet.
Conversely, governance rules need the same scrutiny as contract invariants. A 1% pass-through with zero delay is not decentralization — it's an unguarded exit. Immunefi's framing is worth keeping in mind: the worst losses this year aren't from broken code; they're from rules that work exactly as designed.
What to review this week
Map every external signature, oracle feed, and governance entry point in your stack. For bridges: key custody, signer rotation, withdrawal-rate monitors. For DAOs: proposal thresholds, quorum, timelock duration, emergency pause paths. For RWA or price-dependent protocols: how isolated is your price-signing infrastructure, and what's your fallback if a signer is compromised?
Broader context worth flagging: when off-chain infrastructure carries the trust, it carries the risk. The U.S. Commerce Department's recent $874 million allocation for AI chip R&D reflects how strategic compute and verification layers are being treated at the policy level. The same logic applies inside Web3 — signers, oracles, and bridge keys are infrastructure, and infrastructure needs defense in depth, not just code review.