Lion Cipher Lab

Detect and redact PII with Microsoft Presidio

Why it matters

The advice "don't feed secrets to AI" is easy to say and hard to actually do -- the moment you are pasting a support ticket, a log line, or a spreadsheet row into a model, the sensitive bits are buried in the middle of text you do want to send. PII detection is the control that closes that gap: instead of trusting yourself to spot every name, email, and card number by eye, you run the text through a tool that finds those entities for you and blanks them out before the data goes anywhere. Microsoft Presidio is a widely used open-source version of exactly this, and learning it turns a good…

What you'll learn

Steps in this lab

  1. The control behind "don't feed secrets to AI"
  2. Meet Presidio: an analyzer and an anonymizer
  3. Install Presidio
  4. Write a sample text you own
  5. Analyze the text for PII entities
  6. Know what the entity labels mean
  7. Redact and anonymize the text
  8. Where this fits -- and the instinct to keep

Open the full interactive lab →