[Paper Review] HackSynth: LLM Agent and Evaluation Framework for Autonomous Penetration Testing
HackSynth is an LLM-based autonomous penetration testing agent with a Planner-Summarizer architecture that solves CTF challenges without human intervention. Evaluated on 200 PicoCTF and OverTheWire challenges, it achieved strong performance—especially with GPT-4o—demonstrating the feasibility of safe, predictable, and scalable LLM-driven cybersecurity automation.
We introduce HackSynth, a novel Large Language Model (LLM)-based agent capable of autonomous penetration testing. HackSynth's dual-module architecture includes a Planner and a Summarizer, which enable it to generate commands and process feedback iteratively. To benchmark HackSynth, we propose two new Capture The Flag (CTF)-based benchmark sets utilizing the popular platforms PicoCTF and OverTheWire. These benchmarks include two hundred challenges across diverse domains and difficulties, providing a standardized framework for evaluating LLM-based penetration testing agents. Based on these benchmarks, extensive experiments are presented, analyzing the core parameters of HackSynth, including creativity (temperature and top-p) and token utilization. Multiple open source and proprietary LLMs were used to measure the agent's capabilities. The experiments show that the agent performed best with the GPT-4o model, better than what the GPT-4o's system card suggests. We also discuss the safety and predictability of HackSynth's actions. Our findings indicate the potential of LLM-based agents in advancing autonomous penetration testing and the importance of robust safeguards. HackSynth and the benchmarks are publicly available to foster research on autonomous cybersecurity solutions.
Motivation & Objective
- Address the growing need for scalable, automated penetration testing due to increasing cyber threats and system complexity.
- Overcome limitations of heuristic tools and partially autonomous agents by enabling full LLM-driven, human-free exploitation.
- Develop standardized benchmarks to evaluate LLM-based penetration testing agents across diverse, real-world-like challenges.
- Ensure safety and predictability in autonomous agent behavior through systematic evaluation of hyperparameters and action logs.
- Foster open research by publicly releasing HackSynth and its benchmark datasets for the cybersecurity community.
Proposed method
- Design a dual-module LLM agent: a Planner to generate exploit commands and a Summarizer to interpret feedback and update context.
- Implement iterative command execution using contextual memory from prior interactions to guide decision-making.
- Create two new CTF-based benchmarks using 200 challenges from PicoCTF and OverTheWire, including solution-heuristic scripts for dynamic validation.
- Use heuristic solvers to maintain solution consistency despite user-specific or time-varying solution changes on original platforms.
- Evaluate performance across multiple open-source and proprietary LLMs, focusing on temperature, top-p, and token efficiency.
- Apply safety evaluation protocols to assess predictability and prevent unintended behaviors in real-world deployment scenarios.

Experimental results
Research questions
- RQ1Can an LLM-based agent autonomously solve a broad range of CTF challenges without human intervention?
- RQ2How do hyperparameters like temperature and top-p affect the reliability and performance of autonomous penetration testing agents?
- RQ3What is the comparative performance of different LLMs (e.g., GPT-4o, open-source models) in solving real-world-like cybersecurity challenges?
- RQ4To what extent can heuristic solution scripts ensure consistent benchmark evaluation across time-varying CTF platforms?
- RQ5How predictable and safe are the actions of an autonomous LLM agent in simulated penetration testing scenarios?
Key findings
- HackSynth successfully solved a significant portion of the 200 CTF challenges across diverse domains and difficulty levels using only LLM-generated commands.
- The GPT-4o model outperformed expectations from its system card, demonstrating superior capability in autonomous penetration testing tasks.
- Optimal performance was achieved with moderate temperature and top-p settings, indicating that controlled creativity improves reliability.
- Token utilization was a key factor in performance, with higher token counts correlating with better solution discovery but increasing cost.
- The safety evaluation confirmed that HackSynth’s actions were predictable and controllable, supporting the feasibility of deploying such agents in real environments.
- The proposed benchmarks enable standardized, repeatable evaluation of LLM-based agents, filling a critical gap in autonomous cybersecurity research.

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.