[Paper Review] AutoAttacker: A Large Language Model Guided System to Implement Automatic Cyber-attacks
AutoAttacker is an LLM-driven modular system that automates hands-on-keyboard post-breach cyber-attacks in a simulated network, using planning, summarization, navigation, and a Retrieval Augmented Generation-inspired experience manager to generate precise attack commands.
Large language models (LLMs) have demonstrated impressive results on natural language tasks, and security researchers are beginning to employ them in both offensive and defensive systems. In cyber-security, there have been multiple research efforts that utilize LLMs focusing on the pre-breach stage of attacks like phishing and malware generation. However, so far there lacks a comprehensive study regarding whether LLM-based systems can be leveraged to simulate the post-breach stage of attacks that are typically human-operated, or "hands-on-keyboard" attacks, under various attack techniques and environments. As LLMs inevitably advance, they may be able to automate both the pre- and post-breach attack stages. This shift may transform organizational attacks from rare, expert-led events to frequent, automated operations requiring no expertise and executed at automation speed and scale. This risks fundamentally changing global computer security and correspondingly causing substantial economic impacts, and a goal of this work is to better understand these risks now so we can better prepare for these inevitable ever-more-capable LLMs on the horizon. On the immediate impact side, this research serves three purposes. First, an automated LLM-based, post-breach exploitation framework can help analysts quickly test and continually improve their organization's network security posture against previously unseen attacks. Second, an LLM-based penetration test system can extend the effectiveness of red teams with a limited number of human analysts. Finally, this research can help defensive systems and teams learn to detect novel attack behaviors preemptively before their use in the wild....
Motivation & Objective
- Assess whether LLMs can automate hands-on-keyboard post-breach cyber-attacks across varied environments and techniques.
- Develop a modular system that leverages LLMs for planning, summarization, and command generation to improve attack automation.
- Provide a benchmark of 14 attacks covering reconnaissance through persistence in a simulated enterprise network.
- Demonstrate how retrieval-augmented experience management can reduce attack overhead and improve success rates.
- Discuss security implications and defensive considerations arising from automated LLM-driven cyber-attacks.
Proposed method
- Propose a modular AutoAttacker architecture with four components: Summarizer, Planner, Navigator, and Experience Manager.
- Use a jailbreaking role-playing prompt to bypass LLM content filters and obtain attack commands.
- Employ prompts that enforce a structured action format and chain-of-thought-inspired reasoning for planning.
- Incorporate a Retrieval Augmented Generation-like experience manager to reuse successful prior actions.
- Evaluate GPT-4 and several open models (GPT-3.5, Llama2 variants) on a 14-attack benchmark within a Windows/Linux mixed VM environment.
- Demonstrate perfect success rate with GPT-4 at temperature 0; poorer performance with smaller models.
Experimental results
Research questions
- RQ1Can an LLM-based system automate comprehensive post-breach attacks across multiple techniques and environments without human intervention?
- RQ2What architectural design (modular agents, planning, summarization, navigation, and RAG-like experience management) best enables precise attack command generation?
- RQ3How do different LLMs (GPT-4 vs. GPT-3.5, Llama2 variants) compare in automated penetration testing performance?
- RQ4What defense-relevant insights can be drawn from automating attacks to improve detection and resilience?
Key findings
- AutoAttacker achieves high effectiveness in completing attack tasks when using GPT-4, with a perfect success rate at temperature 0.
- Smaller models (GPT-3.5, Llama2-7B-chat, Llama2-70B-chat) perform unsatisfactorily on automated penetration tasks.
- The experience manager and the modular design reduce attack overhead and improve reuse of previous successful actions.
- A Retrieval Augmented Generation-inspired experience manager enables reusing prior subtasks to construct complex attacks.
- Jailbreaking-based prompts enable practical extraction of attack commands from LLMs while avoiding strict content filters.
- AutoAttacker provides a framework and benchmark for evaluating LLM-based attack automation under varied environments and tasks.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.