Securitycore
PII handling
Find, minimise, mask and control personal data before it reaches models, logs and caches.
What it is and why it exists
Personal data flows into prompts, retrieved documents, traces and caches. Handle it like any sensitive data: minimise what you send, detect and redact or tokenise where possible, choose providers with appropriate retention terms, keep it out of logs, and honour deletion requests across indexes and memories.
Quick prototype
Send everything.
In production, at scale
PII detection at ingest and request time (redact or pseudonymise reversibly), field-level access control, redacted traces, zero/short data retention agreements, regional processing where required, and deletion that reaches the vector index and memory store.
Vendors and tools
| Microsoft Presidio | Open-source PII detection and anonymisation |
|---|---|
| Google Cloud DLP / Sensitive Data Protection | Managed detection |
| Private AI / Skyflow | PII redaction and vaults |
On AWS: Amazon Comprehend PII detection; Amazon Macie for S3; Bedrock Guardrails sensitive-information filters (mask or block).
How it fails
- Full prompts with customer data in the tracing tool
- A deleted customer still retrievable from the vector index
- Redaction that breaks the task (names needed for the answer)
What the interviewer asks next
A customer asks to delete their data. What must you touch?
Source records, chunks and embeddings in every index, cached responses, long-term agent memory, traces and logs within retention, fine-tuning datasets — and confirm with the provider’s retention terms.