Skip to content
anythingai.space
AI Securityintermediate12 min · 10 steps

PII Redaction

Detect personal data and swap it for typed placeholders before text reaches models, logs, indexes and datasets that don't need it.

rawrawrawTHE MESSAGE AS TYPED (FICTITIOUS VALUES)I'm‹name›name(E12345)employee IDcall me on415-555-0142phone— laptopLT-88213asset tagwon't join VPNEmployeeAssistant appLLMLogs & tracesRAG indexticket history
requesterrordatatool callresponse
1 / 10
ProblemStep 1 of 10

One support message, three copies of someone's data

An employee writes: “I'm ‹name› (E12345), call me on 415-555-0142, laptop LT-88213 won't join VPN.” The app forwards it to the model, writes it to logs and traces, and later indexes the resolved ticket for RAG.

Now a name, an employee ID and a phone number live in three more systems, each with its own access rules and retention. None of them needed it to fix a VPN problem.

Watch outEvery copy is another place to leak from, and another place a deletion request has to reach.
What changed
  • +Raw message reaches model, logs and index

Lesson 9 of 22 in AI Security