LLMs for Domain Generation Algorithm Detection
Not on the map. Why?
Abstract (arXiv)
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.
Key facts. Cited by 1 paper in the map (data through 14 Oct 2026). Builds on 11 of its 47 references that are in the map. First posted on arXiv 5 Nov 2024.
Builds on
11 of 47 references.
References · 11
- 2020Language Models are Few-Shot Learnerscited by 32,419
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,459
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,695
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,418
- 2024Gemma 2: Improving Open Language Models at a Practical Sizecited by 1,998
- 2021Fantastically Ordered Prompts and Where to Find Them: Overcoming Few-Shot Prompt Order Sensitivitycited by 1,135
- 2020Evaluation: from precision, recall and F-measure to ROC, informedness, markedness and correlationcited by 425
- 2022Teaching Small Language Models to Reasoncited by 284
- 2024Many-Shot In-Context Learningcited by 206
- 2016Predicting Domain Generation Algorithms with Long Short-Term Memory Networkscited by 13
- 2019CharBot: A Simple and Effective Method for Evading DGA Classifierscited by 6
Built on by
Citing papers per year: 2026: 1.
1 paper.