Ecosystem Comparison · Local-First AI Testing

Refract vs. Garak, PyRIT, Promptfoo, Inspect AI & HarmBench.

Capability-by-capability comparison of six open-source tools across scope, privacy, statistics and output formats — with a plain-English glossary of AI safety testing terms.

After prerelease installation, refract demo runs offline — no API key or network needed.

Open-Source Ecosystem Guide Source review: 2026-11-29

Open-Source AI Testing Ecosystem: Which Tool Should You Use (and Why Refract Is Different)?

Modern AI safety and security testing is not one job. Teams often combine broad probe scanners, multi-turn red-team orchestrators, prompt CI runners, and frontier benchmarks. Refract (refract-eval) fills a specific gap: separating AI model leaks from guardrail filter alerts with Wilson 95% confidence intervals before you ship.

Pick your primary goal to highlight the best-fit tool & pairing:
2×2 Guardrail & Model Eval CLI

Refract (refract-eval)

Apache-2.0

Standalone Python CLI built to split AI model leaks from guardrail filter alerts, measure benign-prompt false alarms, compute Wilson 95% confidence intervals, and gate CI via refract diff / refract gate / SARIF 2.1.0.

Best for
Calibrating production guardrails & CI release gates
Stack
Python 3.11+ · Prerelease installation
Broad LLM Vulnerability Scanner

NVIDIA garak

Apache-2.0

LLM vulnerability scanner with configurable probes, generators, and detectors.

Best for
Wide exploratory vulnerability sweeps across models
Stack
Python CLI & extensible probe plugins
Multi-Turn Red-Team Orchestrator

Microsoft PyRIT

MIT

Python Risk Identification Tool for generative AI: stateful multi-turn attack orchestration, prompt converters, campaign memory tracking, and extensible target connectors for security research teams.

Best for
Stateful multi-turn red-teaming & custom target pipelines
Stack
Python framework & orchestrators
Prompt, RAG & Red-Team Suite

Promptfoo

MIT

Developer-friendly Node.js/TypeScript evaluation harness for comparing prompts, RAG retrieval pipelines, model providers, deterministic assertions, and red-team plugins in application CI.

Best for
Prompt/RAG regression matrices in JS/TS workflows
Stack
Node.js / TypeScript CLI & web viewer
Extensible Research Eval Framework

UK AISI Inspect AI

MIT

Extensible Python evaluation framework built by the UK AI Security Institute for multi-step agentic tasks, tool-use sandboxes, frontier capability benchmarks, and custom research scorers.

Best for
Custom agentic & frontier capability research evals
Stack
Python SDK, sandboxed tasks & Inspect View
Standardized Academic Benchmark

CAIS HarmBench

MIT

Standardized academic evaluation framework and classifier suite from the Center for AI Safety for reproducible benchmarking of red-teaming attacks and model defenses.

Best for
Reproducible academic ASR attack/defense comparisons
Stack
Python research harness & benchmark datasets

Architectural Capability Matrix

Selected upstream capabilities reviewed on . An unverified cell means this review did not establish that capability.

Built-in Native core feature Custom / Scope Configurable or different focus
Architectural Capability Refract (refract-eval) Apache-2.0 · Python CLI NVIDIA garak Apache-2.0 · Python Microsoft PyRIT MIT · Python Promptfoo MIT · Node / TS UK AISI Inspect AI MIT · Python CAIS HarmBench MIT · Python
Splits AI Model Leak vs. Guardrail Filter Alert into a 2×2 Matrix? Yes — Native 2×2 Separates model leak vs. safe refusal across guardrail alert vs. quiet via detect_vs_complete. Probe detectors Scores target responses with detectors. Configurable scoring Scores responses with user-selected scorers. Assertions Evaluates outputs against configured assertions. Task scorers Evaluations define a scorer in each task. Behavior benchmark Evaluates model completions against standardized behaviors.
Quantifies Customer False-Alarm Rate on Benign Prompts & Safe Refusals? Yes — Primary Metric Paired benign controls measure false-positive filter alerts on safe prompts and model refusals. Unverified Unverified Configured tests Test cases can include expected outputs or assertions. Task-defined datasets Evaluation tasks select their test samples and scorers. Unverified
Reports 95% confidence intervals for rates? Yes — Wilson 95% CI Reports Wilson 95% confidence intervals for catch and false-positive rates. Probe results Reports results by probe. Unverified Unverified Unverified Attack success rate Reports attack success rate for benchmark behaviors.
Native Run-to-Run Regression Diff & CI Exit Gate (refract diff / refract gate / SARIF 2.1.0)? Yes — CLI + SARIF 2.1.0 Built-in refract diff, threshold refract gate, and GitHub Code Scanning SARIF export. Scan reports Produces reports for completed scans. Unverified CI integration Documents running evaluations in CI. Evaluation logs Produces logs viewable in Inspect View. Unverified
Built-in probe breadth — LLM probes or Multi-Turn Orchestration? Upstream refs: garak PyRIT promptfoo inspect_ai HarmBench Refract docs Focused Core Battery Compact deterministic security & benign-control battery tailored for fast guardrail calibration. Configurable probes Includes built-in probes and detectors. Multi-turn workflows Documents multi-turn risk assessments. Evaluation cases Supports config-driven tests for AI apps. Evaluation tasks Defines evaluations using datasets, solvers and scorers. Standardized behaviors Publishes a benchmark for harmful model behavior and refusal.
Better Together

