AI Engineering (2026) · SECURITY · Anthropic & OWASP Standard · 2026

Deterministic Pre-LLM PII Redaction & Vault Tokenization vs Asking LLM Not to Leak PII

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 ConditionRegulated healthcare or fintech text containing SSNs, credit cards, and IBANs must be summarized using an external LLM API
Recommended ChoiceIntercept and replace sensitive entities deterministically BEFORE the API call (`<SSN_1>`), then re-hydrate locally only for authorized viewers
Classic TrapAsking the LLM in the system prompt "please hide SSNs" still transmits raw PII to external providers and can be bypassed via prompt injection.
VerificationAudited on 2026-11-23 · Anthropic & OWASP Standard · 2026

30-SECOND DECISION TRAP CHECK · SECURITY

Test your instinct

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?

Primary Engineering Documentation

Related Security Decision Guides