Home / Services / DeFi protocol audit
Web3 & Crypto · DeFi protocol auditDeFi audits that attack the economics, not just the code.
Most DeFi losses were not caused by a line of code that was wrong in isolation. They were caused by a combination that was profitable: a price that could be moved, a rounding that could be amplified, a governance vote that could be bought in one block. We audit DeFi protocols as an attacker with a flash loan would — code and economics together — and we prove each path with a working test.
What we test
- Oracle design and manipulation: spot vs TWAP, Chainlink staleness, L2 sequencer checks, custom feeds
- Flash-loan scenarios across every state-changing function in a single transaction
- AMM and DEX maths: invariant correctness, fee accounting, rounding direction, concentrated liquidity edge cases
- Lending markets: collateral factors, liquidation incentives, bad-debt paths, interest accrual and donation attacks
- Vaults and yield strategies: ERC-4626 share inflation, strategy trust, slippage and sandwich exposure
- Stablecoins and liquid staking: peg mechanics, redemption paths, exchange-rate reads and reward distribution
- Governance and timelocks: proposal thresholds, vote buying, emergency powers and admin key risk
- Composability: what your integrations assume about you, and what you assume about them
What you get
- Report with findings ranked Critical / High / Medium / Low / Informational
- Working proof-of-concept exploit for every Critical and High, including flash-loan paths
- Economic threat model: the invariants, the actors and the capital needed to break them
- Remediation per finding and recommended monitoring invariants for after launch
- Free retest and a publishable final report
Code review plus economic review
We run two reviews in parallel. The code review is the line-by-line manual audit we do for every smart contract engagement. The economic review writes down the protocol's invariants — what must always be true about balances, prices, shares and debt — then asks what an actor with unlimited capital for one block can do to each of them. The findings that matter most usually come from the overlap: a rounding that is harmless alone and a price read that is harmless alone, which together let an attacker mint value from nothing.
The DeFi exploit patterns we test for
Oracle manipulation through thin liquidity or stale feeds; read-only reentrancy that corrupts a price while a callback is in flight; first-depositor and donation attacks on vault share prices; liquidation paths that leave bad debt or can be front-run; interest and reward accounting that can be gamed by timing; governance attacks with borrowed voting power; and composability failures where an upstream protocol changes behaviour your contracts did not anticipate. Our blog covers each pattern in depth; the audit checks each one against your code.
Protocol types we audit
Automated market makers and DEX aggregators, including concentrated-liquidity and stable-swap designs; lending and borrowing markets, isolated and cross-collateral; yield vaults and strategy frameworks; stablecoins, both collateralised and algorithmic; liquid staking and restaking; perpetuals and options; cross-chain bridges and messaging layers; and the governance and token-distribution contracts that sit around all of them.
After the audit: invariants you can monitor
A report is a snapshot. The economic invariants we document during the audit are also the things worth watching after launch: total assets versus total shares, collateral ratio floors, oracle deviation from reference prices, and unusual governance activity. We hand them over in a form your team can wire into monitoring, so the audit keeps paying off after the contracts go live.
Timeline
A single-mechanism protocol — one vault, one pool type — takes about two weeks. A full lending market or multi-pool DEX takes three to four weeks; cross-chain and multi-module systems are scoped per component. Quotes are fixed and in writing, retest included.
How an engagement runs
Scope
We agree targets, rules of engagement and what success looks like — in writing, before anything starts.
Recon
We map your full attack surface the way an adversary would, not just the assets you remembered to mention.
Exploit
We attempt real exploitation and chain small weaknesses into business-level impact.
Report
You get prioritised findings, proof-of-concept and remediation steps a developer can act on today.
Retest
We verify every fix so issues stay closed — and you get a clean report to show customers.
Questions about deFi protocol audit
Do you simulate flash-loan attacks?
Yes. Every state-changing function is tested in single-transaction scenarios with effectively unlimited capital, and profitable paths are delivered as runnable proofs of concept.
Can you review our oracle design before we build it?
Yes. A short design review before implementation is often the cheapest security work you can buy; we offer it standalone or as the first phase of an audit.
Do you audit forks of Uniswap, Aave or Compound?
Yes, and we focus on the diff from upstream and on parameter choices — collateral factors, fee tiers, oracle sources — since that is where fork exploits almost always live.
What is the difference between this and a Solidity audit?
A Solidity audit reviews the code of the contracts. A DeFi audit does that and adds an economic review of the protocol's invariants under adversarial capital. Most DeFi protocols need both, and we deliver them together.
Other services
Smart contract audits
Web3 & Crypto
View serviceProtocol & DeFi security
Web3 & Crypto
View serviceBlockchain infrastructure
Web3 & Crypto
View servicedApp penetration testing
Web3 & Crypto
View servicePenetration testing
Enterprise
View serviceRed teaming
Enterprise
View serviceCloud & identity review
Enterprise
View serviceCompliance-ready testing
Enterprise
View serviceSolidity audit
Web3 & Crypto
View serviceSolana & Rust audit
Web3 & Crypto
View serviceMove audit (Aptos & Sui)
Web3 & Crypto
View serviceFind out what an attacker would find first.
Send us what you want tested. We'll come back with scope, timing and a fixed quote — no sales theatre.
Start on Telegram