Skip to main content

🦅 raven-test

Autonomous Security Regression & Remediation Assurance CLI for LLM Applications

raven-test is the standalone developer CLI and CI/CD security gate from the RAVEN framework. It runs a versioned catalog of red-team attacks against your LLM app or agent, checks results with deterministic rules first and an optional structured LLM judge second, proposes prompt and tool-policy hardening, and re-tests to prove the fix worked without breaking legitimate requests. Output is OASIS SARIF 2.1.0 for GitHub Code Scanning, plus JSON, JUnit, and terminal scorecards.


⚡ Quickstart

1. Installation

pip install raven-test

raven-test pulls in raven-core automatically.

2. Scaffold a New Project

raven-test init

Detects a local agent endpoint and writes raven.yaml.

3. Pre-Flight Validation (Zero-Attack Dry Run)

raven-test run --dry-run

Checks target connectivity and profiles tool schemas without sending attacks.

4. Run a Security Regression Scan

raven-test run --config raven.yaml --fail-on high

Against the built-in ShopHelper demo target:

raven-test run --target shophelper-local

5. CI Gate with SARIF Output

raven-test run --config raven.yaml --fail-on high --output sarif > raven-results.sarif

🎯 What It Tests

  • direct_injection, system prompt override and goal hijacking
  • canary_leakage, extraction of embedded canary tokens and secrets
  • sensitive_data, PII and cross-customer data disclosure
  • tool_misuse, unauthorized or unverified tool calls (refunds, lookups)

The v2 catalog ships 18 attack cases mapped to OWASP LLM Top 10 (2025) and MITRE ATLAS. A benign utility suite runs alongside attacks to measure over-refusal: a fix that blocks attacks but breaks real customers shows up as a regression, not a pass.

🛡️ Targets

  • shophelper-local, built-in demo bot, zero setup
  • External HTTP/REST agents via raven.yaml (--target-url)
  • MCP servers over stdio and in-process transports

🔒 Design Rules

  • Deterministic checks (canary, secret, PII, tool-policy) run before any LLM call; the model judge is optional and bounded
  • Every verdict maps to explicit labels: confirmed_failure, likely_failure, attack_blocked, needs_review, and others
  • Hardening is always a reviewable diff; nothing is auto-applied
  • A clean scan is evidence under stated checks, not a security guarantee
  • raven-core, shared domain models, persistence, and the FastAPI control plane (pulled in automatically)
  • raven-shield, runtime policy gateway that enforces the guardrails raven-test proposes
  • GitHub Action , one-line PR gate with scorecard comments and SARIF upload

📄 License

MIT

Metadata

Release files for raven-test 1.0.2

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

Built distribution (wheel)

Table of built distributions (wheels) for raven-test 1.0.2
File Interpreter ABI Platform Actions
raven_test-1.0.2-py3-none-any.whl Python 3 none any Details for raven_test-1.0.2-py3-none-any.whl

Release files / raven_test-1.0.2-py3-none-any.whl

Download URL raven_test-1.0.2-py3-none-any.whl
Size 90.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
61d8dcfa5e80390801ffafd7b703c887e5613345674275e22058053b31cccf3c
BLAKE2b-256 checksum
How to use checksums
28eeb0066ca81d0e7fadcfca73b5020a3adb85e9e5f538a29dd8cbc5d38f221d
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 1, 2026.

Transparency log

Security for raven-test 1.0.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

1 file in this release has been uploaded with provenance metadata.

Attestation for raven_test-1.0.2-py3-none-any.whl

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 1, 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