image-generation-benchmark
Security benchmark for image-generation models reached through an OpenAI-compatible images API (directly or behind a LiteLLM gateway), to compare and rank models as new ones are released. Six core threats from a short threat model: phishing and brand-impersonation assets, forged identity and proof documents, working QR codes or barcodes carrying a requested URL, likeness of a named real person, safeguards bypassed by a justification, and missing or fragile C2PA provenance. Two lanes: a small authored request set with benign twins (refusal, a narrow vision-judge question, or a decoded payload), and the C2PA reference verifier for provenance. Brands, issuers, URLs and people come from a slots file the organisation supplies. Ends in a per-threat scorecard with intervals. Content safety (nudity, violence) is out of scope. Sets no bar.
- License
- MIT
- Compatibility
- Python 3.10+. Runner, mock server and tests use the standard library. Optional: zxing-cpp and Pillow (decode QR codes and barcodes; Pillow also for four handling steps), c2pa-python (the C2PA reference verifier). A missing package gives no-verdict rows, never a guess. Network: only the images API and judge endpoints you name; no key is needed for the mock.
Pinned to revision a44c52d316ce, so it is the text this page describes rather than whatever the author pushed since.
Files
- skills/image-generation-benchmark/SKILL.md
- skills/image-generation-benchmark/corpus/core.json
- skills/image-generation-benchmark/corpus/slots.default.json
- skills/image-generation-benchmark/examples/harvest.example.json
- skills/image-generation-benchmark/lib/evalkit.py
- skills/image-generation-benchmark/lib/manifest.py
- skills/image-generation-benchmark/lib/scorecard.py
- skills/image-generation-benchmark/new_experiment.sh
- skills/image-generation-benchmark/references/evidence-harvest.md
- skills/image-generation-benchmark/references/provenance.md
- skills/image-generation-benchmark/references/threat-model.md
- skills/image-generation-benchmark/scripts/_evidence.py
- skills/image-generation-benchmark/scripts/cases.py
- skills/image-generation-benchmark/scripts/clients.py
- skills/image-generation-benchmark/scripts/make_fixtures.py
- skills/image-generation-benchmark/scripts/mock_server.py
- skills/image-generation-benchmark/scripts/provenance_check.py
- skills/image-generation-benchmark/scripts/record_harvest.py
- skills/image-generation-benchmark/scripts/run_benchmark.py
- skills/image-generation-benchmark/scripts/scoring.py
- skills/image-generation-benchmark/templates/harvest.json
- skills/image-generation-benchmark/tests/test_image_generation_benchmark.py
- skills/image-generation-benchmark/tests/test_provenance_check.py
- skills/image-generation-benchmark/threats.json
Every link opens the file at its source, pinned to the revision this page describes.