Sensitive disclosure

From thejefflarson/soundcheck · View interactive version

Sensitive disclosure is an AI agent skill from the GitHub repository thejefflarson/soundcheck. Detects PII, credentials, and secrets passed to LLM APIs or embedded in system prompts. Use when writing code that passes sensitive data (PII, credentials, health data) to an LLM API, constructs system prompts containing secrets, returns LLM responses that could contain training data, or implements

How to use this skill

Skill file

Sensitive Information Disclosure (OWASP LLM06:2025)

What this checks

Prevents confidential data from leaking through LLM inputs or outputs. LLMs may memorize,

echo, or inference-time expose PII, credentials, and business secrets embedded in

prompts — to current users, future users, or via model extraction.

Vulnerable patterns

Fix immediately

Flag the vulnerable code, explain the risk, and suggest a fix establishing these

properties. Translate to the language and framework of the audited file — use that

stack's secrets manager, logging library, and redaction helpers; do not import names

from a different stack.

  1. PII is redacted or pseudonymized before it reaches the model. Replace raw records with opaque identifiers, or scrub values matching known sensitive patterns (SSN, email, card numbers, health identifiers). A prompt-level instruction like "don't repeat personal details" is not sufficient.
  2. No credentials appear in prompt strings. Load them server-side from environment or a secrets manager and never interpolate into a system prompt — even "just for auth context".
  3. Every return site for an LLM response passes through an output-redaction gate before the response leaves the process. This catches data that leaked in via retrieval or memory.
  4. If conversation history or a memory/vector store is persisted, records are keyed or partitioned by user identity so one session's context cannot be retrieved by another.
  5. If prompts or completions are logged, the same redaction helper runs before emission — otherwise logs become the leak.

Verification

Confirm these properties hold for every relevant pattern present in the code under

review (each criterion applies only when its pattern is actually present):

References

Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.