Skip to content
Book Open access

POSTER: LHPD: LLM-Based Heuristic Pre-Training for Malware Detection

Nov 2026 · Proceedings of the 2026 ACM SIGSAC Conference on Computer and Communications Security · 0 citations · 7 references

Abstract

Malware sandboxes produce rich behavioral reports, yet these reports are lengthy, deeply nested JSON documents that defy direct analysis. In this paper, we address how general-purpose Large Language Models (LLMs) can reconstruct coherent behavioral chains of malware from such reports, and propose LHPD, a detection framework that bridges the cognitive reasoning gap between generic LLMs and expert analysis. LHPD introduces Semantics-Driven Feature Reconstruction (SDFR) to reorganize raw JSON reports into four complementary semantic dimensions—signatures, PE metadata, the import address table, and time-ordered API sequences—reducing structural noise while preserving causal links between high-level alerts and low-level traces. A Heuristic-Based Fine-Tuning Strategy (HBFS) then progressively aligns models with curated security heuristics before refining them on the reconstructed corpus. On a CAPE-based dataset of 13,623 reports, the LHPD-tuned Qwen3-32B attains 94.87% accuracy, surpassing both dedicated detectors and generic LLMs, and remains robust under few-shot settings.

Read PDF

We use cookies to run the site and, with your consent, for analytics and to show ads. See our Cookie Policy.