Repository navigation
Releases
Releases · nithin42/PII-Radar
v0.6.0 — Universal AgentGuard & Enterprise Secret Detection
What's New in v0.6.0
Universal AgentGuard Engine
- Framework-agnostic runtime guardrail evaluator (
AgentGuard) designed for agent outputs, LLM completion filters, and synthetic evaluation pipelines. - Implements the universal evaluator contract via
EvaluationResult.to_dict()returning{"result": bool, "passed": bool, "score": float, "reason": str, "violations": list}. - Drop-in compatibility for Future AGI, LangChain, CrewAI, DeepEval, and Ragas.
Enterprise Secret Leakage Detection
- Added
detect_secrets_in_text()compliant with OWASP LLM06 and token entropy checks:- AWS Access Keys & STS session tokens (
AKIA...,ASIA...) - GitHub Personal Access & Fine-Grained tokens (
ghp_...,github_pat_...) - OpenAI modern project and standard secret keys (
sk-proj-...) - Anthropic Claude API keys (
sk-ant-api03-...) - Stripe live API keys (
sk_live_...) - Slack bot/user tokens (
xoxb-...,xoxp-...) - Google Cloud / Maps API keys (
AIza...) - RSA/EC/OPENSSH Private Keys (
BEGIN PRIVATE KEYblocks) - JWT tokens with header verification
- AWS Access Keys & STS session tokens (
- Built-in documentation placeholder immunity (ignores
AKIAIOSFODNN7EXAMPLE, SHA hashes, and UUIDs).
Cryptographic Card Checksum (Luhn Mod-10)
- Enhanced credit card detector supporting formatted spaced/dashed groups with full Luhn validation to eliminate false positives.
Benchmark & Reliability
- 100% test pass rate across 79 tests with 92% coverage.
- Thread-safe concurrent execution under multi-worker loads (< 5 ms latency).## What's New in v0.6.0
Universal AgentGuard Engine
- Framework-agnostic runtime guardrail evaluator (
AgentGuard) designed for agent outputs, LLM completion filters, and synthetic evaluation pipelines. - Implements the universal evaluator contract via
EvaluationResult.to_dict()returning{"result": bool, "passed": bool, "score": float, "reason": str, "violations": list}. - Drop-in compatibility for Future AGI, LangChain, CrewAI, DeepEval, and Ragas.
Enterprise Secret Leakage Detection
- Added
detect_secrets_in_text()compliant with OWASP LLM06 and token entropy checks:- AWS Access Keys & STS session tokens (
AKIA...,ASIA...) - GitHub Personal Access & Fine-Grained tokens (
ghp_...,github_pat_...) - OpenAI modern project and standard secret keys (
sk-proj-...) - Anthropic Claude API keys (
sk-ant-api03-...) - Stripe live API keys (
sk_live_...) - Slack bot/user tokens (
xoxb-...,xoxp-...) - Google Cloud / Maps API keys (
AIza...) - RSA/EC/OPENSSH Private Keys (
BEGIN PRIVATE KEYblocks) - JWT tokens with header verification
- AWS Access Keys & STS session tokens (
- Built-in documentation placeholder immunity (ignores
AKIAIOSFODNN7EXAMPLE, SHA hashes, and UUIDs).
Cryptographic Card Checksum (Luhn Mod-10)
- Enhanced credit card detector supporting formatted spaced/dashed groups with full Luhn validation to eliminate false positives.
Benchmark & Reliability
- 100% test pass rate across 79 tests with 92% coverage.
- Thread-safe concurrent execution under multi-worker loads (< 5 ms latency).
v0.5.0 — Azure Blob Storage & Event Hubs Stream Redactor
🎉 What's New in v0.5.0
☁️ Azure Storage & Event Hubs Integrations
AzureBlobStreamRedactor: Real-time PII scanning and masking of CSV/JSON blobs in Azure Storage containers (AzureBlobStreamRedactor).AzureEventHubHandler: Low-latency PII redaction pipeline for streaming telemetry in Azure Event Hubs (AzureEventHubHandler).- Optional Extras: Added
pip install "pii-radar[azure]"andpip install "pii-radar[all]". - 3D Architecture Diagrams: Added official 3D Azure solution architecture flows to documentation.
📦 Installation
pip install "pii-radar[azure]"v0.4.1 — IPv6 Detection & Optional Parquet Extra
What's Changed in v0.4.1
🔍 IPv6 Pattern Matching & Parquet Extra
- IPv6 Detection: Added 128-bit IPv6 address regex detection.
- Optional Extra: Made
pyarrowoptional (pip install "pii-radar[parquet]").
📦 Installation
pip install "pii-radar[parquet]"v0.4.0 — Luhn Mod-10 Validation & Audit Sampling
What's Changed in v0.4.0
🔒 Algorithmic Checksums & Rapid Sampling
- Luhn Mod-10 Verification: Validates credit card numbers to eliminate 16-digit order/account false positives.
- IPv4 Bounds Validation: Enforces 0-255 octet bounds checking.
- DOB Column Heuristics: Contextual matching on column headers (
dob,birth,bday). --sample NFlag: Rapid sampling limit for massive multi-gigabyte files.
v0.3.0 — Auto-Redaction & Structured CSV Reporting
What's Changed in v0.3.0
🔒 Auto-Redaction & CSV Reporting
--redactFlag: Generates sanitized copies of input files with masked PII strings.--reportFlag: Exports structured CSV audit report of all detected matches.
v0.2.0 - Parquet, Confidence Scoring & CI/CD Integration
What's Changed
✨ New Features
- Parquet file support (.parquet, .pq) via PyArrow
- Per-detection confidence scoring with color-coded terminal display
--fail-on-detectflag for GitHub Actions / pre-commit CI/CD gates- Recursive directory scanning (
pii-radar scan data/) - JSON output mode (
--output json) for scripting and automation
🐛 Bug Fixes
- Fixed false positives for version strings in IP detection (#1)
- Fixed UTF-16 / latin-1 encoding errors on Windows CSV files
📦 Install
pip install pii-radar==0.2.0
Full Changelog: v0.1.0...v0.2.0
v0.1.0 - Initial Release
🎉 First stable release of pii-radar
✨ Features
- Detects 6 PII types: EMAIL, PHONE, SSN, CREDIT_CARD, IP_ADDRESS, DATE_OF_BIRTH
- Supports CSV and JSON files
- Beautiful Rich terminal output with confidence scores
--reportflag saves matches to CSV--redactflag creates sanitized CSV copies- GitHub Actions CI across Python 3.9–3.12
📦 Install
pip install pii-radar==0.1.0