@protocolwealthos/pii-guard
v0.2.0
Published
4-layer PII scanning pipeline for LLM-bound content (regex + NER + financial recognizers + allow-list)
Downloads
83
Readme
@protocolwealthos/pii-guard
4-layer PII scanning pipeline for LLM-bound content.
Protocol Wealth original work. Patent Pending USPTO #64/034,215.
Layers
- Regex — 31 deterministic patterns (SSN, CC, email, phone, crypto keys, API keys)
- NER — Named entity recognition for person names, addresses, contextual PII
- Financial Recognizers — CUSIP, account references, policy numbers (context-boosted)
- Allow-List — 60+ finance terms that should never be redacted
Modes
off— No scanningwarn— Confirm with user before sendblock— Reject message until PII removedredact— Auto-mask with<TYPE_N>placeholders
License
Apache 2.0. See ../../LICENSE.
