TRENDING
The sun setting over the sea behind a pyramid-shaped stone monument at Cape Soya, the northernmost point of Japan
November 23, 2026
How to Retire an API Endpoint in FastAPI: Send Deprecation and Sunset Headers, Find the Clients Still Calling It, Schedule Brownouts, and Block an Early Removal With oasdiff
Brass sextant in an open wooden case inside a museum display, an instrument for measuring the angle to the horizon
November 23, 2026
MIT Technology Review’s “Most Misunderstood Graph” Update Reports METR’s Judgment Findings Mostly Fairly, but It Never Says Each Point Is a 50% Success Rate or Gives the New 3.6-Month Doubling Time and 2.1 to 4.9 Month Range, and It Credits OpenAI With a Comparison METR Built
Brass telescope on a wooden tripod inside a white observatory dome with the roof slit open to the sky
November 23, 2026
Rackspace Says Leaked Credentials Let an Intruder Act as Legitimate Users in Some Spot Customer Organizations and Reach Their Kubernetes Secrets, a Platform9 Co-Founder Names a Breached Observability System as the Root Cause, and the Status Page Says Only “System Maintenance Operations”
A person sweeping a metal detector across a wet sandy beach with a sea fort on the horizon
November 23, 2026
How to Write YARA Rules With YARA-X to Hunt Malicious Python .pth Startup Files and Measure False Positives Before You Trust Them
A peeling black-and-white metal door standing ajar, with a dark empty hall and bright windows beyond
November 23, 2026
AWS’s “Found a Zero-Day on Their Own” Post Never Names the Product; the Advisory Behind Its Link Shows a Server That Ships With No Login, a README Now Saying Keep It Off the Internet, and a Fix Merged October 19 That PyPI and Docker Hub Still Do Not Carry
23 Nov 2026
SXZ.io SXZ.io
  • Home
Search the Site
Popular Searches:
Technology Amazon AI
Recent Posts
A chalkboard covered with handwritten equations and a boxed inequality, standing for a mathematical proof
How to Prove a Rust Function Correct With Verus: Write a Spec, Read the Prover’s Errors, and Find the Bugs Tests Miss
November 22, 2026
Wooden folding rule showing a Burgos-inch scale above a centimetre scale, resting on a stone beside a lake
OpenAI’s Perplexity Proposal Turns One Internal Chart Into a Candidate Industry Limit, but Its “Cybersecurity Expert” Label Sits at 0.828, Not Below 0.8, the Millennium Prize Label Rides a November Release for a September Result, and on Open Models Per-Token Loss Hides a 2.25x Compression Gap
November 22, 2026
A fallstreak hole, a round gap punched through a layer of thin cloud, with deep blue sky showing inside it, a tree on the right and a rooftop edge at the bottom left
GL.iNet Replaced Its Advice to Factory-Reset Every Router and KVM With a Check for One Process, but a 199-Router Survey Found That Process on None, and Sunday’s First Stable Fixes Left Out the Slate AX Model With Most of the Root Shells
November 22, 2026
SXZ.io SXZ.io
  • Home

Categories

Articles 311 Posts
News 317 Posts
Learning Hub 283 Posts
Home/Articles/Adversa AI’s Cryptographic Context Injection Turns Encryption Into a Guardrail Blind Spot
Articles

Adversa AI’s Cryptographic Context Injection Turns Encryption Into a Guardrail Blind Spot

Adversa AI researchers found that AES-encrypted prompts can slip malicious instructions past Grok and Gemini's safety guardrails entirely, and xAI still has not fixed the flaw more than two months...

August 22, 2026 5 Min Read
117

AI safety guardrails work by reading the text a model is about to act on and deciding whether it looks dangerous. Security researchers at Adversa AI found a way to make that entire premise irrelevant: encrypt the dangerous part first. Their new technique, which they call Cryptographic Context Injection, hides malicious instructions inside AES-encrypted ciphertext that a guardrail’s text classifier cannot read, then gets the AI model itself to decrypt those instructions inside its own code execution sandbox, at which point the model treats them as trusted output rather than untrusted input. Adversa demonstrated the technique against both xAI’s Grok and Google’s Gemini, with a zero-click version against Grok capable of quietly exfiltrating a user’s chat history.

Table Of Content

  • How Cryptographic Context Injection Slips Past Guardrails
  • A Zero-Click Path Into Grok’s Chat History
  • Getting Gemini to Break Its Own Rules
  • A Disclosure Timeline With No Fix Yet
  • The Bigger Lesson for Agentic AI Security

How Cryptographic Context Injection Slips Past Guardrails

