SmartMemory detects on-chain/off-chain inconsistencies with ~81% recall
SmartMemory can automatically detect OFC inconsistencies in smart contracts.
Software arXiv 28 Sep 2026 Method Prototype evidence
Published as “SmartMemory: Detecting On-chain-off-chain Communication Inconsistency for Smart Contract via Memory-based Agent”
Why it matters
The framework enables auditors and developers to automatically discover hidden OFC inconsistencies, reducing the risk of high-value DeFi exploits.
Summary
SmartMemory detects on-chain/off-chain communication inconsistencies with 80.68% precision and 87.65% recall on a manually labeled dataset of 81 OFCIs, and in a large-scale audit of 325 real-world OFC applications it uncovered 36 previously unseen zero-day OFCIs that were all confirmed and patched. The evidence is based on a labeled benchmark and a real-world deployment, though false positives arise from incomplete contract availability and false negatives from external cryptographic or oracle logic.
What they found 2
- SmartMemory attains 80.68% precision and 87.65% recall on the manually labeled OFCI dataset.
“SmartMemory achieves 80.68% precision and 87.65% recall on Dlabeled, with consistently strong performance on both subtypes.”
- In a deployment on 325 OFC applications, SmartMemory identified 36 new zero-day OFC inconsistencies, all confirmed and fixed.
“SmartMemory detects 36 previously unseen zero-day OFCIs, all of which have been confirmed and fixed.”
Caveats 4
- 17 false positives were observed, mainly due to incomplete contract availability and unresolved external calls during static analysis.
- 10 false negatives occurred, largely because the vulnerabilities depended on third-party cryptographic verification logic or real-time oracle data.
- We inspect all 17 false positives and find that most of them originate from incomplete contract availability. Some DApps do not open-source all deployed contracts, causing unresolved external calls during static analysis.
- We also analyze the 10 false negatives and find that they mainly depend on non-contract components. Among them, 4 rely on cryptographic verification logic in third-party libraries outside the OFC applications, and 6 depend on real-time data sources such as oracles.
What’s new here 4
- Introduces a memory-based LLM agent that abstracts and reuses vulnerability knowledge across cases.
- Maps heterogeneous contract implementations to a canonical business-semantic model for uniform analysis.
- Combines locating, hierarchical-memory identification, and cross on-chain/off-chain data-flow graph taint verification in a three-stage pipeline.
- Demonstrates detection of previously unseen zero-day OFC inconsistencies in a large real-world audit.