# TRIAGE-CPG: A Cross-Model Study of Budgeted Static Malware Triage with Large Language Models

arXiv: https://arxiv.org/abs/2611.21331 · HTML: https://mlsanity.com/paper/2611.21331/

## Key facts

- No citing papers in the map yet (data through 24 Nov 2026).
- Builds on 12 of its 42 references that are in the map.
- Submitted 16 Nov 2026.

## Builds on (most cited first, 12 of 12)

- [Consistent Estimators for Learning to Defer to an Expert](https://mlsanity.com/paper/2006.01862/) (2020)
- [Evaluation and Benchmarking of LLM Agents: A Survey](https://mlsanity.com/paper/2507.21504/) (2025)
- [LLM4Decompile: Decompiling Binary Code with Large Language Models](https://mlsanity.com/paper/2403.05286/) (2024)
- [LAMD: Context-driven Android Malware Detection and Classification with LLMs](https://mlsanity.com/paper/2502.13055/) (2025)
- [A Multi-view Context-aware Approach to Android Malware Detection and Malicious Code Localization](https://mlsanity.com/paper/1704.01759/) (2017)
- [MALSIGHT: Exploring Malicious Source Code and Benign Pseudocode for Iterative Binary Malware Summarization](https://mlsanity.com/paper/2406.18379/) (2024)
- [MalLoc: Toward Fine-grained Android Malicious Payload Localization via LLMs](https://mlsanity.com/paper/2508.17856/) (2025)
- [Identifying Adversary Tactics and Techniques in Malware Binaries with an LLM Agent](https://mlsanity.com/paper/2602.06325/) (2026)
- [PageRank in Malware Categorization](https://mlsanity.com/paper/1608.00866/) (2016)
- [A Language-Independent Analysis Platform for Source Code](https://mlsanity.com/paper/2203.08424/) (2022)
- [Representing LLVM-IR in a Code Property Graph](https://mlsanity.com/paper/2211.05627/) (2022)
- [Automatically Attacking Software Reverse Engineering AI Agents](https://mlsanity.com/paper/2605.30667/) (2026)

## Abstract (arXiv)

When triaging unknown binaries, security analysts must decide which samples to clear as benign, flag as malicious, or escalate for deeper analysis. Large Language Models (LLMs) could support these decisions by interpreting decompiled code, but a binary can contain hundreds or thousands of functions, making exhaustive LLM analysis impractical. We study how current LLMs behave when static triage is formulated as budgeted evidence acquisition: which functions they inspect and how they trade off benign clearance, malware detection, and escalation. To enable a controlled comparison, we implement TRIAGE-CPG, a fixed pipeline over a code property graph (CPG) of a decompiled binary. An LLM-free heuristic selects seed functions, an agent expands the resulting evidence dossier under a fixed budget, and a reporting stage produces a benign, suspicious, or malicious verdict together with a behavioral report. We evaluate eight closed-source and open-weight models on 1,000 Windows PE binaries, using a 600-sample test split and the same zero-shot protocol for every model. We assess the ternary verdicts under both a strict binary reading and triage balanced accuracy (tBA), which credits malware that is flagged or escalated and benign samples only when cleared. After analyzing about 40 of a mean 1,000 functions per binary, the highest-scoring model reaches a strict balanced accuracy of 0.805 and a tBA of 0.855, flagging 65% of malware, escalating another 12%, and clearing 94% of benign samples. The models implement different triage policies: high-specificity models produce small, malware-rich escalation queues, whereas recall-oriented models escalate or flag much more broadly. Both closed-source and open-weight models appear across this spectrum. Our results identify no universal deployment configuration: model choice itself determines the clear/flag/escalate trade-off under limited static evidence.
