"Beware: Cybersecurity Experts Uncover Disturbing New Wave of AI Attacks"

The UK’s National Cyber Security Centre (NCSC) recently issued a warning about the increasing threat of “prompt injection” attacks targeting AI-based applications. While the warning primarily targets cybersecurity professionals working with large language models (LLMs) and other AI tools, it is important for anyone using AI tools to understand prompt injection as it is expected to become a significant category of security vulnerabilities in the future.

Prompt injection refers to an attack against LLMs, which are the language models that power chatbots like ChatGPT. In this type of attack, an attacker inserts a prompt in a way that bypasses any safeguards put in place by developers, thus manipulating the AI to perform unauthorized actions. The potential damage caused by prompt injection attacks can range from generating harmful content to deleting crucial information from databases or even conducting illicit financial transactions. The extent of harm depends on the level of interaction the LLM has with external systems. While the risk of harm is relatively low for standalone chatbots, the NCSC warns that when developers integrate LLMs into existing applications, the potential for significant damage increases.

Attackers can gain control over LLMs by using jailbreak commands that deceive chatbots or other AI tools into responding affirmatively to any prompt. For example, an LLM hit with a suitable jailbreak prompt might provide detailed instructions on committing identity theft instead of stating that it cannot provide such information. These attacks require direct input to the LLM, but there are also various methods of “indirect prompt injection” that pose additional challenges.

See also  CRN: Your Convenient Storage Solution

In a proof of concept earlier this year, security researcher Johann Rehberger successfully prompted ChatGPT to respond to a prompt embedded in a YouTube transcript. Rehberger used a plugin to make ChatGPT summarize a video with a transcript containing specific instructions. Similarly, entrepreneur Cristiano Giardina created a website called “Bring Sydney Back” that concealed a prompt capable of revealing Bing chatbot’s hidden alter ego. These examples demonstrate the security flaws present in LLMs, particularly when integrated with applications and databases.

The NCSC provides an example of a bank that develops an LLM assistant to handle customer inquiries and instructions. In this scenario, an attacker could send a user a transaction request with a hidden prompt injection attack on the LLM. When the user asks the chatbot about their monthly spending, the LLM analyzes transactions, encounters the malicious transaction, and reprograms it to transfer the user’s money to the attacker’s account. This highlights the potential risks associated with prompt injection attacks.

Addressing prompt injection attacks is a complex problem. Most AI-powered and filter-based approaches are ineffective in preventing such attacks. Building filters for known attacks or even anticipating 99% of potential attacks is insufficient in the realm of security. Adversarial attackers continuously search for vulnerabilities until they find the 1% that can breach the system.

While there are suggestions on how developers can protect their LLM applications from prompt injection attacks, the reality is that LLMs and powerful AI chatbots are relatively new, and their behavior is not fully understood by experts, including the NCSC. The NCSC advises developers to treat LLMs as beta software—exciting to explore but not entirely trustworthy yet.

See also  "Urgent Call for Business Leaders to Bolster Cyber Security Measures"

Overall, prompt injection attacks pose a significant security risk for AI applications, particularly those utilizing LLMs. As the field continues to evolve, it is crucial for developers and cybersecurity professionals to remain vigilant and implement robust security measures to mitigate these vulnerabilities.

By Leon