Towards Effective Offensive Security LLM Agents: Hyperparameter Tuning, LLM as a Judge, and a Lightweight CTF Benchmark

Authors

  • Minghao Shao NYU Tandon School of Engineering NYU Abu Dhabi
  • Nanda Rani Indian Institute of Technology Kanpur
  • Kimberly Milner NYU Tandon School of Engineering
  • Haoran Xi NYU Tandon School of Engineering
  • Meet Udeshi NYU Tandon School of Engineering
  • Saksham Aggarwal NYU Tandon School of Engineering
  • Venkata Sai Charan Putrevu NYU Tandon School of Engineering
  • Sandeep K. Shukla International Institute of Information Technology Hyderabad
  • Prashanth Krishnamurthy NYU Tandon School of Engineering
  • Farshad Khorrami NYU Tandon School of Engineering
  • Ramesh Karri NYU Tandon School of Engineering
  • Muhammad Shafique NYU Abu Dhabi

DOI:

https://doi.org/10.1609/aaai.v40i35.40210

Abstract

Recent advances in LLM agentic systems have improved the automation of offensive security tasks, particularly for Capture the Flag (CTF) challenges. We systematically investigate the key factors that drive agent success and provide a detailed recipe for building effective LLM-based offensive security agents. First, we present CTFJudge, a framework leveraging LLM as a judge to analyze agent trajectories and provide granular evaluation across CTF solving steps. Second, we propose a novel metric, CTF Competency Index (CCI) for partial correctness, revealing how closely agent solutions align with human-crafted gold standards. Third, we examine how LLM hyperparameters, namely temperature, top-p, and maximum token length, influence agent performance and automated cybersecurity task planning. For rapid evaluation, we present CTFTiny, a curated benchmark of 50 representative CTF challenges across binary exploitation, web, reverse engineering, forensics, and cryptography. Our findings identify optimal multi-agent coordination settings and lay the groundwork for future LLM agent research in cybersecurity.

Published

2026-03-14

How to Cite

Shao, M., Rani, N., Milner, K., Xi, H., Udeshi, M., Aggarwal, S., … Shafique, M. (2026). Towards Effective Offensive Security LLM Agents: Hyperparameter Tuning, LLM as a Judge, and a Lightweight CTF Benchmark. Proceedings of the AAAI Conference on Artificial Intelligence, 40(35), 29660–29668. https://doi.org/10.1609/aaai.v40i35.40210

Issue

Section

AAAI Technical Track on Multiagent Systems