402bridge Hack

TOTAL LOST $17K
Low Private Key Compromised (Stored Publicly) / Access Control base

Summarize with AI

Affected Chain base Incident surface
Recovered - No recovery reported
All-Time Rank #1871 By amount stolen
Protocol Type Exploit/Access control Target category

Incident Overview

On October 27, 2025, 402Bridge was exploited for approximately $17,693 USDC after the contract creator's admin private key was compromised. The attacker transferred contract ownership to a malicious address and drained funds from over 200 wallets that had granted token approvals, then bridged the stolen funds through multiple chains to Arbitrum.

The vulnerability stemmed from 402Bridge's operational architecture where admin private keys were stored on an internet-connected backend server to facilitate the x402 mechanism. This mechanism required users to sign transactions via the web interface, which were sent to the backend server to extract funds, perform minting, and return results. During the onboarding process to x402scan.com, storing the admin private key on the server exposed it to potential compromise.

The attacker obtained the admin private key and transferred ownership of the creator contract (0xed1AFc4D…EA9FC5) to a malicious address (0x2b8F9556…6B361F). The new owner then called the transferUserToken function to systematically drain USDC from approximately 200+ wallets that had previously granted unlimited token approvals for minting operations. The exploiter swapped the stolen USDC for ETH and bridged funds multiple times to Arbitrum for laundering.

Creator Contract (Exploited):

0xed1AFc4D…EA9FC5

Attacker Address (New Owner):

0x2b8F9556…6B361F

Ownership Transfer Transaction:

0x089a6336…6e46e2

Incident Report

Protocol / Project 402bridge
Date of Incident
Affected Chain(s) base
Attack Technique Private Key Compromised (Stored Publicly) / Access Control
Classification Infrastructure / Bridge
Primary Source View Post-Mortem

Protocol Information

Protocol Type Exploit/Access control
Smart Contract Language Solidity
Protocol Twitter/X @402bridge
Team Anonymous
Source Code Unverified

What the Attacker Needed to Succeed

Understanding the prerequisites for this type of attack helps auditors identify protocols that are most at risk and helps developers build better defenses.

Technical Knowledge Operational-security tradecraft (phishing, malware, leaked seed phrases, or insider access) to obtain treasury signing authority
Capital Required Minimal capital - only enough to cover gas while draining the compromised accounts
On-Chain Access Valid signing authority over the compromised wallets / multisig signers, allowing direct transfer of funds or stake authorization
Target Reconnaissance Identification of 402bridge's high-value treasury accounts and the authority / multisig structure controlling them
Execution Speed Speed to drain the compromised accounts before the team detects the breach and revokes signing authority or freezes the assets
Obfuscation Plan A strategy to launder and move stolen funds - typically through mixers, cross-chain bridges, or decentralized DEX swaps to resist tracing

What Auditors Should Check

Could this have been caught in audit? Hard to catch — private key / OpSec failures are outside smart contract audit scope

If you're auditing a protocol with similar architecture to 402bridge, these are the critical security checks that could have prevented this incident (October 2025).

  • Verify all logic paths related to Private Key Compromised (Stored Publicly) / Access Control are guarded by proper access controls and input validation - see the Access Control Attacks attack class for patterns
  • Review privileged functions (owner, admin, governance) for potential abuse vectors - centralization risks should be documented and bounded with timelocks or multi-sigs

Master these auditing techniques with hands-on labs and real exploit scenarios in the Smart Contract Hacking course.

Free Trial

Related Attack Classes

The technique used in this hack maps to these vulnerability classes in our security curriculum:

See all Access Control Attacks examples →

Sources & References

Learn to Prevent the Next 402bridge

The 402bridge hack is one of many attacks that skilled auditors are trained to detect before deployment. Master real exploit patterns and defense techniques with hands-on Web3 security training.

Recreate exploit patterns safely Free Trial