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.
Taming Various Privilege Escalation in LLM-Based Agent Systems: A Mandatory Access Control Framework
Hong Kong University of Science and Technology(香港科技大学);Lingnan University(岭南大学);ETH Zurich(苏黎世联邦理工学院);Zhejiang University of Technology(浙江工业大学);University of Oregon(俄勒冈大学)
FORTIS: Benchmarking Over-Privilege in Agent Skills
University of Southern California(南加州大学);University of Illinois at Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校);Adobe Research(Adobe研究);Arizona State University(亚利桑那州立大学);University of Illinois Chicago(伊利诺伊大学芝加哥分校);Johns Hopkins University(约翰霍普金斯大学)
When Lower Privileges Suffice: Investigating Over-Privileged Tool Selection in LLM Agents
Institute of Information Engineering, Chinese Academy of Sciences(中国科学院信息工程研究所);Beijing Academy of Artificial Intelligence(北京人工智能研究院);The Chinese University of Hong Kong(香港中文大学);Institute for Artificial Intelligence, Peking University(北京大学人工智能研究院);School of Cyber Security, University of Chinese Academy of Sciences(中国科学院大学网络安全学院)
The Promptware Kill Chain: How Prompt Injections Gradually Evolved Into a Multistep Malware Delivery Mechanism
Department of Software and Information Systems Engineering, Ben-Gurion University of the Negev(本·古里安大学软件与信息系统工程系);School of Electrical and Computer Engineering, Tel Aviv University(特拉维夫大学电气与计算机工程学院);Harvard Kennedy School, Harvard University, and Munk School, University of Toronto(哈佛大学哈佛肯尼迪学校及多伦多大学穆克学校)
LLM-HyPZ: Hardware Vulnerability Discovery using an LLM-Assisted Hybrid Platform for Zero-Shot Knowledge Extraction and Refinement
Department of Electrical and Computer Engineering, University of Arizona, Tucson, AZ, USA(电气与计算机工程系,亚利桑那大学);Department of Systems and Industrial Engineering, University of Arizona, Tucson, AZ, USA(系统与工业工程系,亚利桑那大学);College of Information Science, University of Arizona, Tucson, AZ, USA(信息科学学院,亚利桑那大学);School of Electrical Engineering and Computer Science, University of North Dakota, Grand Forks, ND, USA(电气工程与计算机科学学院,北达科他大学);Department of Computer Science, University of California Davis, CA, USA(计算机科学系,加州大学戴维斯分校)
The Art of the Jailbreak: Formulating Jailbreak Attacks for LLM Security Beyond Binary Scoring
Department of Computer Science, University of Texas at El Paso(德克萨斯大学埃尔帕索分校计算机科学系);School of Computing, Southern Illinois University Carbondale(南方伊利诺伊大学卡罗尔丹分校计算学院);University of Illinois Urbana-Champaign(伊利诺伊大学厄巴纳-香槟分校)