Out of the Cage: How Stochastic Parrots Win in Cyber Security Environments

Maria Rigaki, Ondřej Lukáš, Carlos A. Catania, Sebastian Garcia
8/23/2023
cs.CRcs.AIcs.CL

No official code found. Best implementation: stratosphereips/NetSecGame (70 stars, GPL-2.0, last commit 2026-04-22).

Abstract

Large Language Models (LLMs) have gained widespread popularity across diverse domains involving text generation, summarization, and various natural language processing tasks. Despite their inherent limitations, LLM-based designs have shown promising capabilities in planning and navigating open-world scenarios. This paper introduces a novel application of pre-trained LLMs as agents within cybersecurity network environments, focusing on their utility for sequential decision-making processes. We present an approach wherein pre-trained LLMs are leveraged as attacking agents in two reinforcement learning environments. Our proposed agents demonstrate similar or better performance against state-of-the-art agents trained for thousands of episodes in most scenarios and configurations. In addition, the best LLM agents perform similarly to human testers of the environment without any additional training process. This design highlights the potential of LLMs to efficiently address complex decision-making tasks within cybersecurity. Furthermore, we introduce a new network security environment named NetSecGame. The environment is designed to eventually support complex multi-agent scenarios within the network security domain. The proposed environment mimics real network attacks and is designed to be highly modular and adaptable for various scenarios.

View on arXivView PDF

Code Implementations(1)

GPL-2.0

An environment simulation for networks security tasks for development and testing AI based agents. Part of AI Dojo project

7013R, ShellJun 23, 20226 months agoGPL-2.0
network-securityreinforcement-learning-environments

Similar Papers

Cite this paper

@article{rigaki2023cage,
  title  = {Out of the Cage: How Stochastic Parrots Win in Cyber Security Environments},
  author = {Maria Rigaki and Ondřej Lukáš and Carlos A. Catania and Sebastian Garcia},
  year   = {2023},
  eprint = {2308.12086},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2308.12086v2}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2308.12086.svg)](https://codeofpaper.com/paper/2308.12086)

Discussion