Hackphyr: A Local Fine-Tuned LLM Agent for Network Security Environments

Fuente: arXiv
Enregistré dans:
Détails bibliographiques
Auteurs principaux: Rigaki, Maria, Catania, Carlos, Garcia, Sebastian
Format: Preprint
Publié: 2024
Sujets:
Accès en ligne:
Tags: Ajouter un tag
Pas de tags, Soyez le premier à ajouter un tag!
_version_ 1866914951046627328
author Rigaki, Maria
Catania, Carlos
Garcia, Sebastian
author_facet Rigaki, Maria
Catania, Carlos
Garcia, Sebastian
contents Large Language Models (LLMs) have shown remarkable potential across various domains, including cybersecurity. Using commercial cloud-based LLMs may be undesirable due to privacy concerns, costs, and network connectivity constraints. In this paper, we present Hackphyr, a locally fine-tuned LLM to be used as a red-team agent within network security environments. Our fine-tuned 7 billion parameter model can run on a single GPU card and achieves performance comparable with much larger and more powerful commercial models such as GPT-4. Hackphyr clearly outperforms other models, including GPT-3.5-turbo, and baselines, such as Q-learning agents in complex, previously unseen scenarios. To achieve this performance, we generated a new task-specific cybersecurity dataset to enhance the base model's capabilities. Finally, we conducted a comprehensive analysis of the agents' behaviors that provides insights into the planning abilities and potential shortcomings of such agents, contributing to the broader understanding of LLM-based agents in cybersecurity contexts
format Preprint
id arxiv_https___arxiv_org_abs_2409_11276
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle Hackphyr: A Local Fine-Tuned LLM Agent for Network Security Environments
Rigaki, Maria
Catania, Carlos
Garcia, Sebastian
Cryptography and Security
Large Language Models (LLMs) have shown remarkable potential across various domains, including cybersecurity. Using commercial cloud-based LLMs may be undesirable due to privacy concerns, costs, and network connectivity constraints. In this paper, we present Hackphyr, a locally fine-tuned LLM to be used as a red-team agent within network security environments. Our fine-tuned 7 billion parameter model can run on a single GPU card and achieves performance comparable with much larger and more powerful commercial models such as GPT-4. Hackphyr clearly outperforms other models, including GPT-3.5-turbo, and baselines, such as Q-learning agents in complex, previously unseen scenarios. To achieve this performance, we generated a new task-specific cybersecurity dataset to enhance the base model's capabilities. Finally, we conducted a comprehensive analysis of the agents' behaviors that provides insights into the planning abilities and potential shortcomings of such agents, contributing to the broader understanding of LLM-based agents in cybersecurity contexts
title Hackphyr: A Local Fine-Tuned LLM Agent for Network Security Environments
topic Cryptography and Security
url https://arxiv.org/abs/2409.11276