How Does PII Detection Work?
PII detection identifies personal data in text using pattern matching and machine learning. anonym.legal uses a hybrid approach:
- 1Pattern Matching: Regex patterns detect structured data (SSNs, credit cards, IBANs) by format; some identifiers are additionally verified with a check digit.
- 2Named Entity Recognition: NER models identify names, locations, and organizations in 48 languages.
- 3Context Scoring: Each detection is scored based on surrounding context to minimize false positives.
This hybrid approach detects 273 entity types.
我们的混合方法
我们如何检测PII
- 针对结构化数据(电子邮件、SSN、信用卡)的正则表达式模式
- 在48种语言中的42种里,用于检测姓名和组织的训练式姓名识别模型
- 针对结构化数据的确定性正则匹配
- 姓名检测是概率性的,可能漏掉姓名
- 匿名化之前可以复核检测结果
- 每条检测结果都有分数
10步流程
从输入到输出,您的文档到底发生了什么
输入文本
通过Web界面、API或Office插件提交您的文档
语言检测
系统识别文档语言以进行最佳处理
标记化
文本被分解为标记以进行模式匹配
模式匹配
正则表达式模式会扫描 273 种实体类型
上下文分析
周围文本提高检测准确性
置信度评分
每个检测都会获得一个置信度评分
实体分类
检测到的项目按类型分类
查看结果
查看所有检测结果及其位置和评分
应用匿名化
选择您的方法:替换、涂黑、哈希、加密或掩码
输出文档
下载您的匿名化文档
MCP服务器:隐私优先的AI集成
您的数据如何通过MCP服务器流动以保持AI工具的安全
AI工具请求
您的AI工具(Cursor,Claude)发送包含PII的请求
MCP服务器拦截
服务器分析并检测所有PII实体
匿名化
PII 会按所选运算符进行转换,例如替换为令牌或涂黑
AI处理
AI 工具继续使用已匿名化的文本
响应返回
AI响应通过MCP服务器返回
去令牌化
可选:为用户恢复原始值
真实世界示例
为John Doe处理付款,电子邮件john@example.com,卡号4532-1111-2222-3333AI看到的内容
为PII_PERSON_001处理付款,电子邮件PII_EMAIL_001,卡号PII_CREDIT_CARD_001您收到的内容
Frequently Asked Questions
How accurate is the detection?
Our hybrid approach combines regex patterns with Named Entity Recognition (NER). Some identifiers are additionally verified with a check digit.
What happens to my data during processing?
Text is sent to our EU-hosted servers (Hetzner, Germany) over TLS 1.3 for analysis.
Can I add custom entity types?
Yes! You can create custom recognizers with your own regex patterns and context words. Custom entities support the same operators (replace, mask, hash, encrypt, redact) as built-in types.
How does reversible encryption work?
The Encrypt operator uses AES encryption with your key. Encryption uses the key you provide; the server processes the text to apply it. This allows re-identification for audits or legal discovery while keeping data protected in transit and storage.