Skip to main content
Yanked

This release has been yanked by its maintainers, and will be ignored by installers, except when explicitly specified.
Consider using release 0.2.3 instead.
Reason given by maintainers: Improper build

Zortium

Adversarial attack test suite for vision-language models.

PyPI Python License

Zortium runs a structured battery of adversarial attacks against any OpenAI-compatible VLM endpoint and reports a per-suite Attack Success Rate (ASR). Think promptfoo, for vision models — systematic, repeatable, CI-ready.

Install

pip install zortium

Python 3.10+. No system dependencies.

Quick start

Run setup first:

zortium --init   # pick the target, the judge, their keys and the run options from a menu
zortium          # if you saved them as your defaults, every scan after that is just this

Each question explains what it controls and recommends a default, with the reason, so Enter is usually enough. Setup asks how you want to keep your answers: as your defaults (~/.config/zortium/config.yaml, readable only by you), as a YAML/JSON file you run with zortium -c FILE, or nothing saved and the full command printed for you to copy. It also opens on its own the first time you run zortium in a terminal. It covers OpenRouter, OpenAI, Anthropic, Gemini, Together, Groq, Ollama and any OpenAI-compatible endpoint. Flags and ZORTIUM_* environment variables still override it, which is how you run it in CI:

zortium \
  --base-url https://openrouter.ai/api/v1 --model google/gemma-3-27b-it --api-key $OPENROUTER_API_KEY \
  --judge-model gpt-4o-mini --judge-base-url https://api.openai.com/v1 --judge-api-key $OPENAI_API_KEY

The command has two halves — the target you're testing (--base-url · --model · --api-key) and the judge that grades whether the target complied (--judge-*). Every flag has a ZORTIUM_* environment variable, so keys never touch your shell history.

No judge configured? Zortium falls back to the target grading itself with a warning — fine for a first look, but self-grading is lenient, so treat those numbers as a floor. Pass --judge-model for results you can act on.

You get a per-suite breach-rate table and a headline ASR:

┏━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━┳━━━━━━━━━━┳━━━━━━━━━━━━━┳━━━━━━━━┓
┃ Attack Suite                         ┃ Severity ┃ Breach Rate ┃ Status ┃
┡━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━╇━━━━━━━━━━╇━━━━━━━━━━━━━╇━━━━━━━━┩
│ Typographic Visual Prompt Injection  │   HIGH   │          0% │  PASS  │
│ FigStep Typographic Jailbreak        │   HIGH   │         25% │  WARN  │
│ Goal Hijacking                       │   MID    │         50% │  FAIL  │
│ …                                    │    …     │           … │   …    │
├──────────────────────────────────────┼──────────┼─────────────┼────────┤
│ Overall                              │          │         12% │  WARN  │
└──────────────────────────────────────┴──────────┴─────────────┴────────┘

CI gate

zortium --max-asr 20   # exits 1 if overall ASR exceeds 20%

Every flag has a ZORTIUM_* env var, so secrets go in CI variables — see the docs for a copy-paste GitHub Actions job.

Documentation

Full documentation — every flag, all 18 attack suites, scan modes, the LLM judge, config files, CI recipes, supported providers, and architecture — lives at zortium.dev/docs.

Safety

Zortium is a defensive tool. Run it only against models you own or are authorized to test — by design it submits real jailbreak prompts, harmful requests, and adversarial images to measure refusal behaviour.

License

Apache-2.0 — see LICENSE. Research attribution in CITATIONS.md.

Metadata

Release files for zortium 0.2.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 zortium 0.2.2
File Size Uploaded Provenance Actions
zortium-0.2.2.tar.gz 405.2 kB Without provenance Details for zortium-0.2.2.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for zortium 0.2.2
File Interpreter ABI Platform Actions
zortium-0.2.2-py3-none-any.whl Python 3 none any Details for zortium-0.2.2-py3-none-any.whl

Total release size: 690.3 kB

Release files / zortium-0.2.2.tar.gz

Download URL zortium-0.2.2.tar.gz
Size 405.2 kB
Tags Source
SHA-256 checksum
How to use checksums
10edb3c2822b2cd9eaa5b2e12e33f1e49bb1a66c1554530b957647ffe99f1a0c
BLAKE2b-256 checksum
How to use checksums
e25fd970dfecd0d0f7a6902277c56f46d2950a18e4cf1c738e64e8588a065cf4
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Release files / zortium-0.2.2-py3-none-any.whl

Download URL zortium-0.2.2-py3-none-any.whl
Size 285.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
a5e94a28b2e6b568c96dd4111315612ea3db2390bb64f889a27f8efdc60887f9
BLAKE2b-256 checksum
How to use checksums
c7b03cbde46e220d4a714768863cd233d5da275b6f088424d327ed4ba02f25c3
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.13.9

Security for zortium 0.2.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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

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.

Release history Release notifications | RSS feed

This release

0.2.2 This release

2 release files No provenance

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