research collection16 posts

~/blog/defi

DeFi Audit Field Guides

Technical DeFi audit field guides covering lending, perpetuals, stablecoins, staking, prediction markets, and cross-chain accounting.

2026-11-13evmprivate audit field guide

How to Audit an EVM Order-Book DEX: Lessons from a Private Review

Trace oracle prices, order-book matching, swap settlement, router identity, rounding, and chain-specific timing with an anonymized audit checklist.

read the field guide
2026-11-13evmprivate audit field notes

Oracle Reset Replay: When a Pending Signed Update Returns

A reset can clear stored oracle data without invalidating a signed update that is still waiting to land. Learn the attack conditions, test boundaries, and a generation-based defense.

read the field notes
2026-11-06aptosfix review field notes

New Code, Old Vaults: Reviewing an Aptos Security Fix

A fix for new vaults may leave old permissions unchanged. How to review Aptos Move upgrades, protect pending payments, and decide when vault migration is needed.

read the fix review notes
2026-10-26aptosprivate audit field notes

Auditing a Non-Custodial Card-Payment Protocol on Aptos

Manual review, AI-assisted checks, payment-state invariants, and a Medium ownership flaw: why reserving money in a ledger did not keep it in the vault.

read the field notes
2026-08-19suiprivate audit field notes

Beyond the Bet: Auditing a Prediction Market on Sui Move

A month of generalized field notes from a private Sui Move prediction-market review: pricing, signed oracles, settlement, NAV, LP queues, PTB composition, and why the dangerous bugs live between components.

read the field notes
2026-07-16evmprivate audit field guide

Between Two Chains: How I Audit Cross-Chain DeFi Protocols

Lessons from a private engagement with Three Sigma: modeling asynchronous bridge state, mirrored accounting, stale snapshots, message ordering, recovery paths, and the gaps where cross-chain bugs actually live.

read the field guide
2026-07-16bittensorprivate audit field guide

When Collateral Is a Live Market: Auditing Lending Protocols on Bittensor

Lessons from a private engagement with BurraSec: unit-safe accounting, Dynamic TAO pricing, staking precompiles, lazy settlement, liquidation liveness, and runtime-aware testing.

read the field guide
2026-04-15suiaudit guide

How to Audit a Perp Protocol on Sui Move

Auditing perps on Sui requires a different checklist from EVM or Aptos. The object model, hot-potato request/response pattern, Programmable Transaction Blocks, and shared collateral vaults all reshape the attack surface — the Sui companion to the Aptos perp audit post.

read more
2026-03-22evmaudit guide

How to Audit Aave V3 Fork Deployment Scripts

Learnings from auditing Aave V3 fork deployment scripts — the bug classes, the patterns, and the real findings from production audits.

read more
2026-03-16suiaudit guide

How to Audit a Lending Protocol on Sui Move

Share-ratio manipulation, eMode edge cases, oracle staleness, and the liquidation paths that actually break — a field checklist from a live Sui lending audit.

read more
2026-03-14suiformal verification

Formal Verification of Current Sui Using Certora — Part 2

Using Certora's Sui Prover to encode borrow restrictions as parametric rules — and what the prover surfaced that manual review walked past.

read more
2026-03-13suiformal verification

Formal Verification of Current Sui Using Certora Sui Prover

How I mathematically proved that an eMode group assignment is immutable after obligation creation in a Sui DeFi lending protocol — using Certora's Sui Prover, parametric rules, and field accessors.

read more
2026-03-08solanaaudit guide

How to Audit a Gold-Backed Staking Protocol on Solana

RWA-backed staking on Solana: mint/redeem trust boundaries, reward accounting, oracle dependencies, and the Anchor account-validation traps from a real engagement.

read more
2026-03-06evmaudit guide

How to Audit a Stablecoin Protocol

Peg mechanics, collateral accounting, mint/burn access paths, and diamond-pattern upgrade risk — what I check first in every stablecoin review.

read more
2026-03-01aptosaudit guide

Auditing a Perp Protocol on Aptos Move

Learnings from auditing a fully on-chain perp DEX in Move on Aptos — orderbook mechanics, oracle integration, liquidation engine, funding rate, and the bugs that actually matter.

read more
2026-02-14aptos1H + 1M · 3rd place

The Move Bug That Would Have Bricked Aave on Aptos Before Day One

A case study from Aave Aptos V3 on Cantina, where Panther placed 3rd with 1 confirmed High and 1 confirmed Medium. The High came down to data being stored at one address and read from another.

read more