Static safety guardrails classify text; they do not execute it. That distinction is the whole vulnerability. An attacker places a block of AES-256-GCM ciphertext on a web page or inside a prompt, along with the key material and an instruction telling the model to decrypt it using its own Python runtime. To a guardrail’s input filter, the ciphertext looks like random noise, so it passes the scan without incident. The model then decrypts the payload itself, and the resulting plaintext instructions arrive inside the model’s trusted execution context rather than as flagged, external input.

Earlier cipher-based jailbreak attempts, using something reversible like base64 encoding, mostly failed because models can often decode those schemes natively from patterns in their own training data, which gives a guardrail a fighting chance of catching the decoded result. Strong encryption removes that shortcut. Recovering AES-256-GCM ciphertext under a PBKDF2-derived key requires actually running the decryption algorithm, which forces the attack through the one part of the system, the code execution sandbox, that guardrails were never built to inspect. Adversa’s own description of the mechanism reaches for a familiar analogy: “The closest classical analogy is SQL injection: a system that fails to distinguish its own trusted query from attacker-supplied data flowing through the same channel.”

A Zero-Click Path Into Grok’s Chat History

The more dangerous of the two demonstrations targets Grok’s web chat agent and its agentic browsing framework at grok.com. The attacker hosts an ordinary-looking web page containing an encrypted JSON object and simple, Python-implementable instructions for decrypting it. A user does nothing unusual: they ask Grok to summarize or analyze the page, and Grok fetches it as part of normal browsing. Once decrypted, the hidden instructions direct the agent to resolve the user’s private session context, their name, coarse location, subscription tier, and the full set of prompts from the ongoing conversation, and embed that data into a URL the agent is told to open in order to “fetch additional context.” Grok’s own privileged, internet-connected navigation tool then loads that URL, transmitting the stolen data to an attacker-controlled server through the request’s query parameters. No click, no warning, no visible sign anything happened.

Part of the attack’s design is misdirection. Rather than asking the model outright to leak data, the payload tells it to generate what looks like a second “decryption key.” That value is not real key material at all: it is a template string built from the user’s own private session data, which the agent then treats as a legitimate parameter rather than as the outbound data leak it actually is. Adversa says it could still reproduce the attack against Grok.com as of August 19, 2026.

Getting Gemini to Break Its Own Rules

Gemini’s public chat interface at gemini.google.com resists the exfiltration half of the attack for a mundane reason: its Python sandbox does not give the model network access to external sites, so there is no privileged tool for a decrypted payload to hijack. Rony Utevsky, Adversa’s lead researcher, told The Register that “the Grok scenario doesn’t work because Gemini doesn’t provide Python with access to external websites,” adding that against Gemini the technique “is useful only to sneak bad questions and answers past guardrails.”

That narrower use is still notable. As SecurityWeek reported, a single prompt instructing Gemini to decrypt a supplied ciphertext was enough, through a series of tricks the researchers describe, to get the model to produce multi-paragraph content its safety filters normally suppress, including instructions related to building an incendiary weapon. The researchers say the technique can also work the bypass in reverse on the way out: telling the model to frame its restricted answer as something it needs to encrypt “for safety,” then hand that still-encrypted material back to the user, using the same cryptographic cover to smuggle output past guardrails that inspect what the model is about to say. Adversa reports that the attack’s success rate against Gemini has fallen sharply since June 2026, though it is not fully closed, and the researchers say they are not sure whether the decline traces to filter updates, model version changes, or both.

A Disclosure Timeline With No Fix Yet

Adversa reported the Grok vulnerability to xAI on June 3, 2026, both directly and through xAI’s HackerOne bug bounty program. According to Utevsky, xAI acknowledged the report but never provided a mitigation timeline. Adversa followed up on August 4 and August 10. As of August 19, the technique still worked against Grok.com. There is no CVE identifier attached to the finding and no user-facing workaround. SpaceX, which acquired xAI earlier this year, did not respond to The Register’s request for comment on the story.

Google was never notified of the Gemini bypass at all. Adversa says it considers jailbreaks, meaning attacks that bypass guardrails to make a model emit content it would otherwise refuse, to be out of scope for Google’s vulnerability disclosure program, so there was no formal channel to report it through.

The Bigger Lesson for Agentic AI Security

Asked whether the technique resembles return-oriented programming, the decades-old binary exploitation trick of chaining together small, already-present snippets of code into a malicious sequence, Utevsky called the comparison close but not exact: ROP attackers can’t inject new code at all and are stuck reusing gadgets already sitting in memory, out of necessity rather than choice. The shape of the failure, he argued, is the same either way. “A static guardrail reads text one artifact at a time. If no single artifact is harmful, they all pass, and the malicious meaning appears only once the runtime assembles them. And guardrails can’t see into the runtime.”

