Skip to content
verity-redteam

verity-redteam

Pypi • December 1, 2026

Verity RedTeam Free — Open-Core MCP Security Scanner, SQL AST Guard, and Audit Server

pip install verity-redteam-core==0.2.5

Catch poisoned MCP servers, leaked workstation secrets, prompt-injected SQL, and remote code execution hidden inside AI agent tools — before your IDE agent runs them. Offline, deterministic, zero Docker, zero API keys, Apache-2.0.

Documentation Portal — Quickstart · CLI Reference · Rule Catalog · SQL Guard · IDE MCP Server · Roadmap

Install & 5-Second Quickstart

End users install straight from PyPI or Homebrew (macOS & Linux):

Install via Homebrew Tap (macOS & Linux)

No local Python or virtualenv setup is required: JMartynov/homebrew-tap builds an isolated Homebrew virtualenv ( [email protected] + libyaml ) with pinned PyPI sdist SHA-256 checksums and places verity directly on your PATH .

First-run checks, SBOM export, CI baselines, upgrades ( brew update && brew upgrade verity ), uninstall steps, and GUI IDE PATH tips ( /opt/homebrew/bin/verity on Apple Silicon, /usr/local/bin/verity on Intel macOS, / /linuxbrew/.linuxbrew/bin/verity on Linux) live in the Homebrew installation guide .

Contributors can build the wheel from a clone:

Run your first three checks in five seconds:

verity scan — discovers and statically scans local AI client configs, MCP tool schemas, and Python MCP source, with credential scrubbing.

verity test — deterministically probes stdio or HTTP/SSE MCP servers, validates SQL, and runs in-memory demo targets.

verity serve — a zero-framework JSON-RPC 2.0 MCP server that lets your IDE agent audit itself.

6 Real Customer Pain Points & Verified Solutions

Every scenario below shows the exact command you run, a verbatim output captured from an empty container (see tests/e2e_containers/README.md ), and how that output removes risk from your workflow.

1. Shadow MCP Servers, Plaintext Secrets & Known CVEs on Developer Laptops

The Problem: Developers silently install shadow MCP servers. Plaintext API keys sit in ~/.cursor/mcp.json , the Claude Desktop config, and Continue YAML, and vulnerable packages such as [email protected] are exposed to OS command injection (CVE-2025-6514).

Verified Result: verity scan on a clean workstation with three discovered configs:

How It Solves Your Pain Point: One offline command audits every supported client config, masks plaintext secrets as **** , flags raw shell wrappers such as bash / sh , and matches installed MCP package versions against known CVEs and advisories. Add --fail-on-findings to make a leaked key or a vulnerable package fail CI. Choose any output with --format terminal|json|markdown|html and persist it with --output .

2. Tool Poisoning, Indirect Prompt Injection & Exfiltration in Third-Party MCP Servers

The Problem: A third-party MCP server can hide instruction overrides, webhook exfiltration, and cloud metadata SSRF inside tool descriptions that your agent reads.

Verified Result: live stdio probe of a poisoned server:

How It Solves Your Pain Point: Point verity test at a live stdio command or an HTTP/SSE URL and it inspects every exposed tool, prompt, and resource. For air-gapped review, verity scan --schema-file screens a saved tool manifest offline. The INJECTION-OVERRIDE , TOOL-POISONING , EXFIL-WEBHOOK , and METADATA-SSRF findings tell you exactly which description must be removed before the server is trusted.

The Problem: An agent turns natural language into SQL. A crafted prompt can inject a stacked query, split keywords with ( DE/**/LETE ), read pg_shadow , or cross tenant boundaries.

Verified Result: stacked queries, catalog access, and -splitting are rejected; a parameterized read passes:

Embed the same guard inside your Python MCP server:

How It Solves Your Pain Point: The SqlSecurityGuard parses SQL with sqlglot , rejects stacked statements, -split keywords, DDL/DML, and internal catalogs ( pg_shadow , pg_authid , information_schema ), while enforce_tenant_filter and apply_projection bind tenant scope and mask non-allowlisted columns.

4. RCE & Dangerous Patterns in Custom Python MCP Servers (CI/CD Gate)

