# LLMs for Domain Generation Algorithm Detection

Source: [LLMs for Domain Generation Algorithm Detection](<https://www.sota2.com/research/paper/68fa758c1e209131cea6885c>)

Collection index: [llms.txt](<https://www.sota2.com/research/llms.txt>)

Data updated: 2025-10-26T03:36:51.485Z

Authors: Reynier Leyva La O, Carlos A. Catania, Tatiana Parlanti

Published: 2024-11-05T18:01:12.000Z

## Abstract

This work analyzes the use of large language models (LLMs) for detecting domain generation algorithms (DGAs). We perform a detailed evaluation of two important techniques: In-Context Learning (ICL) and Supervised Fine-Tuning (SFT), showing how they can improve detection. SFT increases performance by using domain-specific data, whereas ICL helps the detection model to quickly adapt to new threats without requiring much retraining. We use Meta's Llama3 8B model, on a custom dataset with 68 malware families and normal domains, covering several hard-to-detect schemes, including recent word-based DGAs. Results proved that LLM-based methods can achieve competitive results in DGA detection. In particular, the SFT-based LLM DGA detector outperforms state-of-the-art models using attention layers, achieving 94% accuracy with a 4% false positive rate (FPR) and excelling at detecting word-based DGA domains.

## Recorded benchmark results

A research result applies to its stated dataset, split, metric and evaluation configuration. Compare like-for-like settings, preserve the metric's unit and direction, and distinguish paper-reported results from independent reproduction. The best result recorded here is not a claim of exhaustive, current global coverage.

- [DGA Detection on 2020–2025 (test)](<https://www.sota2.com/research/sota/dga-detection-on-2020-2025-test.md>): DGA Detection; 2020–2025 (test); Accuracy: 80.5239.

- [DGA Detection on DGA 2020 (test)](<https://www.sota2.com/research/sota/dga-detection-on-dga-2020-test.md>): DGA Detection; DGA 2020 (test); FPR: 19.9478.

- [DGA Detection on DGA 2021 (test)](<https://www.sota2.com/research/sota/dga-detection-on-dga-2021-test.md>): DGA Detection; DGA 2021 (test); False Positive Rate: 0.200564.

- [DGA Detection on DGA 2022 (test)](<https://www.sota2.com/research/sota/dga-detection-on-dga-2022-test.md>): DGA Detection; DGA 2022 (test); False Positive Rate (FPR): 19.681.

- [DGA Detection on DGA 2023 (test)](<https://www.sota2.com/research/sota/dga-detection-on-dga-2023-test.md>): DGA Detection; DGA 2023 (test); FPR: 19.9898.

- [DGA Detection on DGA 2024 (test)](<https://www.sota2.com/research/sota/dga-detection-on-dga-2024-test.md>): DGA Detection; DGA 2024 (test); FPR: 20.0038.

- [DGA Detection on DGA 2025 (test)](<https://www.sota2.com/research/sota/dga-detection-on-dga-2025-test.md>): DGA Detection; DGA 2025 (test); FPR: 20.0178.

## Original sources and implementation

[Original paper](<https://arxiv.org/abs/2411.03307>)

[PDF](<https://arxiv.org/pdf/2411.03307.pdf>)
