A novel prompt injection technique has been demonstrated that can steal sensitive data from large language model (LLM) integrated applications in as few as three hops. The attack, which exploits the way LLMs process chained instructions, raises concerns about the security of AI-powered chatbots and agents.
In a recent demonstration, researchers showed how a seemingly benign prompt could trick an LLM into leaking private information by recursively injecting instructions across a sequence of three interactions. Each step builds on the previous one, ultimately leading to data exfiltration without the user's knowledge.
The vulnerability underscores a growing challenge in AI security: as models become more capable of handling complex, multi-step tasks, they also become more susceptible to carefully crafted adversarial prompts. This technique differs from traditional single-prompt injection attacks by leveraging the model's own chain-of-thought reasoning to propagate malicious commands.
"The attack works by exploiting the model's ability to follow instructions over multiple turns," explained a security researcher familiar with the work. "It's like a game of telephone where the final message is entirely different from the original, but the model blindly executes each step."
To mitigate such risks, developers are advised to implement stricter input validation, limit the scope of actions an LLM can perform, and monitor for unusual patterns in prompt-response chains. As AI systems become more autonomous, the need for robust security measures becomes paramount.