HackSynth: LLM Agent and Evaluation Framework for Autonomous Penetration Testing

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Muzsai, Lajos, Imolai, David, Lukács, András
Format: Preprint
Published: 2024
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866916503202299904
author Muzsai, Lajos
Imolai, David
Lukács, András
author_facet Muzsai, Lajos
Imolai, David
Lukács, András
contents 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.
format Preprint
id arxiv_https___arxiv_org_abs_2412_01778
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle HackSynth: LLM Agent and Evaluation Framework for Autonomous Penetration Testing
Muzsai, Lajos
Imolai, David
Lukács, András
Cryptography and Security
Artificial Intelligence
68M25
I.2.1; K.6.5
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.
title HackSynth: LLM Agent and Evaluation Framework for Autonomous Penetration Testing
topic Cryptography and Security
Artificial Intelligence
68M25
I.2.1; K.6.5
url https://arxiv.org/abs/2412.01778