Skip to main content

Mobius Guard

mobiusguard-eval

An honest evaluation harness for LLM guardrails. It scores prompt-injection detectors the way a deployment would use them: recall at a fixed false-positive rate, with the threshold set on ordinary traffic, on data the detector was not trained on. It also tests the streaming redactor. The harness behind Mobius Guard's published numbers.

pip install "mobiusguard-eval[sklearn,hf]"

mobiusguard-eval sources                     # the provenance ledger
mobiusguard-eval build --out runs/suite      # fetch pinned data, build the suite
mobiusguard-eval score --suite runs/suite --detector piguard --device cuda --out runs/piguard
mobiusguard-eval report --suite runs/suite --runs runs/piguard --out runs/report

Or everything in order: mobiusguard-eval pipeline --out runs --device cuda. Every step saves its work as it goes and skips what is already done for the same inputs, so a crash or a fix never means starting over (--force redoes a step).

What makes the numbers honest

  • A provenance ledger. Every dataset is pinned to a commit or a SHA-256, with its licence and the published detectors known to have trained on it. Their numbers on those sets are marked †.
  • Thresholds from ordinary traffic. Half of a real-user message set (oasst1) sets each detector's threshold for 0.1%, 1% or 5% false positives. Every attack set and every hard-benign set is reported out of sample.
  • Families, not rows. Attacks are reported per source, plus five deterministic obfuscations (spaced letters, look-alike letters, zero-width characters, leetspeak, base64). Near duplicates (MinHash) stay together in one split.
  • False positives first-class. Hard benign sets (NotInject, XSTest, OR-Bench), real emails, 35 languages of ordinary traffic.
  • Latency with the hardware stated. P50/P95/P99 at fixed input lengths and thread counts.
  • One row per item. Every run writes the score for each input, so any number can be traced back and reviewed.

Detectors and tests

  • keyword (the floor).
  • tfidf: trained leave-one-source-out, so no score comes from a model that saw its source. Needs [sklearn].
  • protectai-v2 and piguard, pinned to a commit and never running downloaded code. Need [hf].
  • mobiusguard-rules, and the normalised variants *-norm (Mobius Guard's clean-up in front of a classifier).
  • redaction: how often each of the 245 redaction patterns fires on ~57,000 real texts, and recall on 15,000 synthetic secrets (exact and garbled) streamed in random chunks. Includes near misses that must not be redacted.

The design is in decision 0009; the datasets and their licences in datasets.md; results in docs/results. No data is bundled: the harness downloads each source at its pinned revision.

Alpha: the API may still change before 1.0. Apache-2.0.

Metadata

Release files for mobiusguard-eval 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for mobiusguard-eval 0.1.2
File Size Uploaded Provenance Actions
mobiusguard_eval-0.1.2.tar.gz 47.5 kB With provenance Details for mobiusguard_eval-0.1.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for mobiusguard-eval 0.1.2
File Interpreter ABI Platform Actions
mobiusguard_eval-0.1.2-py3-none-any.whl Python 3 none any Details for mobiusguard_eval-0.1.2-py3-none-any.whl

Total release size: 96.7 kB

Release files / mobiusguard_eval-0.1.2.tar.gz

Download URL mobiusguard_eval-0.1.2.tar.gz
Size 47.5 kB
Tags Source
SHA-256 checksum
How to use checksums
b6569e1125d4e9cdb12bc45cc332edde941af3cfb821e9fc653e64eb29b4160a
BLAKE2b-256 checksum
How to use checksums
6ec769d2e8d4bd9a604e447e0f571779d0f939593685a3bacc794dea5ff3df5d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Release files / mobiusguard_eval-0.1.2-py3-none-any.whl

Download URL mobiusguard_eval-0.1.2-py3-none-any.whl
Size 49.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
191ce0ed2f00580ac9d3728620846235f28d57a2d647b7cc8e952bb3f6c771cc
BLAKE2b-256 checksum
How to use checksums
4d8945b834b545d8e6ef3c1a2331268a1e896c7be18cbff82dd6412e8626335c
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.16

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

Security for mobiusguard-eval 0.1.2

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

Full provenance

Both files in this release have been uploaded with provenance metadata.

Select from 2 files

Attestation for mobiusguard_eval-0.1.2.tar.gz

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Nov 5, 2026.

Transparency log

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page