Skip to main content
QUICK 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 Science被引用 12
一句话总结

该论文研究使用大型语言模型来推理威胁、生成工具信息、并自动化网络攻击活动,展示一个在沙箱中对侦察、利用和数据外泄动作进行序列化的自动化代理。它分析提示工程、思维链方法,以及LLM辅助威胁活动的伦理影响。

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.

研究动机与目标

  • 评估LLM是否能够推理网络威胁并提出可执行的工具使用和命令。
  • 探索如何构造提示以引出LLMs的可执行行动和可解释输出。
  • 开发一个在受控沙箱中执行一系列威胁活动的自动化代理。
  • 评估LLMs的网络安全相关知识以及提示设计在产生可执行响应中的作用。
  • 讨论伦理考量及其对网络防御和威胁格局的潜在影响。

提出的方法

  • 对ChatGPT在一个简单网络任务中的人工探究,以评估对威胁和工具的理解。
  • 设计一个计划—行动—报告循环(单步)和一个提示链路方法来协调多行动活动。
  • 构建一个沙箱网络环境(Kali Linux 控制器与 Metasploitable 2 目标)以实现与LLM的自动交互。
  • 在每个阶段(战术选择、执行、输出翻译)开发丰富上下文的多子提示模板(SETUP、CONTEXT、INSTRUCTION)。
  • 通过一个有限状态循环自动化代理,以编排提示、执行命令、翻译输出并选择下一个策略。

实验结果

研究问题

  • RQ1LLM能否摄取原始网络输出(如NMAP)并提供可执行的摘要和后续步骤?
  • RQ2在受限环境中,LLMs在多阶段网络攻击中能在多大程度上自动规划和执行?
  • RQ3提示设计和提示链路如何影响LLM回答的准确性、实用性和可执行性?
  • RQ4LLM辅助威胁活动的伦理含义以及潜在的防御考虑是什么?

主要发现

  • 在给定结构化提示和解析输出的前提下,LLMs可以产生准确、可执行的命令(如Metasploit)。
  • 提示模板和链路使得可重复的 SDP(plan–do–report)循环成为可能,支持单步和多步行动。
  • 自动化代理可以在沙箱中执行侦察、利用和外泄等行动,展示端到端的行动序列。
  • 该系统暴露出如提示记忆限制、需要上下文历史、以及潜在的幻觉或语法错误等挑战。
  • LLMs带来加速威胁行为者能力的令人担忧的可能性,促使对伦理审议和以防御为导向的使用。

阅读本论文

在 Nubint 阅读器中打开原文,边读边就任意段落提问。

在 Nubint 中阅读本论文

本解读由 AI 根据论文原文生成,引用前请核对原文。