prompt-injection-bench · packages
Every package shipped from reaatech/prompt-injection-bench, published or pending.
9 packages
@reaatech/pi-bench-adapters
Provides a collection of standardized adapter classes and a registry for integrating various prompt injection detection services and libraries. Each adapter implements a common interface with `detect` and `sanitize` methods, inheriting built-in SSRF protection, rate limiting, and input validation from a shared base class.
- status
- awaiting publish
@reaatech/pi-bench-core
Provides TypeScript types, Zod schemas, and a standardized attack taxonomy for validating and scoring prompt injection benchmarks. It exports utility functions and schema objects that require `zod` as a runtime dependency.
- status
- awaiting publish
@reaatech/pi-bench-corpus
Generates and validates datasets of prompt injection attacks using a template-based engine that applies obfuscation strategies like synonym replacement and character manipulation. It provides factory functions to create builders and validators that ensure balanced, versioned, and reproducible corpora for security testing.
- status
- awaiting publish
@reaatech/pi-bench-leaderboard
Manages and persists ranked leaderboard data for prompt injection defenses using a factory-provided manager object. It calculates composite scores and assigns performance tiers, with built-in support for JSON file I/O and pairwise entry comparisons.
- status
- awaiting publish
@reaatech/pi-bench-mcp-server
Exposes prompt-injection-bench operations as an MCP server, providing tools to execute benchmarks, compare defense results, and generate reports via stdio. It also includes utility functions for normalizing benchmark data and managing deterministic seeds for reproducible testing.
- status
- awaiting publish
@reaatech/pi-bench-observability
Provides pre-configured observability utilities for prompt injection benchmarks, including a Pino-based structured logger with PII sanitization, an OpenTelemetry-compatible metrics collector, and a span-based tracing manager. It exposes factory functions for creating these instances or provides global singletons for zero-config access.
- status
- awaiting publish
@reaatech/pi-bench-runner
Executes prompt injection benchmarks by running attack suites against defense adapters in parallel with configurable timeouts and progress tracking. It provides factory functions to create a benchmark engine, attack executor, and defense evaluator, requiring a compatible defense adapter implementation to function.
- status
- awaiting publish
@reaatech/pi-bench-scoring
Calculates weighted scores, statistical significance, and effect sizes for prompt injection defense benchmarks. It provides a collection of utility functions for computing metrics like Wilson score intervals, Cohen's h, and z-tests from benchmark result objects.
- status
- awaiting publish
prompt-injection-bench
Evaluates LLM prompt injection defenses using a CLI for running benchmarks and a library of re-exported APIs for programmatic execution. It provides a suite of attack corpora and defense adapters to measure and compare the security performance of different injection mitigation strategies.
- status
- awaiting publish
