There is a newer version of the record available.

Published September 14, 2026 | Version v1.6.4

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

Authors/Creators

Description

Security

The streaming rehydrate endpoint could echo an exception message to the caller. /v1/guard/rehydrate/stream returned str(ve) in its error envelope. Every ValueError that path raises today carries only a limit name and a number, but the handler catches ValueError from anywhere inside process_delta_text, including standard-library raises whose messages embed the value being parsed. This endpoint returns plaintext PII, so that is the client-visible twin of the exc_info=exc hazard the project already forbids for logs. Callers now receive the limit class; operators get the exception type name. Flagged by CodeQL as py/stack-trace-exposure.

qs advisories in the documentation site. qs arrives transitively through @docusaurus/core to webpack-dev-server to express, which pins ~6.15.1 and cannot reach the patched release on its own. An npm overrides entry resolves it to 6.16.0.

Workflow actions moved to commit pins, with actions/cache at v6 and azure/setup-helm at v5, and a conformance test that fails if any remote action is referenced by a floating tag. The composite benchmark action now passes inputs and credentials through the environment rather than through shell source or argv.

Fixed

gcloud ran without its subcommand on Linux. The credentialed benchmark rows called subprocess.run(argv_list, shell=True), which on POSIX executes /bin/sh -c gcloud and binds the remaining elements to positional parameters, so the subcommand was silently discarded. It only ever appeared to work because those rows are run from Windows, where the shell rejoins the list. The executable is now resolved with shutil.which, which honours PATHEXT on Windows and returns an absolute path on both platforms, so no shell is involved.

Evidence artifacts recorded the host rather than the measurement. Path.write_text uses text mode, which rewrites newlines to CRLF on Windows and made an artifact's SHA-256 depend on where it was produced. New v2 and FIDE JSON evidence is written through a shared canonical writer: UTF-8, explicit LF, one terminal newline, atomic replace. A test now fails if any evidence module reintroduces a raw Path.write_text(json.dumps(...)).

A TLS test did nothing on Python 3.11. Two GCP transport tests patched SSL handlers only when _context was already set, which is a fact about the interpreter rather than about the handler, so on 3.11 nothing was patched and a self-signed certificate met a verifying context. Handlers are now selected by type and the patch asserts it matched at least one.

Added

A probe for streaming-only failures. The response-split profile has always sent stream: true, so it could report that an integration leaks but not that an integration works until streaming is switched on. benchmarks/mode_regression_probe.py measures a whole-response arm, a single-chunk arm and a fragmented arm with everything else held fixed. It carries its own capture and client and imports the published scorer unchanged, so the instrument digest does not move and no existing evidence goes stale. An unstable run cannot publish a verdict, and non-positive repeat counts are rejected rather than clamped.

Notes

The round-8 evidence tag is now published and reachable. Profile entry points reject iterations > 1, which previously scored a single observation while accumulating latency across all of them, and the v2 emitter requires an explicit --out so a bare --validate can no longer overwrite published evidence.

Notes

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

Files

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

Files (5.6 MB)

Name Size
md5:c775f95347f092a6bdcb7a2fdcc95a9b
5.6 MB Preview Download

Additional details

Related works