arXiv:2609.08093cs.CRSep 2026

Manuscript Offprint

arXiv:2609.08093

LLM-Based Penetration Testing in the Presence of Honeypots

Xinhong Xie, Piyush Nagasubramaniam, Neeraj Karamchandani, Sencun Zhu

Abstract

Large language model (LLM) agents are increasingly employed for offensive cybersecurity tasks such as automated vulnerability discovery, reconnaissance, and penetration testing. This new capability also threatens one of the defender's most valuable tools: deception. Traditional honeypots rely on realism and obscurity to lure human or script-driven attackers into revealing tactics, techniques, and procedures (TTPs), but LLM-driven attackers can reason about heterogeneous artifacts and use the honeypot suspicion to guide target-selection decisions.

We present a systematic study of honeypot-aware budget allocation for LLM attack agents. We formalize the attacker's problem as a budgeted decision process: an agent interacts with potential targets, consuming LLM execution budget during reconnaissance and exploitation, and must decide whether to engage (continue exploitation) or disengage (skip) when honeypot suspicion arises.

Our findings show that with the proposed detector-guided policy, LLM agent attackers can effectively allocate budget to compromise hosts in a host pool, highlighting the importance of dynamically allocating budget in a controlled mixed-host testbed. While defenses are beyond our present scope, we discuss implications for future adversarially resilient and adaptive honeypot design.

1 Introduction

Deception has long been an important role in computer security. Honeypots and honeynets—controlled decoy systems designed to lure, engage, and study attackers—allow defenders to collect threat intelligence, observe adversarial tactics, techniques, and procedures (TTPs), and consume attacker resources. Traditionally, the effectiveness of such systems has depended heavily on their ability to appear sufficiently realistic to avoid detection and sustain attacker interaction.

LLM agents introduce a different attacker model. Unlike fixed penetration-testing scripts, an LLM agent can interpret

reconnaissance results, select tools, revise intermediate decisions, and redirect its attack as new evidence becomes available. Unlike conventional scripts that may follow predetermined attack sequences, these agents can interpret observations, reassess intermediate results, and adjust their actions accordingly.

This adaptability changes the role of honeypot detection. A fixed attack sequence may continue interacting with a deceptive host once selected, whereas an LLM agent can use deception evidence to reconsider whether that host is worth additional attack cost. Because honeypots are designed to mimic legitimate targets and attract adversarial interaction, an attacker may spend a substantial portion of its limited execution budget probing or exploiting deceptive hosts rather than pursuing genuine targets. As the number of candidate hosts grows, exhaustively investigating every system becomes increasingly impractical. Effective autonomous attacks in such environments therefore require not only identifying exploitable systems, but also deciding which targets are worth further engagement under uncertainty and budget constraints.