Study PII classification
Jump & context
Week 5: RAG ACLs, PII UUID Gateway, Training-Data Poisoning & Agent/MCP Foundations
The five hours
- 01
Concepts & system design
60 min· read · map the mechanismR16 — Microsoft Presidio analyzer & anonymizer
R17 — NIST Privacy Framework control functions
Read the assigned sections; map the mechanism, threat model and trade-offs.
- 02
Project implementation
120 min· build · integrate · debugBuild the reusable
privacy-gateway(D4) using Microsoft Presidio + custom validators. Replace detected PII with tenant/session-scoped opaque UUID tokens, store mappings in an access-controlled vault, and restore only for authorized callers and permitted output fields.Build, integrate, debug and improve the increment in the active project.
- 03
Security lab
60 min· attack your own systemTest partial PII matches, token collisions, cross-session restoration attempts, and log leakage using synthetic SSNs/credit cards.
Test the abuse case, failure path, authorization bypass or resource limit.
- 04
Verification & evidence
30 min· test · record evidenceD4gateway test suite proving zero raw PII reaches the model or logs, and cross-tenant token restoration fails closed.Add or run regression tests; record the 9-point evidence record.
- 05
Deliberate practice & Socratic review
30 min· explain aloud · update gapsAnswer the 8 Socratic questions without notes: What? Why? How? What if? Why not? How can I prove it? Where can it break? What have I learned?
Re-explain the hardest concept aloud, inspect one edge case, update the gap log.
- total5 h
Read today · inside the concepts block
R16 R17Analyzer, anonymizer, custom PII recognizers, and probabilistic detection false-positive/negative limits.
Identify-P, Govern-P, Control-P, Communicate-P, and Protect-P lifecycle controls.
Read only the named sections needed for today's task. Reading sits inside the 60-minute concepts block; it is not extra time.
Free resources for this day
5 curated- docsMicrosoft Presidio Documentation · docs homeHome - Presidio
Maps the analyzer, anonymizer and custom recognizer interfaces you compose into the privacy gateway, including the operator set used for token substitution.
R16checked 2026-11-11 - articleNIST · framework overviewPrivacy Framework | NIST
Provides the Identify-P through Protect-P control families that justify which PII categories are detected, where mappings live, and who may restore them.
R17checked 2026-11-11 - videoM&M Tech · 7 minData Anonymization With Microsoft Presidio - Full Step By Step Tutorial
Shows analyzer results feeding the anonymizer with operator configs, the exact call shape for swapping detected entities for opaque tokens.
R16checked 2026-11-11 - videoTAUVOD · 25 minPresidio - Automated identification and anonymization of PII data at scale
The Presidio project lead explains recognizer composition, confidence scores and context words, which is how you reason about false-positive and false-negative limits.
R16checked 2026-11-11 - repoPresidio (GitHub) · source + samplesdata-privacy-stack/presidio
Includes custom recognizer and operator samples plus the deanonymizer path, giving you working code for the tenant-scoped vault and restore-on-authorized-call flow.
R16checked 2026-11-11
Evidence record · 9-point standard
A lab is complete only when it produces evidence. Installing PyRIT, Garak, Presidio or TransformerLens is not completion. Saved on this device only.
Day notes
emptyThe two source formulations
verbatim · nothing summarisedProject & Deliverable Target
P1 (Primary) & P2 (Consumer) | `D4` (PII UUID-Swapping Gateway) | S5
Core Implementation
Build the reusable privacy-gateway (D4) using Microsoft Presidio + custom validators. Replace detected PII with tenant/session-scoped opaque UUID tokens, store mappings in an access-controlled vault, and restore only for authorized callers and permitted output fields.
Security Lab
Test partial PII matches, token collisions, cross-session restoration attempts, and log leakage using synthetic SSNs/credit cards.
Verification & Evidence
D4 gateway test suite proving zero raw PII reaches the model or logs, and cross-tenant token restoration fails closed.
Read Today (60m Concepts Block)
R16 (Microsoft Presidio analyzer & anonymizer), R17 (NIST Privacy Framework control functions).
---