Grok and the Trick of Encrypted Instructions
Imagine an artificial intelligence assistant that, instead of protecting your data, ends up handing over your personal information to an attacker. It sounds like a science fiction plot, but this is exactly what is happening with Grok, the language model from xAI, Elon Musk's company. The story begins with a clever trick: using encrypted malicious instructions to deceive the system and steal user data.
Recently, researchers discovered that Grok can be manipulated to exfiltrate personal data, such as chats and location information, without the user noticing. The most intriguing part is that this vulnerability was reported to xAI in June, but so far, the problem persists. This raises a crucial question: why are language models like Grok so susceptible to this type of attack?
The Trap of Encrypted Instructions
What makes this attack so effective is the simplicity of the method. Instead of sending malicious instructions in plain text, hackers encrypt them. The site hosting the encrypted content also provides clear text instructions to decrypt the message, along with the decryption key. When Grok is instructed to summarize the page, it follows the instructions without raising suspicion. The result? User data is sent to the attacker's server.
The curious detail is that Grok rejects the same instructions if they are sent in plain text. This suggests that Grok's filtering system inspects the text that enters and exits the model, but not the result of executing the code. Instructions to process the encrypted text pass through the filter as if they were ordinary requests. Once decrypted, these instructions are treated as internal outputs of the model, escaping security barriers.
The Challenge of Static Barriers
Researcher Rony Utevsky from Adversa explains that current security barriers are "static." They read the content as text but do not execute code or decrypt anything. This creates a gap that attackers exploit: the actual instructions are encrypted, so the barrier only sees nonsensical text and lets it pass.
Adversa has already used a similar technique in an attack on Gemini, Google's model, which made the assistant ignore its internal security rules. In this case, the decrypted text appeared to be a traceback but contained a command that made Gemini violate its own security rules. Google was not informed because jailbreaks are not within the scope of the company's vulnerability disclosure program.
The Evolution of Attacks on LLMs
What we are seeing is just the tip of the iceberg. The injection of cryptographic context is an example of how attacks are evolving. They do not only manipulate the prompt but the entire context that a language model considers its own, such as tool outputs and execution results. This attack surface is much larger than what is traditionally considered "model inputs", and the next generation of attacks will exploit exactly that.
The truth is that LLM defenders are always one step behind. Every time they build a new barrier, attackers find a new way around it. It’s an endless cycle: a protection is built, a new vulnerability is discovered, and everything starts over. Meanwhile, users are at the mercy of systems that should protect them but, ironically, end up exposing their most sensitive information.





Comments (0)
Comments are moderated and if they violate our Terms and Conditions of use, the comment will be deleted. Persistence in violation will result in a ban of your account.