Automatic Detect PII in Real Time with Machine Learning

This post introduces a PII Detection stream processing app, PII UDFs/UDTFs for ksqlDB, and a PII SMT for Kafka Connect. These solutions leverage NLP and pattern recognition models to identify and redact Personally Identifiable Information (PII) in real-time within data streams. The PII Detection app acts as a pass-through filter, inspecting messages for PII entities and redacting them while retaining other data, and publishing entity metadata events for alerting. The ksqlDB UDFs/UDTFs (`containsPII`, `redactPII`, `extractPiiEntities`, `extractPiiEntityTypes`) provide flexibility for targeting specific fields and complex pipelining. The PII SMT for Kafka Connect removes sensitive information before data reaches Kafka brokers. These solutions support 25 entity types and can be deployed on the edge, on-premises, or in the cloud, integrating with Confluent Cloud's Stream Catalog and offering configurable deny lists and regex rules for custom entity detection.
More from the Real-time Enterprise RAG trail
- Building an Agentic SOC on a Stream
- Hemut: Building the Internet of Freight on Real-Time Data
- New in Confluent Intelligence and AI Tools: Making Agents Native to the Stream, Expanded Model Support, New Agent Skills, and Copilot
- Customer Intelligence Hub for Real-Time GTM Insights
- RAG and GenAI for Customer 360 Architecture