[Paper Review] Identifying Adversary Tactics and Techniques in Malware Binaries with an LLM Agent
The paper introduces TTPDetect, the first LLM-based agent for recognizing ATT&CK TTPs in stripped malware binaries at function and binary levels, using hybrid retrieval, a Context Explorer, and TTP-specific reasoning guidelines. It also provides a labeled function-level TTP dataset and reports strong precision/recall gains over baselines.
Understanding TTPs (Tactics, Techniques, and Procedures) in malware binaries is essential for security analysis and threat intelligence, yet remains challenging in practice. Real-world malware binaries are typically stripped of symbols, contain large numbers of functions, and distribute malicious behavior across multiple code regions, making TTP attribution difficult. Recent large language models (LLMs) offer strong code understanding capabilities, but applying them directly to this task faces challenges in identifying analysis entry points, reasoning under partial observability, and misalignment with TTP-specific decision logic. We present TTPDetect, the first LLM agent for recognizing TTPs in stripped malware binaries. TTPDetect combines dense retrieval with LLM-based neural retrieval to narrow the space of analysis entry points. TTPDetect further employs a function-level analyzing agent consisting of a Context Explorer that performs on-demand, incremental context retrieval and a TTP-Specific Reasoning Guideline that achieves inference-time alignment. We build a new dataset that labels decompiled functions with TTPs across diverse malware families and platforms. TTPDetect achieves 93.25% precision and 93.81% recall on function-level TTP recognition, outperforming baselines by 10.38% and 18.78%, respectively. When evaluated on real world malware samples, TTPDetect recognizes TTPs with a precision of 87.37%. For malware with expert-written reports, TTPDetect recovers 85.7% of the documented TTPs and further discovers, on average, 10.5 previously unreported TTPs per malware.
Motivation & Objective
- Motivate the need to map malware behavior to ATT&CK TTPs directly from stripped binaries for threat intelligence and defense planning.
- Propose TTPDetect, an LLM agent that combines dense and neural retrieval to identify promising function–TTP entries at the binary level and then analyzes candidate pairs at the function level.
- Introduce a function-level TTP dataset across diverse malware families and platforms.
- Demonstrate that TTPDetect achieves high precision and recall on function-level TTP recognition and real-world malware samples, and can discover unreported TTPs.
Proposed method
- Hybrid retrieval to prune candidate function–TTP pairs by combining dense retrieval (embedding-based) and neural retrieval (LLM-based) to identify analysis entry points.
- Context Explorer that incrementally retrieves relevant function context along the call graph to mitigate partial observability.
- TTP-Specific Reasoning Guideline that provides inference-time alignment by constraining the LLM to structured, TTP-focused criteria derived from MITRE ATT&CK.
- Function renaming agent that uses LLMs to assign semantically meaningful names to decompiled functions for better downstream analysis.
- Three-step pipeline: decompiled function renaming, function–TTP pair retrieval, and TTP presence analysis with the analyzing agent.
- Evaluation using AutoGen and Claude 3.7, with IDA Pro for decompiled code and FAISS for retrieval.
- Grounding in MITRE ATT&CK v16.1 and a dedicated dataset with function-level TTP labels.
Experimental results
Research questions
- RQ1RQ1 How accurately does TTPDetect recognize TTPs in decompiled functions?
- RQ2RQ2 How effective is TTPDetect at recognizing TTPs in malware binaries?
- RQ3RQ3 How does TTPDetect perform compared to baselines?
- RQ4RQ4 How do different components of TTPDetect contribute to overall performance.
Key findings
- TTPDetect achieves 93.25% precision and 93.81% recall on function-level TTP recognition, outperforming baselines by 10.38% and 18.78%, respectively.
- For real-world malware samples, TTPDetect attains 87.37% precision in recognizing TTPs.
- For malware with expert-written reports, TTPDetect recovers 85.7% of documented TTPs and, on average, discovers 10.5 previously unreported TTPs per malware.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.