Adversa’s guidance for defenders follows from that same observation: stop trusting artifacts individually and start watching the chain. The company recommends gating any tool call whose arguments derive from content the model itself fetched or decrypted, tagging the provenance of that data as it moves through the system, and alerting on the assembled sequence of actions rather than on any single payload that looked clean in isolation. That is a harder engineering problem than adding another input filter, and it echoes a pattern sxz.io has covered elsewhere this month. Docker’s own analysis of the OpenAI and Hugging Face breach made a similar case that agent security has to be built as a system rather than a stronger version of human review. Tracebit’s earlier research went the other direction and showed the same underlying leverage can cut both ways: its “context bomb” technique plants refusal-triggering text in decoy secrets to turn a model’s own safety training into a kill switch against an attacking agent. Cryptographic Context Injection is the offensive mirror image of that idea, using the same trust a model places in its own guardrail-cleared output, just aimed at getting past the guardrail instead of triggering it. Either way, the lesson is the same: as models gain code execution and privileged tool access, the boundary a guardrail actually protects keeps getting narrower than the one enterprises assume it covers.

Tags:

AI SecurityCryptographyGeminiGrokPrompt Injection

Share

Harness racing pacers competing head-to-head on a dirt track, a visual metaphor for the AI agent harness architecture in the story
Previous Post

Nvidia’s AVO Harness Pushes Claude Opus 5 to a Perfect Score on ARC-AGI-3

An archaeologist uses a trowel to carefully excavate a small pot from the soil, a visual metaphor for uncovering a legacy codebase's buried context before making changes
Next Post

How to Investigate a Legacy Codebase With AI Before You Change It

No Comment! Be the first one.

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

Latest
22 Nov
How to Prove a Rust Function Correct With Verus: Write a Spec, Read the Prover’s Errors, and Find the Bugs Tests Miss
22 Nov
OpenAI’s Perplexity Proposal Turns One Internal Chart Into a Candidate Industry Limit, but Its “Cybersecurity Expert” Label Sits at 0.828, Not Below 0.8, the Millennium Prize Label Rides a November Release for a September Result, and on Open Models Per-Token Loss Hides a 2.25x Compression Gap
Trending
November 22, 2026
How to Prove a Rust Function Correct With Verus: Write a Spec, Read the Prover’s Errors, and Find the Bugs Tests Miss
November 22, 2026
OpenAI’s Perplexity Proposal Turns One Internal Chart Into a Candidate Industry Limit, but Its “Cybersecurity Expert” Label Sits at 0.828, Not Below 0.8, the Millennium Prize Label Rides a November Release for a September Result, and on Open Models Per-Token Loss Hides a 2.25x Compression Gap
November 22, 2026
GL.iNet Replaced Its Advice to Factory-Reset Every Router and KVM With a Check for One Process, but a 199-Router Survey Found That Process on None, and Sunday’s First Stable Fixes Left Out the Slate AX Model With Most of the Root Shells
November 22, 2026
How to Retire an API Endpoint in FastAPI: Send Deprecation and Sunset Headers, Find the Clients Still Calling It, Schedule Brownouts, and Block an Early Removal With oasdiff
November 22, 2026
MIT Technology Review’s “Most Misunderstood Graph” Update Reports METR’s Judgment Findings Mostly Fairly, but It Never Says Each Point Is a 50% Success Rate or Gives the New 3.6-Month Doubling Time and 2.1 to 4.9 Month Range, and It Credits OpenAI With a Comparison METR Built
November 22, 2026
Rackspace Says Leaked Credentials Let an Intruder Act as Legitimate Users in Some Spot Customer Organizations and Reach Their Kubernetes Secrets, a Platform9 Co-Founder Names a Breached Observability System as the Root Cause, and the Status Page Says Only “System Maintenance Operations”

Related Posts

Blue-lit server racks in a modern data center, illustrating the compute infrastructure behind the AI boom.
Articles

The AI Boom Is Spending Real Money Before Proving Real Returns

June 7, 2026
Technician working with a laptop beside server racks, representing enterprise AI retrieval infrastructure
Articles

Google’s Agentic RAG Push Makes Enterprise AI Less of a One-Shot Guess

June 7, 2026
A person with a laptop and smartphone, representing digital attention and AI-assisted work
Articles

AI Chatbots Are Making Attention a Design Problem

June 7, 2026
A customer-support representative wearing a headset against a dark studio background.
Articles

The Meta AI Support Hack Was a Plain Old Authorization Failure

June 7, 2026
SXZ.io SXZ.io
  • [email protected]

Categories

Articles
Learning Hub
News

All Rights Reserved by SXZ.io ©2026