Pith. sign in

REVIEW 3 cited by

What Was Your Prompt? A Remote Keylogging Attack on AI Assistants

Not yet reviewed by Pith; the record is open.

This paper has not been read by Pith yet. Machine review is queued; the pith claim, tier, and objections will appear here once it completes.

SPECIMEN: schema-true, not a live event

T0 review · schema-true

One-sentence machine reading of the paper's core claim.

pith:XXXXXXXX · record.json · timestamp

arxiv 2403.09751 v1 pith:RMODAGPG submitted 2024-03-14 cs.CR cs.AIcs.CL

classification cs.CRcs.AIcs.CL
keywords assistantsattackmodelresponsesside-channelmicrosoftopenaisentences
verification ladder T0 review T1 audit T2 compute T3 formal

Signed reviews

No signed human review yet.

0 comments
read the original abstract

AI assistants are becoming an integral part of society, used for asking advice or help in personal and confidential issues. In this paper, we unveil a novel side-channel that can be used to read encrypted responses from AI Assistants over the web: the token-length side-channel. We found that many vendors, including OpenAI and Microsoft, have this side-channel. However, inferring the content of a response from a token-length sequence alone proves challenging. This is because tokens are akin to words, and responses can be several sentences long leading to millions of grammatically correct sentences. In this paper, we show how this can be overcome by (1) utilizing the power of a large language model (LLM) to translate these sequences, (2) providing the LLM with inter-sentence context to narrow the search space and (3) performing a known-plaintext attack by fine-tuning the model on the target model's writing style. Using these methods, we were able to accurately reconstruct 29\% of an AI assistant's responses and successfully infer the topic from 55\% of them. To demonstrate the threat, we performed the attack on OpenAI's ChatGPT-4 and Microsoft's Copilot on both browser and API traffic.

Discussion (0). Continue with ORCID to comment.

Forward citations

Cited by 3 Pith papers

Reviewed papers in the Pith corpus that reference this work. Sorted by Pith novelty score. Full citation record

  1. Spill The Beans: Exploiting CPU Cache Side-Channels to Leak Tokens from Large Language Models

    cs.CR 2025-05 reject novelty 6.0 of 10

    The paper claims a Flush+Reload attack on the LLM embedding layer can leak 80-90% of API keys and 40% of English output tokens in a single shot.

  2. Towards Action Hijacking of Large Language Model-based Agent

    cs.CR 2024-12 conditional novelty 6.0 of 10

    A RAG-based LLM application can be induced to assemble harmful SQL, code, or medical action plans from knowledge already stored in its database, with the user prompt itself carrying no forbidden words.

  3. InputSnatch: Stealing Input in LLM Services via Timing Side-Channel Attacks

    cs.CR 2024-11 conditional novelty 6.0 of 10

    A timing side-channel on shared LLM caches can partially reconstruct private user inputs in prompt-engineering and RAG services.

Pith tools