🦅 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
🔗 Related Packages
raven-core, shared domain models, persistence, and the FastAPI control plane (pulled in automatically)raven-shield, runtime policy gateway that enforces the guardrailsraven-testproposes- GitHub Action , one-line PR gate with scorecard comments and SARIF upload
📄 License
MIT
Metadata
Release files for raven-test 1.0.1
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| raven_test-1.0.1-py3-none-any.whl | Python 3 | none | any | Details for raven_test-1.0.1-py3-none-any.whl |
Release files / raven_test-1.0.1-py3-none-any.whl
| Download URL | raven_test-1.0.1-py3-none-any.whl |
|---|---|
| Size | 90.0 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
54a0f5c6306abca99764d19516c5d7f6d53684569eae29f8788d94fb5dd0ac64
|
|
BLAKE2b-256 checksum How to use checksums |
79e601f4191d26f8b427fa3c8e9452178b35c05cb6df8198830bd15b269973b7
|
| 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 logSecurity for raven-test 1.0.1
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.1-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 logA 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.