HIPAA Guardian

Live

A PHI and PII detection engine that scans code, logs, and API responses for the 18 HIPAA Safe Harbor identifiers. It is built to catch leaks in developer artifacts before they ship.

8 3
Python HIPAA / PHI Static Analysis CI/CD AI Agent Skill

The problem I kept hitting. In healthcare software, PHI rarely leaks through the front door. It leaks through developer artifacts such as a seed script with real patient rows and a debug log that prints an SSN. Other examples are a test fixture copied from production and an endpoint that returns a full Patient resource with no auth check. None of it shows up in a compliance checklist.

What I built. It is a detection engine that scans source, data files, logs, and API responses for all 18 HIPAA Safe Harbor identifiers. It scores each finding’s confidence (0–100%), maps it to the relevant HIPAA rule, and writes an audit report that a reviewer can act on. I kept it plain Python with no runtime dependencies. So it drops into a pre-commit hook or a CI job as easily as it runs on demand. I also ship it as a skill for Claude and other AI coding agents, so “scan this for PHI” is a single instruction.

Getting precision right. By default, the engine excludes SSNs in federally never-issued ranges, documentation phone numbers (555-01xx), example.com emails, and private and loopback IPs. The exclusions are there to keep the false-positive rate low on real codebases.

Honest scope. This is detection and triage, not certification. It catches the obvious and semi-obvious fast, and it distinguishes a likely SSN from a phone number that merely looks like one. A clean scan means “nothing obvious found,” not “safe to ship.”