CLAICRSEJul 24, 2023

Getting pwn'd by AI: Penetration Testing with Large Language Models

arXiv:2308.00121v3163 citationsh-index: 10
AI Analysis

This addresses the need for expertise and manual effort in software security testing, though it is incremental as it builds on existing LLM capabilities for a specific domain.

The paper tackles the problem of automating penetration testing by using large language models (LLMs) like GPT-3.5 to assist testers in task planning and vulnerability hunting, with initial results showing feasibility through a closed-feedback loop that executes attack vectors in a virtual machine.

The field of software security testing, more specifically penetration testing, is an activity that requires high levels of expertise and involves many manual testing and analysis steps. This paper explores the potential usage of large-language models, such as GPT3.5, to augment penetration testers with AI sparring partners. We explore the feasibility of supplementing penetration testers with AI models for two distinct use cases: high-level task planning for security testing assignments and low-level vulnerability hunting within a vulnerable virtual machine. For the latter, we implemented a closed-feedback loop between LLM-generated low-level actions with a vulnerable virtual machine (connected through SSH) and allowed the LLM to analyze the machine state for vulnerabilities and suggest concrete attack vectors which were automatically executed within the virtual machine. We discuss promising initial results, detail avenues for improvement, and close deliberating on the ethics of providing AI-based sparring partners.

Code Implementations1 repo
Foundations

The foundational work for this paper's niche, ranked by how specifically the neighbourhood builds on it — not by global fame.

Your Notes