RedAct: Redacting Agent Capability Traces for Procedural Skill Protection

Shuwen Xu, Zhitao He, Yi R. FungarXiv 2026

TL;DR

Public execution traces of LLM agents inadvertently leak proprietary procedural knowledge, allowing downstream users to clone specialized skills without model access. To combat this, the authors introduce RedAct, a framework that selectively rewrites agent traces to abstract sensitive information while preserving auditability, paired with behavioral watermarks to track unauthorized trace reuse. Tested on a new benchmark, RedAct successfully reduces stolen skill utility to baseline levels while maintaining over 91% of critical audit evidence.

What Problem Does This Paper Address?

When AI agents are deployed in high-stakes domains like biomedicine, finance, or software engineering, they rely on highly curated "skills"—structured packages of workflows, formulas, and validation heuristics. To build user trust and allow for debugging, developers often release agent execution traces (logs of what the agent thought, what tools it called, and what it observed).

However, these traces create a massive security vulnerability: black-box trace disclosure. An adversary or competitor can analyze these public logs to distill and replicate the agent's proprietary workflows and heuristics without ever having access to the model's weights or skill files. The core challenge is finding a way to release auditable, trustworthy traces for verification without giving away the corporate crown jewels.

Problem motivation: Raw traces enable skill distillation, whereas RedAct protects traces via selective rewriting and watermarking.

Methods

The authors propose RedAct (Redacting Agent Capability Traces), a two-layer framework designed to protect released traces:

  1. Key-Information-Guided Rewriting: Instead of generically summarizing or shortening a trace, RedAct uses an LLM-based Key-Item Locator to scan the private skill package and identify task-specific sensitive items (e.g., exact formulas, thresholds, specific API choices). After a lightweight human review to deduplicate these items, an LLM-based Rewriter replaces these sensitive details with natural-sounding, generalized descriptions. Crucially, it leaves tool names, execution order, and final answers intact so the trace remains fully auditable.
  2. Behavioral Watermarking: To track downstream trace reuse, RedAct injects functionally neutral behaviors ("hooks") into the traces. If a downstream student model is trained on these watermarked traces, it will mimic these unique behaviors when triggered by specific activation phrases. The authors implement both Standalone hooks (e.g., arbitrary environment checks) and Contextual hooks (e.g., specific self-correction phrases after an error).
Overview of the CapTraceBench construction and the two-layer RedAct framework.

Datasets

To evaluate this defense, the authors introduced CapTraceBench (Capability Traces Benchmark), a specialized dataset containing:

  • 75 long-horizon tasks across 23 task families and 7 distinct domains (including Life Sciences, Chemistry, Engineering, and Finance).
  • 154 curated skills paired with automatic verifiers to measure task progress.
  • 3,783 successful teacher trajectories used to simulate trace release and downstream cloning attacks.
Taxonomy and difficulty statistics for CapTraceBench across seven domains.

Key Insights and Ideas

  • Raw Traces are Vulnerable Attack Surfaces: Downstream agents utilizing trace reuse methods (like single-agent skill extraction or multi-agent evolution) can recover enough procedural knowledge from raw traces to nearly close the performance gap with an "Oracle" agent that has direct access to the skill files.
  • Hard Tasks are the Real Battleground: The risk of capability leakage is heavily pronounced in complex, hard tasks. On easy tasks, general LLM capabilities suffice; on hard tasks, raw traces provide the critical "procedural scaffolding" (debugging choices, intermediate checks) that allows student models to succeed.
  • Generic Rewriting Fails: An ablation study revealed that simply asking an LLM to generically shorten or rewrite a trace still leaves behind enough implicit signal for downstream models to reconstruct skills. Explicitly locating and targeting key information before rewriting is mandatory for effective protection.

Key Results

  • Suppression of Skill Transfer: RedAct successfully reduces the Normalized Skill Transfer (NST)—the performance boost an attacker gets from stealing skills—from 44.7%–67.1% on raw traces down to below 0% (non-positive utility), effectively neutralizing the cloning attack.
Normalized Skill Transfer (NST) across different model backends, showing that RedAct eliminates the procedural advantage of raw traces.
  • High Audit Integrity: Despite stripping out the proprietary logic, RedAct preserves 91.0%–96.6% of audit evidence (final answers, tool names, verifier paths, and schema fields), proving that traces don't need to be collapsed into uninformative "answer-only" summaries to be secure.
Release integrity metrics demonstrating high audit preservation and operational stability alongside sensitive content removal.
  • Robust Provenance Tracking: Standalone behavioral watermarks (like Env Check) achieved 93.6%–100.0% true detection rates in fine-tuned student models, with a false alarm rate of at most 1.9%.

Limitations and Future Work

While RedAct performs exceptionally well on CapTraceBench, the authors note a few limitations:

  • Controlled Environments: The benchmark relies on structured tasks with automatic verifiers. Real-world deployments feature noisier traces, shifting tool environments, and less reliable verifier feedback.
  • Contextual Watermark Decay: Contextual hooks (behaviors conditioned on specific tool errors or results) are harder for student models to retain during training compared to standalone hooks, though they offer lower false-alarm risks.

Future work will focus on developing more resilient contextual triggers and testing provenance tracking on larger open-source student models and real-world deployment logs.

Summary updated

BibTeX
@misc{xu2026redact,
  author = {Shuwen Xu and Zhitao He and Yi R. Fung},
  title = {{RedAct: Redacting Agent Capability Traces for Procedural Skill Protection}},
  year = {2026},
  eprint = {2606.10813},
  archivePrefix = {arXiv},
  url = {https://arxiv.org/abs/2606.10813},
}
Figure