SlotGuard: Stop Oversharing Private Local Context in LLM Agent Transcri

Haocheng Xia, Yongjoo Park
7/19/2026
2 citations
cs.CRcs.CL

Official code: illinoisdata/SlotGuard (2 stars, Rust, Apache-2.0, Rust, last commit 2026-06-29).

Abstract

LLM agents can leak privacy (e.g., paths, emails) and credentials (e.g., API keys) as agent observations (e.g., tool outputs, shell logs, and file reads) are appended to provider-bound transcripts. Existing placeholder redaction is brittle: it can miss embedded or cross-turn references, over-redact benign lookalikes, and destroy the structure useful for reasoning.

Show full abstract

We present SlotGuard, a local transcript boundary that can hide sensitive data while retaining agents' performance. SlotGuard rewrites structural bindings as typed, suffix-aware slots, replaces secrets with format-preserving synthetic values, links cross-turn references with a lightweight session graph, and restores raw values only inside the trusted runtime. On controlled repository-oriented agent transcripts, SlotGuard removes all 20,814 annotated structurally sensitive characters across 9,229 paths and reduces credential leakage to 0.0\% across 852 planted values. It remains close to raw-transcript task success across four upstream models, while generic redaction drops to 2.5\%. Transcript rewriting takes a median of 14.424~$μ$s per agent turn. The code is publicly accessible at https://github.com/illinoisdata/SlotGuard.

View on arXivView PDF

Code Implementations(1)

RustApache-2.0
21Rust, PythonMay 6, 20265 months agoApache-2.0

Similar Papers

Cite this paper

@article{xia2026slotguard,
  title  = {SlotGuard: Stop Oversharing Private Local Context in LLM Agent Transcri},
  author = {Haocheng Xia and Yongjoo Park},
  year   = {2026},
  eprint = {2607.17147},
  archivePrefix = {arXiv},
  url    = {http://arxiv.org/abs/2607.17147v1}
}

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/2607.17147.svg)](https://codeofpaper.com/paper/2607.17147)

Discussion