TrojanStego: Your Language Model Can Secretly Be A Steganographic Privacy Leaking Agent

Dominik Meier, Jan Philip Wahle, Paul Röttger, Terry Ruas, Bela Gipp
5/26/2025
14 citations
cs.CLcs.CR

No official code found. Best implementation: worta/TrojanStego (3 stars, Python, GPL-3.0, last commit 2025-09-23).

Abstract

As large language models (LLMs) become integrated into sensitive workflows, concerns grow over their potential to leak confidential information. We propose TrojanStego, a novel threat model in which an adversary fine-tunes an LLM to embed sensitive context information into natural-looking outputs via linguistic steganography, without requiring explicit control over inference inputs.

Show full abstract

We introduce a taxonomy outlining risk factors for compromised LLMs, and use it to evaluate the risk profile of the threat. To implement TrojanStego, we propose a practical encoding scheme based on vocabulary partitioning learnable by LLMs via fine-tuning. Experimental results show that compromised models reliably transmit 32-bit secrets with 87% accuracy on held-out prompts, reaching over 97% accuracy using majority voting across three generations. Further, they maintain high utility, can evade human detection, and preserve coherence. These results highlight a new class of LLM data exfiltration attacks that are passive, covert, practical, and dangerous.

View on arXivView PDF

Code Implementations(1)

worta/TrojanStegoCommunity100%
GPL-3.0

Repository for the paper TrojanStego:Your Language Model Can Secretly Be A Steganographic Privacy Leaking Agent

31PythonMay 26, 20251 years agoGPL-3.0

Similar Papers

Cite this paper

@article{meier2025trojanstego,
  title  = {TrojanStego: Your Language Model Can Secretly Be A Steganographic Privacy Leaking Agent},
  author = {Dominik Meier and Jan Philip Wahle and Paul Röttger and Terry Ruas and Bela Gipp},
  year   = {2025},
  eprint = {2505.20118},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2505.20118v4}
}

Add a badge to your README

Shows whether official code is linked for this paper.

Code of Paper badge
[![Code of Paper](https://codeofpaper.com/badge/2505.20118.svg)](https://codeofpaper.com/paper/2505.20118)

Discussion