arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2310.11409cs.CRcs.AI
收藏

大语言模型作为黑客:自主Linux提权攻击

LLMs as Hackers: Autonomous Linux Privilege Escalation Attacks

TU Wien(维也纳技术大学);Deep-Insight AI(深洞察AI)

Andreas Happe, Aaron Kaplan, Juergen Cito

AI总结:

本文提出hackingBuddyGPT,通过LLM实现自主Linux提权攻击,评估不同模型在提权任务中的性能,发现GPT-4-Turbo表现优异,接近人类渗透测试员水平。

摘要:

渗透测试对于识别系统漏洞至关重要,其中提权是一个关键子任务,用于获得对受保护资源的提升访问权限。语言模型(LLMs)通过模拟人类行为为自动化这些安全实践提供了新的途径。然而,对LLMs在执行自主Linux提权攻击中的有效性和局限性进行全面理解仍处于探索阶段。为解决这一差距,我们引入了hackingBuddyGPT,一个完全自动化的LLM驱动原型,用于自主Linux提权。我们构建了一个新颖且公开可用的Linux提权基准,使受控和可重复的评估成为可能。我们的实证分析评估了各种LLMs——GPT-3.5-Turbo、GPT-4-Turbo和Llama3——与人类专业渗透测试员和传统自动化工具的定量成功率和定性操作行为。我们调查了上下文管理策略、不同上下文大小和各种高级指导机制对LLM性能的影响。结果表明,GPT-4-Turbo表现出高度有效性,成功利用33-83%的漏洞,其性能与人类渗透测试员(75%)相当。相比之下,本地模型如Llama3表现出有限的成功率(0-33%),而GPT-3.5-Turbo实现了中等水平的成效(16-50%)。我们展示了高级指导和通过LLM驱动的反思进行状态管理显著提升了LLM的成功率。定性分析揭示了LLMs在生成有效命令方面的优势和劣势,并突显了常识推理、错误处理和多步利用中的挑战,特别是在时间依赖性方面。成本分析表明,GPT-4-Turbo可以在竞争性成本下实现与人类相当的性能,尤其是在优化上下文管理的情况下。

英文摘要:

Penetration-testing is crucial for identifying system vulnerabilities, with privilege-escalation being a critical subtask to gain elevated access to protected resources. Language Models (LLMs) presents new avenues for automating these security practices by emulating human behavior. However, a comprehensive understanding of LLMs' efficacy and limitations in performing autonomous Linux privilege-escalation attacks remains under-explored. To address this gap, we introduce hackingBuddyGPT, a fully automated LLM-driven prototype designed for autonomous Linux privilege-escalation. We curated a novel, publicly available Linux privilege-escalation benchmark, enabling controlled and reproducible evaluation. Our empirical analysis assesses the quantitative success rates and qualitative operational behaviors of various LLMs -- GPT-3.5-Turbo, GPT-4-Turbo, and Llama3 -- against baselines of human professional pen-testers and traditional automated tools. We investigate the impact of context management strategies, different context sizes, and various high-level guidance mechanisms on LLM performance. Results show that GPT-4-Turbo demonstrates high efficacy, successfully exploiting 33-83% of vulnerabilities, a performance comparable to human pen-testers (75%). In contrast, local models like Llama3 exhibited limited success (0-33%), and GPT-3.5-Turbo achieved moderate rates (16-50%). We show that both high-level guidance and state-management through LLM-driven reflection significantly boost LLM success rates. Qualitative analysis reveals both LLMs' strengths and weaknesses in generating valid commands and highlights challenges in common-sense reasoning, error handling, and multi-step exploitation, particularly with temporal dependencies. Cost analysis indicates that GPT-4-Turbo can achieve human-comparable performance at competitive costs, especially with optimized context management.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