Presidio — PII Detection & Anonymization
Microsoft's open-source PII detection and anonymization engine supporting 50+ entity types across text, images, and structured data.
Presidio — PII Detection & Anonymization
Microsoft Presidio provides fast, contextual analysis and anonymization of personally identifiable information (PII) in text and images. It powers data-privacy compliance in LLM pipelines, ETL workflows, and document processing systems.
Key Features
- 50+ built-in recognisers: names, emails, phone numbers, SSN, credit cards, IBANs, IP addresses, medical identifiers, and more
- Custom recogniser support (regex, spaCy NER, stanza, transformer models)
- Anonymization operators: redact, replace, hash, encrypt, mask, synthetic data substitution
- Image redaction module (DICOM, PDF, raster)
- REST API (
presidio-analyzer+presidio-anonymizeras microservices)
Quick Start
from presidio_analyzer import AnalyzerEngine
from presidio_anonymizer import AnonymizerEngine
analyzer = AnalyzerEngine()
results = analyzer.analyze(text="My phone is 212-555-1234", language="en")
anonymizer = AnonymizerEngine()
print(anonymizer.anonymize(text="My phone is 212-555-1234", analyzer_results=results))
# Output: My phone is <PHONE_NUMBER>
npx ai-supply add presidio-pii-anonymizer
Curated mirror of the open-source Presidio (MIT). Get it from the source.
Compromise signals — malicious or tampered code (leaked secrets, backdoors, a dropped executable) — reduce the score, and known dependency CVEs carry a bounded penalty (they warrant review but never QUARANTINE — update the dependency to clear). Other dangerous-by-capability traits are risk surface, expected for some capabilities. Every finding is mapped to its OWASP control below.
Findings mapped to the OWASP Top 10 for LLM Applications (2025) and the OWASP Machine Learning Security Top 10. Expand any flagged control for the exact findings — compromise reduces the score; expected/risk-surface do not, except a known CVE, which carries a small bounded penalty (high/critical → Review).
The same gate an agent runs before installing (POST /api/v1/trust/presidio-pii-anonymizer/check). Click a policy:
Consume Presidio — PII Detection & Anonymization programmatically. Authenticate with an API key or session — see Authorize an agent.
# Agents: CHECK BEFORE YOU INSTALL (no auth) — score, grade, level, capability manifest
curl https://ai-supply.store/api/v1/trust/presidio-pii-anonymizer
# Gate against your org policy (returns { pass, violations })
curl -X POST https://ai-supply.store/api/v1/trust/presidio-pii-anonymizer/check \
-H "Content-Type: application/json" \
-d '{"minGrade":"B","denyPermissions":["shell"],"denyUnknownEgress":true}'
# CLI
npx ai-supply add presidio-pii-anonymizer
# REST (install → download)
curl -X POST https://ai-supply.store/api/v1/listings/presidio-pii-anonymizer/install \
-H "Authorization: Bearer $AIM_KEY"
# MCP tool
install_listing({ "slug": "presidio-pii-anonymizer" })OpenAPI spec →Curated mirror — latest upstream source. See the repository for tagged releases.