Open Source ยท Production Ready

Guardrails for
Production LLMs

5-layer prompt injection detection with vector memory, canary token protection, and MCP Shield. Sub-millisecond latency. Self-learning.

Basalt Shield dashboard
<1ms
Detection latency
5
Defense layers
93%
Attack similarity detection
166
Tests passing
94%
Test coverage
5-Layer Defense Stack

Each request passes through multiple independent detection layers before reaching your LLM.

Layer 01

Ultra-Fast Heuristics

Regex, YARA, or hybrid pattern engine. Catches role-override attempts, HTTP exfiltration patterns, suspicious encoding.

<0.001ms
Layer 02

ML Classification

HuggingFace model integration with graceful fallback. Recommended: protectai/deberta-v3-base-prompt-injection.

Layer 03

Vector Attack Memory

Self-learning attack database using vector embeddings. Detects attack variants without LLM calls.

93% accuracy ยท 0.024ms
Layer 04

Canary Token Detection

Hidden tokens injected into prompts. Response validation catches injection attempts trying to leak context.

Layer 05

MCP Shield

Security proxy for Model Context Protocol. Blocks chain attacks, path traversal, and sensitive data exfiltration from tool responses.

Decision

Context Integration

Aggregates signals across all layers. Configurable thresholds, audit logging, and real-time threat intelligence dashboard.

Everything you need to ship safely
โšก

Sub-millisecond

Most prompts evaluated in under 1ms with the heuristic engine.

๐Ÿง 

Self-learning

Automatically stores new attack patterns for future detection.

๐Ÿ”—

MCP-aware

First-class support for Model Context Protocol tool security.

๐Ÿ“Š

Analytics dashboard

Real-time metrics, threat intelligence, and layer-by-layer breakdowns.

๐Ÿ—๏ธ

Microservices

API Gateway, Pattern Service, Detection Service with Redis cache.

๐Ÿงช

Production tested

166 tests, 94% coverage, FastAPI, Poetry, Python 3.9+.

Start protecting your LLM today

Open source, self-hosted, production-ready. Drop it in front of any LLM API in minutes.