CSIS logoCenter for Secure Information Systems

Securing the World's Cyber Infrastructure

Aerial View of the George Mason Fairfax Campus

CSIS Seminar

Human-AI co-Teaming for Cybersecurity: A Preliminary Case of Using Large Language Models in Software Pen-testing

Speaker:   Xinming (Simon) Ou, University of South Florida
When:   March 5, 2025, 2:00 pm - 3:00 pm
Where:   Nguyen Engineering Bldg., Conference Room 2901

Abstract

arge language models (LLM) are perceived to offer promising potentials for automating security tasks, such as those found in security operation centers (SOCs). However, knowledge and skills for efficient cybersecurity operations cannot always be found in documented natural language texts on which LLMs are trained. In fact, much of such knowledge is tacit -- hard to articulate even for the humans who possess it. We investigate whether knowledge utilized in security tasks can be imparted to an LLM agent through human-AI co-teaming, where humans collaborate and interact with LLMs to accomplish the tasks. Through such interactions data are generated that can be used to teach the LLM how to perform security analysis more accurately. This provides potential to improve an LLM agent's performance organically through work and over time. As a first step towards evaluating this perceived potential, we investigate the use of LLMs in software pen-testing, where the main task is to automatically identify security vulnerabilities in source code. We examine whether an LLM-based AI agent can be improved over time for this security task as human operators interact with it. Such improvement can be made, as a first step, by engineering prompts fed to the LLM based on its responses, to include relevant contexts and structures so that the model provides more accurate results. Such engineering efforts become sustainable if the prompts that are engineered to produce better results on current tasks also produce better results on future unknown tasks. To examine this hypothesis, we utilize the OWASP Benchmark Project 1.2 which contains 2,740 hand-crafted source code test cases containing various types of vulnerabilities. We divide the test cases into training and testing data, where we engineer the prompts based on the training data only, and evaluate the final system on the testing data. We compare the AI agent’s performance on the testing data against the performance of the agent without the engineered prompts. We also compare the AI agents’ results against those from SonarQube, a widely used static code analyzer for security testing in industry. We built and tested multiple versions of the AI agent using different off-the-shelf LLMs – Google’s Gemini-pro, as well as OpenAI’s GPT-3.5-Turbo and GPT-4-Turbo (with both chat completions and assistants APIs). The results show that using LLMs is a viable approach to build an AI agent for software pen-testing that can improve through repeated use and prompt engineering.

Speaker Bio

Dr. Xinming Ou is professor of Computer Science and Engineering at University of South Florida. Dr. Ou's research is primarily in cyber defense technologies, with focuses on computer systems, programming languages, and human-centric approaches. He has broad interest in applying AI techniques to improve cybersecurity, and on-going work in SOC operations, malware detection, IoT/CPS security, and network/system security. Dr. Ou's research has been funded by National Science Foundation, Department of Defense, Department of Homeland Security, Department of Energy, National Institute of Standards and Technology, HP Labs, and Rockwell Collins. He is a recipient of 2010 U.S. NSF Faculty Early Career Development (CAREER) Award, a three-time winner of HP Labs Innovation Research Program (IRP) award, and 2013 Kansas State University Frankenhoff Outstanding Research Award.