There is a newer version of the record available.

Published October 5, 2026 | Version benchmark-v0.5.1

ninadphalak/LLM-Shield-Proxy: v1.3.0: Stateless Cryptography, MCP Governance, Air-Gapped Egress, and System Hardening

Authors/Creators

Description

pii-leak-benchmark 0.5.1 fixes what a first run shows: the PyPI page's first command, and the messages a run prints when it cannot measure anything.

pip install --upgrade pii-leak-benchmark

Fixes

The first command is selfcheck

Before: the first command on this page was the flat one, which with no vendor claim recorded printed Passed: False, Outcome: claim-unstated and exited 1. After: pii-leak-benchmark selfcheck --target-base-url http://127.0.0.1:8899/v1 prints CLEAN, LEAK, CHECK FAILED or NOT MEASURED, one row per data type, and what each row means. The output ends with the one link that leads to a published result: the CI guide.

pii-leak-benchmark-v2 says what to do

Before: --validate on a plain install ended in ModuleNotFoundError: No module named 'jsonschema'. A run against a gateway that wanted a key printed n=0/32, an outcome and six schema errors, and never mentioned the 401. After:

--validate needs the jsonschema package, which the base install leaves out.
Install it with:  pip install "pii-leak-benchmark[validate]"

and, under a row that scored nothing:

-> The gateway answered HTTP 401 to every request and no case was scored: pass the key it
   expects in CONFORMANCE_TARGET_API_KEY (or V2_GATEWAY_TOKEN).

CONFORMANCE_TARGET_API_KEY, the variable every other command reads, now works for the v2 command too. Numbers, outcomes and reports are unchanged.

ci names why a start command failed

Before: a start script that was not executable (a script committed from Windows usually is not) gave Gateway startup command exited. Run it locally to inspect its logs. After: Gateway startup command exited with code 126 (126 means the command exists but is not executable; ... git update-index --chmod=+x <script> restores it). What it printed before that is in current.gateway.log next to the reports. The log is kept only when the gateway failed to start, never after it was measured. Nothing listening and no --start-command says so and names both ways out. The summary no longer claims the test values were printed to the terminal; selfcheck is where they are.

Two readings corrected

Before: a target URL without /v1 read as CHECK FAILED, "a gateway that masks without restoring". In public capture mode, a gateway that forwards the caller's key instead of the capture token read as "no request reached the capture", above a table of matches from exactly those requests. After: the first is NOT MEASURED, names the HTTP status the gateway answered and says to add /v1. The second counts the requests that arrived without the token and names CONFORMANCE_CAPTURE_TOKEN as the value to give the gateway as its provider key.

Verified on clean installs with Python 3.9 to 3.13 on Linux, and 3.12 on Windows.

Notes

If you use this software, please cite it as below.

Files

ninadphalak/LLM-Shield-Proxy-benchmark-v0.5.1.zip

Files (6.4 MB)

Name Size
md5:41947c1ea007bdbbfaddc0bbfc6d6fd3
6.4 MB Preview Download

Additional details