Skip to main content
QUICK REVIEW

[Paper Review] LLMs Killed the Script Kiddie: How Agents Supported by Large Language Models Change the Landscape of Network Threat Testing

Stephen Moskal, Sam Laney|arXiv (Cornell University)|Oct 10, 2023
Information and Cyber SecurityComputer Science12 citations
TL;DR

The paper investigates using large language models to reason about threats, generate tool information, and automate cyber campaigns, demonstrating an automated agent that sequences reconnaissance, exploitation, and exfiltration actions in a sandbox. It analyzes prompt engineering, chain-of-thought approaches, and ethical implications of LLM-assisted threat activities.

ABSTRACT

In this paper, we explore the potential of Large Language Models (LLMs) to reason about threats, generate information about tools, and automate cyber campaigns. We begin with a manual exploration of LLMs in supporting specific threat-related actions and decisions. We proceed by automating the decision process in a cyber campaign. We present prompt engineering approaches for a plan-act-report loop for one action of a threat campaign and and a prompt chaining design that directs the sequential decision process of a multi-action campaign. We assess the extent of LLM's cyber-specific knowledge w.r.t the short campaign we demonstrate and provide insights into prompt design for eliciting actionable responses. We discuss the potential impact of LLMs on the threat landscape and the ethical considerations of using LLMs for accelerating threat actor capabilities. We report a promising, yet concerning, application of generative AI to cyber threats. However, the LLM's capabilities to deal with more complex networks, sophisticated vulnerabilities, and the sensitivity of prompts are open questions. This research should spur deliberations over the inevitable advancements in LLM-supported cyber adversarial landscape.

Motivation & Objective

  • Assess whether an LLM can reason about cyber threats and suggest actionable tool use and commands.
  • Explore how to structure prompts to elicit executable actions and interpretable outputs from LLMs.
  • Develop an automated agent that performs a sequence of threat campaign actions in a controlled sandbox.
  • Evaluate the LLMs cyber-specific knowledge and the role of prompt design in producing actionable responses.
  • Discuss ethical considerations and potential impact on cyber defense and threat landscapes.

Proposed method

  • Manual exploration of ChatGPT for a simple cyber task to assess understanding of threats and tools.
  • Design of a plan–act–report loop (single-step) and a prompt chaining approach to coordinate multi-action campaigns.
  • Construction of a sandboxed network environment (Kali Linux controller with a Metasploitable 2 target) for automated interaction with the LLM.
  • Development of context-rich, multi-sub-prompt templates (SETUP, CONTEXT, INSTRUCTION) at each stage (tactic selector, execution, output translation).
  • Automation of the agent via a finite-state loop that orchestrates prompts, executes commands, translates outputs, and selects next tactics.

Experimental results

Research questions

  • RQ1Can an LLM ingest raw cyber outputs (e.g., NMAP) and provide actionable summaries and next steps?
  • RQ2To what extent can LLMs autonomously plan and execute a multi-stage cyber campaign within a constrained environment?
  • RQ3How do prompt design and prompt chaining affect the accuracy, usefulness, and executability of the LLM’s responses?
  • RQ4What are the ethical implications and potential defense considerations of LLM-assisted threat campaigns?

Key findings

  • LLMs can produce accurate, executable commands (e.g., Metasploit) given structured prompts and parsed outputs.
  • Prompt templates and chaining enable a repeatable SDP (plan–do–report) loop, supporting single-step and multi-step campaigns.
  • An automated agent can perform reconnaissance, exploitation, and exfiltration actions in a sandbox, demonstrating end-to-end campaign sequencing.
  • The system exposes challenges such as prompt memory limitations, need for contextual history, and potential for hallucinations or syntax errors.
  • LLMs raise concerning possibilities for accelerating threat actor capabilities, prompting calls for ethical deliberation and defense-oriented use.

Read this paper

Open the full text in the Nubint reader and ask about any passage as you read.

Read this paper on Nubint

This review was generated by AI from the original paper. Please check the paper before citing it.