Prompt Injection
Blocks instruction override, ignore-previous, system-prompt leak, and roleplay escapes. Plus 52 multilingual patterns across 16 language codes.
12 ship-ready security layers chain into a single GuardrailEngine that catches prompt injection, jailbreaks, secret leaks, PII, and command injection across 43 framework, LLM, agent, RAG, and memory integrations.
p50 benchmark: Apple Silicon, single core, Node 22 — measured, not a guaranteed SLA. See the methodology.
Pattern-based detection — no LLM-in-the-loop tax, no second model to run. Every verdict is reproducible.
Validators run in-process. No network hop, no rate limit, no provider outage to cascade.
Prompts never leave your process. Zero analytics endpoints, zero remote config fetches, zero opt-out checkbox needed.
Express, Fastify, Next.js, OpenAI, Anthropic, LangChain, ElizaOS, MCP — wire it once, protect everywhere.
Each layer is a named module under packages/core/src. Chain them, swap them, override them. Every call leaves a tamper-evident trace.
Blocks instruction override, ignore-previous, system-prompt leak, and roleplay escapes. Plus 52 multilingual patterns across 16 language codes.
Catches DAN, persona, roleplay, social engineering, and adversarial framings.
Catches paraphrase and wording tricks that slip past naive keyword filters before scanning.
Decodes base64, hex, ROT13, and leetspeak, then scans the decoded text again so smuggled payloads cannot hide behind an encoding.
Detects emails, phones, SSNs, and addresses across US, EU, and international formats — detected and redacted on the way out.
Deterministic harm-goal detection with no LLM judge in the path — the intent signal never leaves your process.
Flags credential-phishing and pretext-coercion patterns that try to talk an agent out of its own guardrails.
Spots delimiter games and context-overflow attempts used to pivot tool calls.
Provenance-gated scanning of retrieved docs, tool results, and memory writes. Strict where attacks enter — never fires on raw user text.
Flags leaked-credential types — API keys, AWS creds, GitHub tokens, JWT, OpenAI sk-proj-* (post-2024), Mailgun, and more.
Blocks command-injection patterns in shell-execution tool calls, and strips reflected / DOM-based markup injection from output.
Chunk-level inspection of LLM streams. Cuts off mid-flight, at the edge, if a layer trips.
A typical wallet-drain attempt hits the engine at step 1, gets pattern-matched at step 3, and the rest of the chain never runs. Open the ElizaOS demo for the full receipt.
43 integration packages cover frameworks, LLM providers, agent runtimes, RAG stores, memory, sandboxes, and bridges. Auto-detection in the install wizard wires the right pieces in seconds.
HTTP layers that mount BonkLM as middleware on the inbound request.
Wrap a model client so prompts and completions pass through the engine.
Validators + guards at every agent step — tool calls, retrieved docs, memory writes.
Inspect retrieved documents before they reach the model prompt.
Guard long-term agent memory against poisoning and PII leakage.
Adapters into other security frameworks and protocols.
One install, one import, one guard. The rest is configuration.
What BonkLM is, what it catches, and where it sits in the call path.
We ran a stock ElizaOS agent with plugin-solana on devnet. The root cause is a missing authentication control, not a clever prompt — and a bio-only injection never reaches the transfer. When a poisoned address does land in the user-message corpus, BonkLM swings at the tool_call surface — read the full breakdown with the on-chain receipt.