Quantifiable Uncertainty: A Stochastic Consensus Multi-Agent RAG Framework for Robust Malware Detection
ElMouatez Billah Karbab

TL;DR
MAGMA introduces a stochastic, retrieval-augmented framework for malware detection that quantifies uncertainty and improves robustness against structural evasion attacks.
Contribution
It proposes a novel dual-stream embedding and ensemble approach to isolate decision-critical functions and quantify structural ambiguity in malware detection.
Findings
MAGMA achieves a 98.4% detection rate.
The Evidence Conflict Score effectively indicates structural ambiguity.
The stochastic ensemble enhances robustness against evasion attacks.
Abstract
While contemporary deep learning malware detectors define a dominant defense paradigm, their sophistication also exposes them to novel structural evasion attacks, a limitation we attribute to their inherent inability to express epistemic uncertainty. To address this challenge, we present MAGMA, a Retrieval-Augmented Generation (RAG) framework that decouples malware analysis into semantic code retrieval and probabilistic verification. In contrast to monolithic classifiers, MAGMA employs a dual-stream embedding scheme over assembly and pseudo-code representations to isolate Decision-Critical Functions (DCFs) from the noise of dead code. We further introduce a Stochastic Consistency Ensemble, in which multiple instances of the same reasoning agent independently evaluate the retrieval set under non-deterministic sampling. From this ensemble, we derive two complementary metrics: Function…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