How Security & AI Teams Pair These Tools in Production

Broad red-teaming discovers what can break a model. Calibrating a production guardrail makes sure your filter catches real leaks without blocking normal customers.

1. NVIDIA garak 2. Refract (refract-eval)

Use garak for model scanning and refract to measure guardrail catches and benign false alarms before release.

1. Microsoft PyRIT 2. Refract (refract-eval)

Use PyRIT orchestrators for deep multi-turn red-team campaigns, convert discovered bypass prompts into custom Refract test packs, and enforce refract gate + SARIF 2.1.0 regressions on pull requests.

1. Promptfoo 2. Refract (refract-eval)

Keep Promptfoo for TypeScript/Node prompt & RAG quality matrices in app CI, and pair it with refract when you need 2×2 guardrail-vs-model separation and Wilson 95% confidence intervals.

All third-party project names and trademarks (NVIDIA garak, Microsoft PyRIT, Promptfoo, UK AISI Inspect AI, CAIS HarmBench) belong to their respective owners and maintainers. References are for factual open-source comparison only and do not imply affiliation, sponsorship, or endorsement.

Apache-2.0 Forever

Open-Core Forever vs. Silvauren Team & Enterprise

The Refract CLI (refract-eval) is complete on its own and free under Apache-2.0. That covers every command, all 19 built-in probe packs, and the 2×2 matrix with Wilson, Clopper-Pearson, exact McNemar and SPRT statistics. It also covers the SHA-256 hash-chained SQLite store, the SARIF and JUnit exporters, and the GitHub Action. The CLI sends zero telemetry by default. Scans can use an explicitly selected telemetry plugin. These open-core features will stay free.

Capability Community / Open Core $0 forever · Apache-2.0 Refract Cloud Team Planned / Early Access — Design-Partner Intake Open, target $299/mo per organization Silvauren Enterprise & Managed Verification Planned / Early Access — Design-Partner Intake Open · custom annual agreement
Full local CLI: every command and all 29 built-in probe packs Included Scan, score, gate and report offline. No account or license key. Included The same open-source CLI, with nothing withheld. Included The same open-source CLI, with nothing withheld.
2×2 matrix with Wilson, Clopper-Pearson, exact McNemar and SPRT statistics Included refract matrix, power, sprt and diff run locally. Included Same open-source statistics engine. Included Same open-source statistics engine, inside your deployment.
GitHub Action PR gates, SARIF 2.1.0 and JUnit export Included refract gate fails the build, and SARIF feeds GitHub Code Scanning. Included Unchanged and free in public and private repositories. Included Unchanged and free in public and private repositories.
Evidence store and regression history Local SQLite SHA-256 record and audit chains, checked with refract verify. Planned hosted ledger Planned longitudinal drift history across repositories and models. Planned self-hosted Planned for your private VPC or air-gapped network.
Compliance evidence reports Open exports SARIF, JUnit, JSON, Markdown and HTML reports to attach to your own reviews. Signed PDF & JSON Mapped to EU AI Act Art. 15, NIST AI RMF, OWASP Top 10 for LLM Applications 2025 and SOC 2 controls for AI systems. Signed PDF & JSON Same framework mappings, plus regulatory probe packs for your domain.
Alerts and scheduled runs Your own CI Schedule runs with cron or GitHub Actions. Failing gates block merges. Slack & PagerDuty Planned regression alerts and scheduled nightly probes against staging. Planned per deployment Alert routing and schedules configured per deployment.
Domain-specific canary and regulatory probe packs Bring your own Load external packs with --pack, and author and share them freely. Bring your own External packs load exactly as they do in the open core. Custom packs Planned FinTech, HIPAA / PHI, Legal and autonomous tool-use coverage.
Deployment, identity and sandboxing Your machine or runner Runs wherever Python runs, including fully offline. Planned hosted service Planned hosted service operated by Silvauren Software LLC. Private VPC or air-gapped Planned SAML / OIDC single sign-on and isolated microVM sandboxes for dynamic conformance tests.
License, telemetry and data portability Zero telemetry by default Apache-2.0. Telemetry plugins are opt-in. Export anytime Uploads happen only when you configure them. The CLI license is unchanged. Export anytime Your evidence stays inside your environment.

Commercial tiers are planned, with manual design-partner intake open. Cloud Team targets $299 per organization per month. Enterprise deployment and managed verification are offered by custom annual agreement when available. See the scope, terms and contact instructions.

Signed compliance reports document test evidence mapped to each framework. They support an assessment or audit. They are not a certification, an EU AI Act conformity assessment, or a SOC 2 audit opinion.

Next: 2×2 Live Calculator → Read the docs