# SlotGuard: Stop Oversharing Private Local Context in LLM Agent Transcripts

DevFeed: [SlotGuard: Stop Oversharing Private Local Context in LLM Agent Transcripts](<https://devfeed.tech/articles/slotguard-stop-oversharing-private-local-context-in-llm-agent-transcripts-126894.md>)

Original publisher: [Read original article](<https://arxiv.org/abs/2607.17147>)

Author: Haocheng Xia, Yongjoo Park

Published: 2026-11-10T05:00:00Z

Content type: article

Language: en

Sources: [arXiv: Cryptography and Security](<https://devfeed.tech/sources/arxiv-cryptography-and-security.md>)

Topics: [LLM security](<https://devfeed.tech/topics/llm-security.md>)

Tags: [agent](<https://devfeed.tech/tags/agent.md>), [api-keys](<https://devfeed.tech/tags/api-keys.md>), [boundary](<https://devfeed.tech/tags/boundary.md>), [context](<https://devfeed.tech/tags/context.md>), [credential-leakage](<https://devfeed.tech/tags/credential-leakage.md>), [credentials](<https://devfeed.tech/tags/credentials.md>), [cs-cl](<https://devfeed.tech/tags/cs-cl.md>), [cs-cr](<https://devfeed.tech/tags/cs-cr.md>), [llm](<https://devfeed.tech/tags/llm.md>), [llm-agents](<https://devfeed.tech/tags/llm-agents.md>), [local](<https://devfeed.tech/tags/local.md>), [local-context](<https://devfeed.tech/tags/local-context.md>), [models](<https://devfeed.tech/tags/models.md>), [private](<https://devfeed.tech/tags/private.md>), [redaction](<https://devfeed.tech/tags/redaction.md>), [runtime](<https://devfeed.tech/tags/runtime.md>), [secrets](<https://devfeed.tech/tags/secrets.md>), [semantic](<https://devfeed.tech/tags/semantic.md>), [sensitive-data](<https://devfeed.tech/tags/sensitive-data.md>), [structure](<https://devfeed.tech/tags/structure.md>), [synthetic](<https://devfeed.tech/tags/synthetic.md>), [transcripts](<https://devfeed.tech/tags/transcripts.md>)

## AI overview

SlotGuard is a local transcript boundary designed to hide sensitive context from provider-bound LLM agent transcripts while preserving useful structure. It rewrites structural bindings as typed, suffix-aware slots, substitutes format-preserving synthetic values for secrets, links cross-turn references with a lightweight session graph, and restores raw values only inside the trusted runtime. In controlled repository-oriented transcripts, it removed all 20,814 annotated structurally sensitive characters across 9,229 paths and reduced leakage to 0.0% across 852 planted credentials. Task success stayed close to raw transcripts across four upstream models, while generic redaction fell to 2.5%. Deterministic rewriting had a median cost of 14.424 microseconds per agent turn; this excludes the optional semantic detector.

## Source excerpt

arXiv:2607.17147v2 Announce Type: replace Abstract: LLM agents can expose private local context (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. 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%. Deterministic transcript rewriting takes a median of 14.424 microseconds per agent turn, excluding the optional semantic detector. The code is publicly accessible at https://github.com/illinoisdata/SlotGuard.