There is a newer version of the record available.

Published September 4, 2026 | Version v1.5.2

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

Authors/Creators

Description

Install this release if you installed 1.5.1 from PyPI

pip install llm-shield-proxy==1.5.1 produces an installation where every proxied request returns 500. The proxy starts normally and /healthz answers, so the failure only appears under real traffic:

File ".../llm_shield_proxy/api/main.py", line 843, in _proxy_catch_all_internal
    from llm_shield_proxy.security.identity import verify_agent_identity
File ".../llm_shield_proxy/security/identity.py", line 18, in <module>
    import jwt
ModuleNotFoundError: No module named 'jwt'

security/identity.py imports jwt at module scope, api/main.py imports verify_agent_identity from inside the request handler without gating it behind a setting, and PyJWT was missing from the 1.5.1 wheel's requires_dist.

1.5.2 declares PyJWT>=2.13.0 and changes nothing else. No behaviour, configuration or API change. Container and source installs were never affected, because both install requirements.txt, which has always listed PyJWT.

| | 1.5.1 from PyPI | 1.5.2 from PyPI | | :--- | :--- | :--- | | /healthz | 200 | 200 | | any proxied request | 500 | 200 | | modules importable | 49 of 50 | 50 of 50 |

Why the existing guard did not catch it

tests/ootb/test_pypi_cli.py already installed the wheel into a clean virtualenv and imported the ASGI app, a check added after the same class of gap with redis in an earlier release. It could not catch this one: security/identity.py is imported lazily inside the request handler, so importing the app never reaches it.

The guard now imports every module in the installed package (tests/ootb/_import_every_module.py), and asserts a floor on how many it reached so it cannot pass vacuously. It walks the filesystem rather than using pkgutil.walk_packages, which swallows the ImportError raised while importing a subpackage and silently skips its children -- on 1.5.1 that reduced 50 modules to 10 and hid the broken one.

Verified in both directions against images built from the published wheels: exit 1 on 1.5.1 naming llm_shield_proxy.security.identity, exit 0 on 1.5.2.

How it was found

By profiling the released distribution instead of a working-tree build, while measuring this proxy against the streaming PII conformance profile in benchmarks/. A local docker build . installs requirements.txt, which is a superset of the wheel's declared dependencies, so it would have reported a working gateway.

Notes

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

Files

ninadphalak/LLM-Shield-Proxy-v1.5.2.zip

Files (4.2 MB)

Name Size
md5:f3ca72fcaa5239f1a052186ec36e27d1
4.2 MB Preview Download

Additional details

Related works