← Lab /Software

DeFiScreener pre-screens DeFi attacks with 98.55% recall and 84.30% precision

DeFiScreener can identify vulnerable functions and call sequences with 98.55% recall and 84.30% precision

Software arXiv 24 Jul 2026 Method Prototype evidence

Published as “DeFiScreener: Efficient DeFi Attack Pre-screening in Smart Contracts via Historical Case Matching”

Why it matters

DeFiScreener lets auditors triage contracts and catch attacks that existing detectors miss, improving proactive security for rapidly evolving DeFi ecosystems.

Summary

DeFiScreener achieves 98.55% recall and 84.30% precision in pre-screening DeFi attacks, recovering 14 of 17 zero-day attacks and flagging 88 attacks missed by existing tools. It builds function call trees, generates LLM-based semantic embeddings, and uses a dual-level match plus an Attack Pattern-Oriented Monte Carlo Tree Search to identify vulnerable functions and call sequences. Evaluation on 207 real-world incidents (≈$2.97 B loss) shows strong coverage but the system is limited to static, single-protocol analysis and may miss patterns.

What they found 2

  1. High recall and precision in attack pre-screening

    “Experimental results demonstrate that DeFiScreener achieves a remarkable 98.55% recall and 84.30% precision in attack pre-screening.”

  2. Recovers many attacks missed by tools

    “Interestingly, it effectively recovers 14 of 17 real-world DeFi attacks in zero-day scenario and efficiently screens 88 DeFi attacks overlooked by tools.”

Caveats 4

  • Raising it from 0.001 to 0.01 does not improve generalization, since ZD stays at 12, but inflates false positives from 38 to 136.
  • We observed that pre-screening discovered no additional incidents in two cases: PancakeHunny [55] and APEDAO [35].
  • Static, Single-Protocol Analysis. DeFiScreener reasons over a static snapshot of a single protocol’s source code, which introduces two related boundaries. First, it does not model the dynamic runtime state or transaction context, so it can over-approximate the exploitability of state-dependent operations. Second, it does not follow calls whose implementation lies in another protocol or is unavailable as source, so interface-only functions and cross-protocol interactions fall outside its scope.
  • Potential Omission of Attack Patterns. As DeFiScreener’s screening mechanism relies on an attack pattern library constructed from historical data, it may omit completely attack vectors.

What’s new here 4

  • General pre-screening across all DeFi attack types using a historical attack-pattern library.
  • Dual-level screening: function-level embedding matching and sequence-level APO-MCTS search.
  • LLM-generated semantic embeddings for functions combined with static Function Call Trees.
  • Integration as a front-end to route candidates to downstream specialized detectors.