The Problem: Your own MCP servers can ship eval() , shell=True subprocesses, unsafe YAML, and path traversal into production. You need a deterministic gate, not a vibe check.

Verified Result: AST scan of a vulnerable fixture:

Scanning the real DVMCP benchmark source produced 6 findings ( 04_dvmcp_ast_summary.json reports {"total_findings": 6} ), confirming the gate fires on real-world MCP code, not only on synthetic fixtures.

How It Solves Your Pain Point: verity scan --path parses Python into an AST ( McpAstScannerEngine ), resolves import aliases via self.imports , and runs def-use analysis for CWE-22 path traversal, CWE-89 SQL injection, and CWE-862 BOLA tenant gaps alongside eval / exec , compile , shell=True , os.system , unsafe pickle / yaml.load , and unescaped HTML. Combine with --fail-on-findings to block a pull request before RCE reaches your agent.

5. Proving Agent Vulnerability vs. Defense in 5 Seconds (Zero Docker, Zero API Keys)

The Problem: You need to show a skeptical stakeholder that an agent class is exploitable and that the secure variant resists it — without Docker, databases, or cloud credentials.

Verified Result: four in-memory targets pass, each proving the vulnerable server is breached while the secure twin defends:

How It Solves Your Pain Point: Two commands give you an executive HTML report ( verity-demo.html ) proving that the vulnerable variant leaks data and the secure variant defends, with no infrastructure to provision.

6. In-IDE Self-Auditing & Rug-Pull Detection ( verity serve )

The Problem: You want your IDE agent (Cursor, Claude Desktop, Antigravity) to audit its own MCP environment and detect a server changing behaviour after trust (a rug pull).

What You Run: add Verity as an MCP server in your client config (use "command": "uvx" for zero-install, or "command": "verity" / /opt/homebrew/bin/verity when installed via Homebrew so GUI apps find it without shell PATH wrappers):

Or with Homebrew-installed verity :

Or run the server over the network:

--transport accepts stdio , sse , or http ; network transports expose a /health endpoint and accept --host / --port .

Verified Result: tools/list returns four unified MCP tools:

verity_security_scan — discovery, config scanning, fingerprinting, OSV lookup, full audit, AST scan.

verity_database_guard — SQL validation, warehouse policy checks, projection masking, input sanitization.

verity_database_oracle — attack proposals, response verification, canary proofs.

verity_remediation_ops — remediation explanations, guard patches, wrapper configs.

The Unknown Capability Profiler ( src/verity/ucp/engine.py ) provides detect_rug_pull drift detection: it compares a previously trusted capability profile against the current one and reports added, removed, or mutated tools.

How It Solves Your Pain Point: Your IDE agent can call Verity directly to scan its own MCP environment, and python -m verity.mcp_server.manage operates the server side. Rug-pull detection catches a server that changes its tools after you approved it.

Full Free Capabilities Reference

Supported AI clients (17)

claude_desktop , claude_code , cursor , windsurf , zed , vscode_cline , vscode_roo , goose , continue , junie , vscode , antigravity , openhands , trae , lmstudio , librechat , and workspace ( .mcp.json ), with JSONC /trailing-comma stripping, --client filtering (aliases such as claude-code , cline , roo-code ), and opt-in --scan-global for global npm / ~/.npm/_npx MCP packages.

Static rule screening ( VERITY-STATIC-* , 13 rules)

Python AST scanning ( VERITY-AST-* , 9 rules)

TypeScript / JavaScript MCP AST scanning ( VERITY-AST-TS-* , 5 rules)

verity scan --path discovers .ts , .tsx , .js , .mjs , and .cjs files (skipping node_modules , dist , and build ), extracts server.tool(...) schemas into StaticRuleEvaluator and UnknownCapabilityProfiler , and checks deterministic TypeScript/JavaScript sinks:

Composable Scanners, Compliance, SBOM & Inventory Drift

--scanners selects comma-separated engines ( config,vuln,secret,ast,taint,typosquat,conflict,all ): offline BK-Tree typosquatting ( --typosquat-threshold 1..3 ), multi-server ConflictDetector ( TOOL_COLLISION ), and transitive call-graph reachability ( --call-analysis / --no-call-analysis , --reachable-only , --manifest ), with AST/taint deduplication.

