Back to search

Queen's University at Kingston

Pioneering Autonomous Penetration Testing with Large Language Models through Prompt Engineering and Agentic System Design

Abstract

dc:description.abstract

Autonomous Cyber Operations(ACO) aims to solve the ongoing cyber defense challenges caused by the prevalent cybersecurity talent shortage. Designing structured prompts with agentic systems can effectively direct Large Language Models(LLMs) behavior to navigate the attack through complex, multiphase operations without human oversight, leading to a fully autonomous cyber penetration testing and continuous cybersecurity posture monitoring. Current approaches to automated cyber-attacks lack the flexibility and adaptability to navigate the complex attack phases. Research in ACO has explored Artificial Intelligence(AI)-driven solutions, but integration of LLMs and prompt engineering strategies into these systems do not exist to date. This thesis introduces a novel phase-driven prompting methodology, called PromptPilot, paired with techniques such as Chain of Thought(CoT), Tree of Thought(ToT), and ReAct, to guide LLMs through the Cyber Kill Chain. Real-time trials in the simulated environment Emulated Cybernetic Hostile Operations(E.C.H.O) confirmed the viability of these prompt-driven autonomous penetration testing through exploitation. These results highlight that this emerging approach is viable, efficient, and precise in task execution across the attack phases, toward developing ACO agents. This research establishes the first framework for AI-driven autonomous penetration testing, emphasizing prompt and agentic system design as a cornerstone in advancing automated offensive and defensive cybersecurity capabilities.

Degree

thesis:*
Department dc:contributor.department
Computing
Grantor
Queen's University at Kingston
Year dc:date.issued
2025

Author and committee

dc:creator, dc:contributor.*
Author dc:creator
  • Antar, Siam Shibly
Advisors dc:contributor.supervisor
  • Ding, Steven
  • Alaca, Furkan

Subjects

dc:subject × 2

Rights

dc:rights
Statement dc:rights
  • Attribution 4.0 International
Language dc:language.iso
eng

Identifiers

dc:identifier.*
Handle dc:identifier.uri
https://hdl.handle.net/1974/34317

Chain of custody

source
Harvested from
Queens University
Base URL
qspace.library.queensu.ca/server/oai/request
Last updated
2026-11-19
Source record
OAI-PMH GetRecord
citation

Antar, Siam Shibly. Pioneering Autonomous Penetration Testing with Large Language Models through Prompt Engineering and Agentic System Design. Queen's University at Kingston, 2025. https://hdl.handle.net/1974/34317