LLMs for Domain Generation Algorithm Detection

Reynier Leyva La O, Carlos A. Catania, Tatiana Parlanti
11/5/2024
cs.CLcs.CR

No confident code implementation found for this paper. 3 possible matches can be shown below.

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.

View on arXivView PDF

Code Implementations

No confident code match yet

We couldn't find an author-owned or strongly-evidenced community implementation for this paper. 3 weaker matches are hidden by default — verify before relying on them.

No code implementations found yet.

Know of an implementation? Let us know in the comments below!

Similar Papers

Cite this paper

@article{o2024llms,
  title  = {LLMs for Domain Generation Algorithm Detection},
  author = {Reynier Leyva La O and Carlos A. Catania and Tatiana Parlanti},
  year   = {2024},
  eprint = {2411.03307},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2411.03307v1}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2411.03307.svg)](https://codeofpaper.com/paper/2411.03307)

Discussion