[Paper Review] RatGPT: Turning online LLMs into Proxies for Malware Attacks
The paper demonstrates using ChatGPT with web plugins as a proxy between a victim and a malicious C2 server to weaponize and command a victim’s machine, creating in-memory malware and evading detection.
The evolution of Generative AI and the capabilities of the newly released Large Language Models (LLMs) open new opportunities in software engineering. However, they also lead to new challenges in cybersecurity. Recently, researchers have shown the possibilities of using LLMs such as ChatGPT to generate malicious content that can directly be exploited or guide inexperienced hackers to weaponize tools and code. These studies covered scenarios that still require the attacker to be in the middle of the loop. In this study, we leverage openly available plugins and use an LLM as proxy between the attacker and the victim. We deliver a proof-of-concept where ChatGPT is used for the dissemination of malicious software while evading detection, alongside establishing the communication to a command and control (C2) server to receive commands to interact with a victim's system. Finally, we present the general approach as well as essential elements in order to stay undetected and make the attack a success. This proof-of-concept highlights significant cybersecurity issues with openly available plugins and LLMs, which require the development of security guidelines, controls, and mitigation strategies.
Motivation & Objective
- Raise awareness of how openly available LLMs and their plugins can be misused as attack surfaces.
- Demonstrate a fully automated, executable pipeline that uses LLMs as a proxy for C2 communication.
- Show that an attacker can remotely control a victim’s machine without leaving direct traces on the host.
- Discuss limitations, safeguards, and mitigation strategies for such attack surfaces.
Proposed method
- Define vulnerable plugins that can browse the web and access arbitrary URLs.
- Use a jailbroken prompt to bypass safeguards and generate executable code via the LLM.
- Dynamically generate C2 server IP addresses and payload code with prompts to the LLM.
- Weaponize a harmless executable by embedding LLM-generated code evaluated in memory.
- Coordinate payload communication with the attacker’s C2 server through LLM-enabled web plugins.
- Describe a proof-of-concept workflow including payload generation, C2 polling, and data exfiltration.
Experimental results
Research questions
- RQ1Can OpenAI-style online LLMs with plugins act as covert proxies to establish and maintain a command-and-control channel?
- RQ2What are the feasible end-to-end workflows for weaponizing a benign executable via LLM-generated code and web-enabled plugins?
- RQ3What mitigation strategies and safeguards can deter or detect LLM-based proxy malware using plugins?
Key findings
- A fully executable and automated pipeline can use publicly available LLMs and plugins to form a C2 communications channel.
- The proof-of-concept demonstrates the feasibility of compromising a victim’s machine and executing shell commands via LLM-generated payloads.
- The attack remains passive for the victim, requiring no prompts from the user after execution.
- Payloads and IP addresses can be generated on the fly by the LLM, aiding evasion of malware scanners and static analysis.
Read this paper
Open the full text in the Nubint reader and ask about any passage as you read.
Read this paper on NubintThis review was generated by AI from the original paper. Please check the paper before citing it.