Quick Decision Rule: When Regulated healthcare or fintech text containing SSNs, credit cards, and IBANs must be summarized using an external LLM API, choose Intercept and replace sensitive entities deterministically BEFORE the API call (`<SSN_1>`), then re-hydrate locally only for authorized viewers.
| Trigger Condition | Regulated healthcare or fintech text containing SSNs, credit cards, and IBANs must be summarized using an external LLM API |
|---|---|
| Recommended Choice | Intercept and replace sensitive entities deterministically BEFORE the API call (`<SSN_1>`), then re-hydrate locally only for authorized viewers |
| Classic Trap | Asking the LLM in the system prompt "please hide SSNs" still transmits raw PII to external providers and can be bypassed via prompt injection. |
| Verification | Audited on 2026-11-23 · Anthropic & OWASP Standard · 2026 |
30-SECOND DECISION TRAP CHECK · SECURITY
A fintech support workflow sends raw customer messages containing Social Security Numbers and credit card numbers to a third-party LLM API, with the system prompt saying "Never repeat SSNs." Why does this still fail security review?
Prompt-level redaction neither prevents outbound PII transmission nor defends against indirect prompt injection; deterministic pre-LLM scrubbing/tokenization is required.
Trap: Asking the model to "hide PII" is NOT a compliance boundary—scrub sensitive data before it ever leaves your server.