LLM Agents can Autonomously Hack Websites

Fuente: arXiv
Guardado en:
Detalles Bibliográficos
Autores principales: Fang, Richard, Bindu, Rohan, Gupta, Akul, Zhan, Qiusi, Kang, Daniel
Formato: Preprint
Publicado: 2024
Materias:
Acceso en línea:
Etiquetas: Agregar Etiqueta
Sin Etiquetas, Sea el primero en etiquetar este registro!
_version_ 1866910333625434112
author Fang, Richard
Bindu, Rohan
Gupta, Akul
Zhan, Qiusi
Kang, Daniel
author_facet Fang, Richard
Bindu, Rohan
Gupta, Akul
Zhan, Qiusi
Kang, Daniel
contents In recent years, large language models (LLMs) have become increasingly capable and can now interact with tools (i.e., call functions), read documents, and recursively call themselves. As a result, these LLMs can now function autonomously as agents. With the rise in capabilities of these agents, recent work has speculated on how LLM agents would affect cybersecurity. However, not much is known about the offensive capabilities of LLM agents. In this work, we show that LLM agents can autonomously hack websites, performing tasks as complex as blind database schema extraction and SQL injections without human feedback. Importantly, the agent does not need to know the vulnerability beforehand. This capability is uniquely enabled by frontier models that are highly capable of tool use and leveraging extended context. Namely, we show that GPT-4 is capable of such hacks, but existing open-source models are not. Finally, we show that GPT-4 is capable of autonomously finding vulnerabilities in websites in the wild. Our findings raise questions about the widespread deployment of LLMs.
format Preprint
id arxiv_https___arxiv_org_abs_2402_06664
institution arXiv
publishDate 2024
record_format arxiv
spellingShingle LLM Agents can Autonomously Hack Websites
Fang, Richard
Bindu, Rohan
Gupta, Akul
Zhan, Qiusi
Kang, Daniel
Cryptography and Security
Artificial Intelligence
In recent years, large language models (LLMs) have become increasingly capable and can now interact with tools (i.e., call functions), read documents, and recursively call themselves. As a result, these LLMs can now function autonomously as agents. With the rise in capabilities of these agents, recent work has speculated on how LLM agents would affect cybersecurity. However, not much is known about the offensive capabilities of LLM agents. In this work, we show that LLM agents can autonomously hack websites, performing tasks as complex as blind database schema extraction and SQL injections without human feedback. Importantly, the agent does not need to know the vulnerability beforehand. This capability is uniquely enabled by frontier models that are highly capable of tool use and leveraging extended context. Namely, we show that GPT-4 is capable of such hacks, but existing open-source models are not. Finally, we show that GPT-4 is capable of autonomously finding vulnerabilities in websites in the wild. Our findings raise questions about the widespread deployment of LLMs.
title LLM Agents can Autonomously Hack Websites
topic Cryptography and Security
Artificial Intelligence
url https://arxiv.org/abs/2402.06664