Skip to content

Document and control sensitive prompt metadata stored in state.json #14

Description

@stevehenderson

Severity

Medium

Problem

The plugin stores the latest user prompt gist, absolute workspace path, branch, commit, hostname, and session ID in ~/.local/share/breadcrumb/state.json. File mode 0600 protects local users, but the probe deliberately reads this data through every configured SSH account and displays it in the picker.

Impact

Prompts may contain secrets, proprietary details, customer data, or incident context. The current 200-character cap limits volume but does not prevent sensitive disclosure.

Location

  • plugin/breadcrumb.ts:421-426
  • shared/state.ts:37-44
  • probe/crumb.ts:177-183

Proposed fix

Document the data exposure clearly and add a configuration to disable prompt capture or redact sensitive values. Consider minimizing stored metadata.

Activity

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

    securitySecurity-related issue

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions