Skip to content

Service: redact a task's substituted secret values from observation, diff and error text (defense in depth) #406

Open

Description

@SSFSKIM

Problem

A {{secret:KEY}} substitution is request-local. The service keeps no registry of the values it substituted and does no output filtering. If a substituted value later shows up in an observation (typed into an unmasked field, echoed by an app, or read from a provider that doesn't mask), it reaches the agent's text. The client function-hook guard can scrub stored values, but only after IPC, the cache and render, and only where that guard is loaded. Found in cursor235's password-walk audit at 290303c.

Work

Defense in depth in the service: for the life of a task, hold the values substituted in it (in memory only, never written), and redact any exact occurrence from observation text, diffs, error strings and the stderr tail before they leave the service. Redaction prints {{secret:KEY}} in place of the value. Clear the set at end_task and shutdown.

Proof

  • Unit: a substituted value that appears in a rendered observation, a diff and an error string comes out as the handle in all three.
  • Live: type {{secret:…}} into an unmasked TextEdit field; the next observation shows the handle, not the value.
  • Values shorter than 4 chars are not redacted, and the docs say so (false-positive bound).

Out of scope

  • Anti-exfiltration guarantees: an app can transform the value (case, encoding), and this filter promises only exact matches.

Related: #109 #405

Activity

  1. added
    enhancement
    status:ready-for-implementer
    priority:P3
    on Nov 18, 2026
  2. added
    expected
    ready-to-work
    and removed
    status:ready-for-implementer
    on Dec 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementexpectedpriority:P3ready-to-work

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions