Evidence Hub

Secure Domain Adaptation and Retrieval Augmented Generation for Compact Language Models Using Archived Cybersecurity Intelligence

Redhouse S, Alsmadi I, AlSobeh A

2026

Abstract

Abstract Security analysts must reconcile vulnerability, exploit and malware records that are scattered across public repositories, yet it is unclear whether compact, locally deployable language models can reason over such archives. We present SecureLLM, an open framework that normalizes 161,190 records from the National Vulnerability Database, the Known Exploited Vulnerabilities catalog, ExploitDB and MalwareBazaar into one corpus, which we use both to continue pretraining Qwen2.5-1.5B-Instruct and to build a dense retrieval index. We compare the adapted model with its base and three other compact models on 1,000 stratified security prompts, with and without retrieval (10,000 responses), using paired non-parametric tests. Continued pretraining lowered validation loss by 12% during training but left cybersecurity-term coverage in closed-book answers statistically unchanged (Holm-adjusted p = 0.062). With retrieval, the adapted model's answers agreed less with the retrieved context than those of its base (cosine similarity 0.41 versus 0.46; adjusted p

Read the paper

Related studies

Go deeper in Evidence Hub

Evidence Hub adds a study data sheet (design, sample size, evidence level, key numbers), an AI summary and a chat grounded in the paper's text.

Open this study Sign up free