The Lighter Exploit: One Leaked API Key Turned a Public Pool Into an ATM
A leaked market-maker API key, not a broken contract, drained 10.39M USDC from Lighter. Here is the pool trick used and the key hygiene that stops it.
On-chain Safety Education
Onchain Diary is an independent Web3 safety education site: 140 deep-dive articles, a 232-term glossary, and the complete BIP-39 wordlist: covering crypto scams, smart contract security, and on-chain analysis. No jargon. No sign-up. No tools to install. Just the knowledge you need to stop getting rekt.
Guides, tutorials, and deep dives.
A leaked market-maker API key, not a broken contract, drained 10.39M USDC from Lighter. Here is the pool trick used and the key hygiene that stops it.
Hidden in photos, cloud notes and fake support chats: where seed phrases leak, how to store one that survives a fire, and what to do if yours is out.
What a smart contract audit reviews, the four gaps it cannot close, and how to read a report in five minutes: commit hash, scope, date, unresolved highs.
Twelve wallet settings ranked by the loss they prevent: wallet separation, approval hygiene, blind signing, bait tokens, and the restore test.
Five models that explain most crypto losses: keys not accounts, signing not logging in, approvals that never expire, contracts not websites, and no undo.
An attacker reused one small Optimism deposit to forge five withdrawal receipts and drain Ankr's Ethereum bridge. The mechanism is a lesson in why a valid signature is not proof an event happened, and why the pause flag stayed unset.
Reading is half. The other half is recall.
Every question is drawn strictly from the Yellow Paper's own text. No outside knowledge required: if you've read it, you can pass it.
Take the quiz → T-02Sixteen scenario questions sort you into one of sixteen security personas: hunter or prey: with a safety index and a shareable result card.
Find your type → T-03All 2,048 BIP-39 words, searchable by index or spelling — plus why the list is public by design and why no site should ever ask for your full phrase.
Open the list →A few terms to get you going: the full glossary has 232+.
Whether you're new to crypto or deep into DeFi, understanding how scams work is the best defense. Every guide here is free.
Start Reading →