← Lab /AI/ML

ORACAL detects smart contract bugs with 91.3% Macro F1 and high robustness

ORACAL achieves vulnerability detection performance and resistance to adversarial attacks

AI/ML arXiv 30 Mar 2026 Method Prototype evidence

Published as “ORACAL: A Robust and Explainable Multimodal Framework for Smart Contract Vulnerability Detection with Causal Graph Enrichment”

Why it matters

ORACAL can substantially improve automated smart-contract auditing by delivering higher detection accuracy, stronger resistance to evasion, and actionable explanations for auditors.

Summary

ORACAL achieves a peak Macro F1 of 91.28% on the primary benchmark and limits adversarial performance loss to about 2.35% F1 with an Attack Success Rate of only 3%, outperforming prior heterogeneous GNN detectors by up to 39.6 percentage points. It integrates CFG, DFG, and call graphs, enriches critical subgraphs via RAG and LLMs, and uses causal attention plus PGExplainer for explainability. Evidence comes from large real-world Solidity datasets and comparisons to multiple baselines, though performance on a real-world DAppScan set is lower (72.82% F1) and attack success rises to ~5.7% under combined attacks.

What they found 5

  1. Peak detection performance

    “with a peak Macro F1 of 91.28% on the primary benchmark.”

  2. Adversarial robustness

    “Under adversarial attacks, ORACAL limits performance degradation to approximately 2.35% F1 decrease with an Attack Success Rate (ASR) of only 3%”

  3. Explainability quality

    “PGExplainer achieves 32.51% Mean Intersection over Union (MIoU) against manually annotated vulnerability triggering paths.”

  4. Performance gain over prior work

    “outperforming MANDO-HGT, MTVHunter, GNN-SC, and SCVHunter by up to 39.6 percentage points”

  5. Out-of-distribution generalization

    “ORACAL maintains strong generalization on out-of-distribution datasets with 91.8% on CGT Weakness and 77.1% on DAppScan.”

Caveats 6

  • On the real-world DAppScan dataset, ORACAL-all achieves only 72.82% Macro F1, far below its 91.28% on the primary benchmark.
  • When both structural and textual attacks are applied simultaneously, ORACAL-all’s Attack Success Rate rises to 5.71% and F1 drops 4.57%.
  • The reliance on compilation and AST extraction may bias our datasets toward well-structured contracts.
  • Our evaluation focuses on Solidity datasets covering DASP categories, which may not transfer to other languages or vulnerabilities ranging from flash loans to MEV.
  • Ground truth labels are derived from heterogeneous sources, introducing potential noise.
  • The out-of-distribution test sets are relatively small, and Wilcoxon signed-rank tests (n = 5) yield p-values constrained by a discrete distribution.

What’s new here 4

  • Combines heterogeneous CFG/DFG/Call graphs with LLM-generated semantic enrichment via Retrieval-Augmented Generation.
  • Introduces a causal attention mechanism that separates causal from spurious features to improve robustness.
  • Provides subgraph-level explanations using PGExplainer for vulnerability triggering paths.
  • Demonstrates strong adversarial robustness across both structural and textual perturbations.