MAGMA attains 98.4% malware detection and uses entropy to reject ambiguous samples
The authors claim MAGMA reaches a 98.4% detection rate and that high entropy reliably indicates structural ambiguity for a reject option
Security & privacy arXiv 8 May 2026 Method Prototype evidence
Published as “Quantifiable Uncertainty: A Stochastic Consensus Multi-Agent RAG Framework for Robust Malware Detection”
Why it matters
MAGMA can serve as a tier-2 cloud verification layer that flags ambiguous binaries for analyst review, improving detection of evasive malware at the cost of higher processing latency.
Summary
MAGMA achieves a 98.4% detection rate, substantially exceeding existing solutions. The system combines dual-stream assembly and pseudo-code embeddings with a retrieval-augmented generation pipeline and a stochastic multi-agent ensemble to quantify epistemic uncertainty via Function Evidence Strength and Evidence Conflict Score. Evaluation shows 98.4% F1, outperforming ResNeXt+ (97.1%) and MalConv (94.2%). However, the approach incurs high latency (≈42 s per binary) and is positioned as a tier-2 cloud verification layer rather than a high-throughput endpoint scanner.
What they found 2
- High detection performance
“MAGMA achieves a 98.4% detection rate, substantially exceeding existing solutions.”
- Outperforms prior static DL detectors
“MAGMA achieves 98.4% F1, outperforming ResNeXt+ (97.1%) by +1.3 pp and MalConv (94.2%) by +4.2 pp, establishing detection on the evaluation corpus.”
Caveats 7
- This design increases latency from milliseconds to seconds.
- MAGMA is not intended to replace high-throughput endpoint AV engines.
- FPR and FNR are both 1.6%.
- The primary trade-off introduced by MAGMA is computational overhead.
- We do not claim resilience against heavy obfuscation or environmental awareness checks (“Red Pills”) designed to detect analysis environments.
- The efficacy of the Semantic Stream (ICode) relies heavily on the underlying lifter, such as Hex-Rays or Ghidra.
- A high ECS score does not prove malicious intent; it simply flags structural ambiguity.
What’s new here 4
- Introduces a dual-stream lifting of binaries into assembly and pseudo-code embeddings for retrieval-augmented generation.
- Uses a stochastic multi-agent ensemble to derive an entropy-based Evidence Conflict Score for uncertainty quantification.
- Defines Function Evidence Strength to weight retrieved evidence before making a verdict.
- Implements a principled reject-option policy that escalates high-entropy cases to human analysts.