Hackphyr: A Local Fine-Tuned LLM Agent for Network Security Environments
On the map: LLM agents and tool use → Agent threats, guardrails and governance
Abstract (arXiv)
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
Key facts. Cited by 9 papers in the map (data through 7 Oct 2026). Placed in Agent threats, guardrails and governance, one of 16 directions in LLM agents and tool use. Builds on 28 of its 36 references that are in the map. First posted on arXiv 17 Sep 2024.
Builds on
28 of 36 references.
Closest ancestors · 1
Same direction, newest first
Other references · 27
- 2017Attention Is All You Needcited by 59,932
- 2020Language Models are Few-Shot Learnerscited by 32,199
- 2022Training language models to follow instructions with human feedbackcited by 15,712
- 2022Chain-of-Thought Prompting Elicits Reasoning in Large Language Modelscited by 12,302
- 2022ReAct: Synergizing Reasoning and Acting in Language Modelscited by 8,355
- 2023Reflexion: Language Agents with Verbal Reinforcement Learningcited by 4,064
- 2021Finetuned Language Models Are Zero-Shot Learnerscited by 3,747
- 2023Generative Agents: Interactive Simulacra of Human Behaviorcited by 3,500
- 2023QLoRA: Efficient Finetuning of Quantized LLMscited by 3,355
- 2022Scaling Instruction-Finetuned Language Modelscited by 2,997
- 2023A Survey on Large Language Model based Autonomous Agentscited by 2,203
- 2023Voyager: An Open-Ended Embodied Agent with Large Language Modelscited by 2,081
15 more
- 2023The Rise and Potential of Large Language Model Based Agents: A Surveycited by 1,422
- 2023Reasoning with Language Model is Planning with World Modelcited by 846
- 2023DSPy: Compiling Declarative Language Model Calls into Self-Improving Pipelinescited by 803
- 2023Zephyr: Direct Distillation of LM Alignmentcited by 498
- 2023Describe, Explain, Plan and Select: Interactive Planning with Large Language Models Enables Open-World Multi-Task Agentscited by 396
- 2022Teaching Small Language Models to Reasoncited by 279
- 2021Benchmarking the Spectrum of Agent Capabilitiescited by 193
- 2023Guiding Pretraining in Reinforcement Learning with Large Language Modelscited by 185
- 2023Generalized Planning in PDDL Domains with Pretrained Large Language Modelscited by 139
- 2023PentestGPT: An LLM-empowered Automatic Penetration Testing Toolcited by 94
- 2023Getting pwn'd by AI: Penetration Testing with Large Language Modelscited by 82
- 2022Housekeep: Tidying Virtual Households using Commonsense Reasoningcited by 57
- 2023Using Large Language Models for Cybersecurity Capture-The-Flag Challenges and Certification Questionscited by 23
- 2023Out of the Cage: How Stochastic Parrots Win in Cyber Security Environmentscited by 17
- 2023Autonomous Intelligent Cyber-defense Agent: Introduction and Overviewcited by 2
Built on by
Citing papers per year: 2024: 2; 2025: 4; 2026: 3.
9 papers.
- 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinementcited by 124
- 2025SAGA: A Security Architecture for Governing AI Agentic Systemscited by 45
- 2024A Survey on Large Language Models for Communication, Network, and Service Management: Application Insights, Challenges, and Future Directionscited by 25
- 2025DefenderBench: A Toolkit for Evaluating Language Agents in Cybersecurity Environmentscited by 4
- 2025Large Language Models for Network Intrusion Detection Systems: Foundations, Implementations, and Future Directionscited by 4
- 2025Uncovering Vulnerabilities of LLM-Assisted Cyber Threat Intelligencecited by 3
- 2026Cost and Accuracy of Long-Term Memory in Distributed Multi-Agent Systems Based on Large Language Modelscited by 2
- 2026Decomposing Memorization Reduction in Privacy-Preserving Fine-Tuning of SLMs for CSIRTscited by 1
- 2026Tiny Enough to Break In: Agentic Remote Access Trojans Powered by Small Language Modelscited by 1
- 2026Tiny Enough to Break In: Agentic Remote Access Trojans Powered by Small Language Models4 Aug 2026
- 2026Decomposing Memorization Reduction in Privacy-Preserving Fine-Tuning of SLMs for CSIRTs26 Jun 2026
- 2026Cost and Accuracy of Long-Term Memory in Distributed Multi-Agent Systems Based on Large Language Models12 Jan 2026
- 2025Uncovering Vulnerabilities of LLM-Assisted Cyber Threat Intelligence28 Sep 2025
- 2025Large Language Models for Network Intrusion Detection Systems: Foundations, Implementations, and Future Directions7 Jul 2025
- 2025DefenderBench: A Toolkit for Evaluating Language Agents in Cybersecurity Environments31 May 2025
- 2025SAGA: A Security Architecture for Governing AI Agentic Systems27 Apr 2025
- 2024A Survey on Large Language Models for Communication, Network, and Service Management: Application Insights, Challenges, and Future Directions16 Dec 2024
- 2024SWE-Search: Enhancing Software Agents with Monte Carlo Tree Search and Iterative Refinement26 Oct 2024
Similar, not cited
Close in wording, no citation either way
- 2026Systematic Capability Benchmarking of Frontier Large Language Models for Offensive Cyber Tasks
- 2025Cyber-Zero: Training Cybersecurity Agents without Runtime
- 2024LLM Agents can Autonomously Hack Websites
- 2026LLM agents security duality: a comprehensive survey of self-security and empowered cybersecurity
- 2026Co-RedTeam: Orchestrated Security Discovery and Exploitation with LLM Agents
- 2025MALCDF: A Distributed Multi-Agent LLM Framework for Real-Time Cyber
- 2024HackSynth: LLM Agent and Evaluation Framework for Autonomous Penetration Testing
- 2025From Texts to Shields: Convergence of Large Language Models and Cybersecurity