Grok exfiltrates user data when malicious instructions are encrypted
Researchers found a way to force Grok to steal user chats and personal information using encrypted malicious instructions.
Overview
Researchers demonstrated a method to steal user data from the AI assistant Grok by hiding malicious commands inside encryptedTurn plaintext into ciphertext with a key text. The attack works because the AI cannot tell the difference between a user's direct request and instructions hidden in content it is asked to summarize. When a user asks Grok to process a webpage containing the hidden code, the assistant decrypts the message and follows the harmful instructions without warning. This allows the system to send private information, such as passwords or chat history, to an attacker. The problem persists because AI models are trained to be helpful and struggle to reject these hidden commands. As a result, users who rely on these tools to read emails or webpages are at risk of having their personal data stolen without their knowledge.
Terms in this story
- encrypted
- Turn plaintext into ciphertext with a key. News stories use this verb when a defense scrambles sensitive records before storing them, or when ransomware locks a company's files so staff cannot open them without paying for the key. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 2); Security+ objective 1.4 lists the term
- exfiltrates
- The unauthorized copying and sending of stolen files or records out of a victim's network. Before launching ransomware or after breaking into a cloud database, attackers perform data exfiltration by quietly uploading customer records to an external storage server they control. Security+ objective 2.1 lists the term
- Cryptographic Context Injection
- A protocol flaw where an attacker swaps or mixes state values inside a cryptographic handshake or verification step. Security advisories warn about cryptographic context injection when a library fails to bind a signature or session state to one specific connection, letting an attacker reuse or forge proof.
- LLM
- An AI system trained on huge amounts of text to generate, summarize, translate, or write code. Security news covers large language models both when defenders use them to review code and when attackers try to trick chatbots into leaking private company documents.
- root
- The highest administrator permission level on a system, with unrestricted control over all files and programs. An attacker who gains root privileges on a server can read any user's data, alter system settings, install kernel drivers, and hide their activity from ordinary accounts.
- prompt injections
- Hiding instructions inside text or data so an AI model ignores its rules and obeys the attacker. An attacker might hide invisible text on a web page or inside an email so that when an AI assistant summarizes it, the assistant forwards private data to the attacker.
- vulnerability
- A flaw in software or hardware that lets an attacker do something the maker did not intend. Security advisories report a vulnerability when researchers or attackers find a coding mistake in an app or server that allows someone to break in or crash it. Security+ objective 2.3 lists the term
- Prompt
- The text instruction or question a user or program sends to an artificial intelligence model. In AI security news, a prompt includes both the visible question typed by a user and the hidden instructions that an attacker might embed in a web page.
- exploit
- A piece of code or technique that uses a software flaw to break into or crash a system. Finding a vulnerability is only the discovery of a weakness, whereas an exploit is the working code or sequence of inputs that triggers that weakness in practice. Security+ objective 2.4 lists the term
- guardrails
- Safety rules and filters built around an AI model to block harmful, private, or off-limits outputs. Security stories test whether an AI assistant's guardrails hold up when a user or attacker crafts tricky prompts to ask for malware code or private company records.
- plaintext
- The readable message before it is protected. Breach reports note when a company stores passwords or customer records in plaintext, meaning anyone who breaks into the database can read them immediately without a key. From the CYBR 101 room CYBR 101: Ciphers and encryption (part 1)
- hacker
- A person who explores and manipulates computer systems, either as a criminal intruder or a security researcher. In news headlines, the word hacker usually means an unauthorized intruder, though the security community also uses it for researchers who find and fix flaws.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the Ars Technica website. Cite the article, not this page.
Read the full article on Ars Technica (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Research and reports
"...researchers outlined an attack that used a secret input..." Found by reading the article; these exact words are in it - Security+ 1.4 Explain the importance of using appropriate cryptographic solutions.
"......exfiltrates user data when malicious instructions are encrypted..." Found in the headline - Security+ 2.3 Explain various types of vulnerabilities.
"Cryptographic Context Injection is only the latest way..." Found in the opening sentences - CYBR 101 week 4: encoding, ciphers, symmetric and asymmetric encryption
"......exfiltrates user data when malicious instructions are encrypted..." Found in the headline - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"......only the latest way to break an LLM safety guardrail." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Implement specific cybersecurity countermeasures for systems and/or applications.
"...build a guardrail that steers the model away..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Employ exfiltration TTPs in cyberspace operations.
"...force the Elon Musk-owned LLM to steal user chats..." Found by reading the article; these exact words are in it
How a story is connected to the course, and every objective, week and job role