--compliance owasp-mcp-top-10 (or owasp-llm-2025 ) attaches additive OWASP MCP/LLM Top 10 fields and computes a compliance scorecard; pair with --fail-on-non-compliant to gate CI ( exit 1 ).

--save-inventory-baseline , --compare-inventory-baseline , and --fail-on-drift ( exit 2 on drift) track server inventory changes independently of M31 finding baselines ( --save-baseline , --baseline , --fail-on-new ).

verity_security_scan MCP options mirror CLI parity ( scanners , include_reachability , format , save_inventory_baseline , compare_inventory_baseline , fail_on_drift ).

Output, offline mode & exit codes

--format supports terminal , json , markdown , html , cyclonedx (CycloneDX 1.6 SBOM), and spdx (SPDX 2.3 SBOM); --output writes to a file. SBOM exports run in inventory-only mode by default and enrich cyclonedx with vulnerabilities[] plus reachability-mapped analysis.state when --scanners vuln is passed.

--format sarif [Pro] — In Verity Free, --format sarif returns a deterministic PRO_FEATURE_REQUIRED JSON payload ( "ok": false , "verdict": "PRO_REQUIRED" , "error": "PRO_FEATURE_REQUIRED" ) with exit code 2 and zero partial file writes even when --output is supplied; SARIF v2.1.0 export requires verity-pro .

--fail-on-severity / --fail-on gates CI at CRITICAL|HIGH|MEDIUM|LOW|INFO ( --fail-on-findings aliases INFO ); --path accepts multiple mixed files ( .py + .json / .yaml / .yml ) and discovers nested monorepo configs.

--save-baseline / --baseline / --fail-on-new enable brownfield finding baseline diffing ( .verity-baseline.json with pre-redaction verity:v1: fingerprints), paired with .verityignore , verity.toml ( [[ignore]] / [[allowlists]] ), and inline # verity-ignore / # nosemgrep suppressions.

--offline disables remote snapshot fetching and uses local caches only.

Exit codes: 0 success, 1 findings, non-compliant scorecard ( --fail-on-non-compliant ), or new findings exceeding the configured gate (or a failing probe), 2 usage/policy/baseline-schema error, inventory drift ( --fail-on-drift ), or gated Pro-only feature such as SARIF export.

The SQL guard ( SqlSecurityGuard ) is also importable as a library from verity.mcp_library.sql_guard .

Local Web Control Center ( verity view )

verity view (or verity scan --view / verity test --view ) starts a zero-signup local web console on with one-click workstation audit, project scan, demo lab, and SQL / CVE checks at the top, plus six views (Findings & Reports, Scan Studio, SQL & Runtime Guards, Passports & CVEs, SBOM / Drift / Baseline, Stream & MCP Server). It is loopback-only, token-protected, served under a strict CSP, and prints one concise activity line per action. See the Local Web Control Center guide .

Tier 1 — Must-Have Product Core

The twelve capabilities a team installs Verity for. Everything is available in the Apache-2.0 Free edition unless the row carries the [Pro] badge.

Tier 2 — High Customer Need

These thirteen capabilities are requested by teams that already run Tier 1 in CI. They deepen coverage without changing the install story.

CI/CD Integration & Reproducible Empty-Container Verification

1) Drop-In Official GitHub Action ( JMartynov/verity-scan-action@v1 )

Add this 6-line workflow in .github/workflows/verity.yml to gate pull requests and pushes with cached uv execution, $GITHUB_STEP_SUMMARY tables, and ${{ runner.temp }}/verity/ artifact isolation:

For brownfield repositories (PR-diff gating against base commit findings) or air-gapped runners, set diff-pr: "true" (with fetch-depth: 0 ) or offline: "true" :

Outputs: findings-count , critical-count , high-count , has-critical-or-high , json-file , sarif-file , sarif-generated , and exit-code .

[Pro] SARIF v2.1.0 Upload: When verity-pro is supplied via extra-packages , action.yml automatically emits %SRCROOT% -normalized SARIF v2.1.0 ( sarif-generated=true ) and uploads it via github/codeql-action/upload-sarif@v3 . In Free, --format sarif [Pro] returns PRO_FEATURE_REQUIRED with exit code 2 and zero partial files, so sarif-generated stays false and the upload step is skipped cleanly.

