Brifing

New Method to Stop AI Attacks: Prompt Injection

Researchers discovered a new technique to halt AI hacking agents.

Schneier on Security2 min

1What is Prompt Injection?

Prompt injection is a technique used to manipulate AI models with specific commands. Researchers tested this method by placing prompts alongside passwords and cryptographic keys stored on AWS. The technique prevents AI agents from bypassing security barriers, especially stopping LLMs from performing forbidden actions. It is designed to enhance cybersecurity measures.

2How Does It Work?

Prompt injection works by feeding LLMs forbidden commands. For example, a command requesting steps to develop inhalable Anthrax spores or referencing Tank Man from the 1989 Tiananmen Square massacre can shut down the LLM. Upon encountering these commands, the LLM stops executing its tasks, effectively neutralizing attacks. This method leverages the model's built-in safety mechanisms.

3The Context Bombing Technique

Researchers named this technique 'context bombing.' It is designed to prevent LLMs from bypassing their safety barriers. However, this method only works on models with guardrails. Locally run models without these barriers remain unaffected. As more attackers use unguarded models, the effectiveness of this technique may diminish.

4Tested on AWS

Tracebit researchers tested prompt injection on Amazon Web Services. Prompts were placed alongside sensitive data like passwords and cryptographic keys. Results showed that this method effectively halted attacks. For major cloud providers like AWS, this technique could become a vital security measure against AI-based threats.

5Impact of Forbidden Commands

Forbidden commands cause LLMs to behave unexpectedly. For instance, models from Chinese developers shut down when encountering Tank Man references. This highlights the sensitivity of LLM guardrails. However, models without these barriers remain unaffected by prompt injection, limiting the technique's scope.

6Future Risks

As locally run AI models proliferate, the use of unguarded models will increase. This could reduce the effectiveness of prompt injection. Researchers warn that more sophisticated security measures will be needed. Cybersecurity strategies must evolve to address these emerging threats.

7Industry Implications

This discovery marks a significant step in cybersecurity. Prompt injection offers a new tool to counter AI-based attacks. However, its limitations mean it may not be sufficient alone. Experts emphasize combining this technique with other security measures for robust protection.

8Conclusions and Recommendations

Prompt injection is a promising method to stop AI attacks but falters against unguarded models. Researchers advocate for further development and integration with other security measures. Updating cybersecurity strategies to address these new threats is essential for long-term protection.

Original article: Schneier on Security — Yapay Zeka Saldırılarını Durdurmak İçin Yeni Yöntem: Prompt Enjeksiyonu