PII Guard leverages the power of LLMs to detect and manage Personally Identifiable Information (PII) in logs efficiently. Unlike traditional methods, it intelligently analyzes log data, ensuring compliance with data privacy regulations like GDPR while providing accurate detection of sensitive information.
PII Guard is an innovative tool utilizing Large Language Models (LLMs) to detect and manage Personally Identifiable Information (PII) within logs, effectively supporting both data privacy initiatives and compliance with GDPR.
Developed as an exploratory personal project, PII Guard leverages the capabilities of the gemma:3b model, operated through Ollama, to intelligently identify PII in various log formats—both structured and unstructured. This approach enhances traditional detection methods, offering improved accuracy over conventional regex-based systems.
PII Guard encompasses a wide range of sensitive information:
full-name, first-name, last-name, username, email, phone-number, address, etc.racial-or-ethnic-origin, political-opinion, religious-belief, health-data, and more.national-id, passport-number, credit-card, bank-account, etc.ip-address, mac-address, browser-fingerprint.license-plate data.PII Guard is easy to set up. Launch the complete stack using a simple command:
make all-in-up
Shutting down the stack is similarly straightforward:
make all-in-down
This setup includes essential services such as PostgreSQL, Elasticsearch, RabbitMQ, and the PII Guard dashboard.
A web interface is available to interact with the tool at http://localhost:3000, along with an API endpoint located at http://localhost:8888/api/jobs. Sample logs can be submitted via cURL to test the PII detection functionalities.
The repository is organized into several key components, including APIs, dashboards, and LLM prompt templates, available through clear directory links within the project.
Contributions, feedback, and suggestions for improvements are highly encouraged. Bug reports and feature requests are vital for the ongoing enhancement of the PII Guard tool.
No comments yet.
Sign in to be the first to comment.