Or invoke the CLI directly in your own job step:

For existing ("brownfield") repositories, snapshot a finding baseline or server inventory baseline and fail CI on new regressions or inventory drift:

2) Official Pre-Commit Hooks ( .pre-commit-hooks.yaml )

Add Verity to .pre-commit-config.yaml to block poisoned tool definitions, plaintext secrets, and dangerous Python sinks in max_depth=3 with FILTER_DEPTH_EXCEEDED while binding tenant_id ) plus explicit allowlist mode ( FIELD_NOT_ALLOWED for unknown fields).

Threat and purpose. A single unbounded read can stream an entire table into a model context, blowing out token budgets and moving data the agent was never meant to see.

Free vs. Pro delta. Free reports unbounded reads as findings and gates verity_database_guard(action="enforce_volume_policy") with PRO_FEATURE_REQUIRED . [Pro] VolumePolicyGuard clamps requested_limit to 1..50 ( MAX_ALLOWED_LIMIT = 50 ), truncates payloads to 16 KB ( truncate_payload ), and emits sha256:... digests ( compute_evidence_hash ).

OASIS SARIF v2.1.0 & Compliance Bundles

Threat and purpose. Security review stalls when MCP findings live only in terminal scrollback, and an attacker benefits from every finding that never reaches a tracked dashboard.

Free vs. Pro delta. In Verity Free, --format sarif emits a deterministic PRO_FEATURE_REQUIRED JSON payload ( "ok": false , "verdict": "PRO_REQUIRED" , "error": "PRO_FEATURE_REQUIRED" ) with exit code 2 and zero partial file writes even when --output is supplied. When verity-pro is installed, --format sarif and ComplianceReportEngine.generate_bundle() preserve exact physicalLocation.region.startLine (falling back to startLine: 1 when line info is absent) and artifactLocation.uri , write the SARIF artifact atomically, and emit OSV v1.6.0 records with AIVSS under database_specific.aivss .

--format sarif [Pro] — requires verity-pro .

Pro verity_remediation_ops

Threat and purpose. A team that reads a finding but cannot apply a fix leaves the vulnerable tool deployed, so Pro turns a finding into a reviewable patch rather than advisory text alone.

Free vs. Pro delta. Free verity_remediation_ops returns advisory text only; the generative generate_safe_parameterized_query , generate_guard_patch , and generate_wrapper_config actions are Pro-only and fail closed with PRO_FEATURE_REQUIRED (exit code 2) on Free.

Multi-Turn Socratic Red-Teaming

Threat and purpose. Real attackers do not stop at the first refusal: they rephrase, split a request across turns, and probe for unadvertised side effects, so a one-phrasing refusal is not a control.

Free vs. Pro delta. Free runs single-turn probes against the four demo targets; session orchestration, refusal-aware refinement, and neurosymbolic remediation are Pro-only and fail closed with PRO_FEATURE_REQUIRED (exit code 2) on Free.

Optional secondary utilities and internal QA harnesses are catalogued separately in the Auxiliary & Benchmark Appendix (Tier 3/4) .

Apache License 2.0 — see LICENSE .

Release files for verity-redteam-core 0.2.5

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

Source distribution (sdist)

Built distribution (wheel)

Total release size: 1.4 MB

Release files / verity_redteam_core-0.2.5.tar.gz

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.

Release files / verity_redteam_core-0.2.5-py3-none-any.whl

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.

Security for verity-redteam-core 0.2.5

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.

Both files in this release have been uploaded with provenance metadata.

Attestation for verity_redteam_core-0.2.5.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 1, 2026.

Attestation for verity_redteam_core-0.2.5-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.

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.

Release history Release notifications | RSS feed

Dec 1, 2026 2 release files Full provenance

Dec 1, 2026 2 release files Full provenance

Nov 28, 2026 2 release files Full provenance

Nov 27, 2026 2 release files Full provenance

Nov 20, 2026 2 release files Full provenance

Nov 19, 2026 2 release files Full provenance

Nov 17, 2026 2 release files Full provenance