Skip to main content

Marionette

Independent, model-agnostic LLM prompt-injection testing. Fire the OWASP LLM Top-10 probe corpus at your chat endpoint, plant a secret canary, and score what actually leaks — then fail the build when your model can be hijacked.

  • 🐤 Canary-scored — objective leakage detection, not vibes
  • 🎯 OWASP LLM Top-10 mapped report (grade A–F)
  • ⛔ CI exit-code gate (--fail-on-vuln)
  • 🔌 MCP-native — any agent/IDE can run a scan
  • 🔒 Self-hostable, zero-dependency core (stdlib only)
  • 🧭 Model-agnostic — OpenAI-compatible, Anthropic-compat gateways, local models

Authorized use only. Point Marionette only at endpoints you own or are permitted to test.

Install

pipx install marionette-redteam          # or: pip install marionette-redteam
pip install 'marionette-redteam[mcp]'    # with the MCP server

Use

# offline self-test, no API key
marionette self-test

# scan a real endpoint and gate CI
export MARIONETTE_API_KEY=sk-...
marionette scan --config prod.json --only prompt-injection,jailbreak --fail-on-vuln

prod.json:

{
  "mode": "openai",
  "base_url": "https://api.openai.com/v1",
  "model": "gpt-4o-mini",
  "api_key_env": "MARIONETTE_API_KEY",
  "timeout_s": 60,
  "delay_s": 0.3
}

Outputs marionette-report.html (shareable), .md, and .json. Exit code is 2 when a probe is VULNERABLE and --fail-on-vuln is set.

As a GitHub Action

- uses: Simplelifecult05/blackbeard-suite/suite/llm-pentest/action@main
  with:
    config: prod.json
    only: prompt-injection,jailbreak
    fail-on-vuln: "true"
  env:
    MARIONETTE_API_KEY: ${{ secrets.MARIONETTE_API_KEY }}

As an MCP server

marionette mcp         # stdio transport

Exposes scan_endpoint and list_probe_categories tools to any MCP client.

Python API

from marionette import run_scan
scan = run_scan({"mode": "openai", "base_url": "...", "model": "gpt-4o-mini"})
print(scan["grade"] if "grade" in scan else (scan["vulnerable"], scan["total"]))

MIT licensed. Internal codename: Doflamingo.

Metadata

Release files for marionette-redteam 0.1.0

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

Source distribution (sdist)

Source distribution for marionette-redteam 0.1.0
File Size Uploaded Provenance Actions
marionette_redteam-0.1.0.tar.gz 13.0 kB With provenance Details for marionette_redteam-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for marionette-redteam 0.1.0
File Interpreter ABI Platform Actions
marionette_redteam-0.1.0-py3-none-any.whl Python 3 none any Details for marionette_redteam-0.1.0-py3-none-any.whl

Total release size: 30.0 kB

Release files / marionette_redteam-0.1.0.tar.gz

Download URL marionette_redteam-0.1.0.tar.gz
Size 13.0 kB
Tags Source
SHA-256 checksum
How to use checksums
722cf6a4577b2f467a64a2e2ee13239cf4c84f101edd4d7ada9015ed1d771ef5
BLAKE2b-256 checksum
How to use checksums
3693b1048135c289dee527b7977368c09188a7eef60d2e09901910fa5fdf18df
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 Dec 6, 2026.

Transparency log

Release files / marionette_redteam-0.1.0-py3-none-any.whl

Download URL marionette_redteam-0.1.0-py3-none-any.whl
Size 17.0 kB
Tags Python 3
SHA-256 checksum
How to use checksums
f167eb321ee287836d4e847bf0b0e26204fc86998530ec663f8c70a10fbe9e24
BLAKE2b-256 checksum
How to use checksums
4fb2574fe4d9c004f67ecd48b58087976263f1bb5354a8f193ac01746fc580e6
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 Dec 6, 2026.

Transparency log

Security for marionette-redteam 0.1.0

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 marionette_redteam-0.1.0.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 Dec 6, 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.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files Full 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