Prompt filters don't stop an AI agent once indirect prompt injection hijacks its next tool call. BaseLayerOS wraps your existing MCP servers and LLM APIs at the execution boundary—blocking unauthorized tools, path traversal, and data exfiltration in sub-millisecond Rust, with zero changes to your agent codebase.
# 1. Safe read-only tool call passes in 0.18 ms [seq #14] ALLOW tool=search_kb target=kb://refund-policy | rule=RULE_SAFE_PASS | jcs_sha256=8f3c91a0... # 2. Poisoned PDF injects hidden webhook exfiltration inside an allowed tool's arguments [seq #15] BLOCK tool=read_doc target=kb://q4-roadmap | rule=RULE_TARGET_BOUNDARY ("https://evil.example/leak") → Tool never executed. Spec-compliant JSON-RPC error returned cleanly to host LLM. # 3. State-mutating action paused for Human-in-the-Loop sign-off [seq #16] HITL tool=send_email target=mailto:ops@corp | Awaiting operator Approve/Deny at http://127.0.0.1:8080
No black-box LLM-judging-LLM latency, no cloud data harvesting, and no codebase rewrites. Every proposed tool call crosses four deterministic checks before touching real infrastructure.
Eliminates parser-differential tricks between Python sidecars, HTTP gateways, and Rust enforcement. Payloads are canonicalized into deterministic UTF-8 key order and hashed with SHA-256 before policy evaluation.
Read-only foundation tools pass automatically. Destructive or unknown tools fail closed. Every nested JSON string, array, and key is scanned recursively against path traversal (..), secret files (.env, .ssh), cloud metadata SSRF, and unapproved external domains.
Wrap any local or containerized MCP stdio server in a single command inside Claude Code, Cursor, Windsurf, or custom internal orchestrators—or test immediately over HTTP using our zero-install /v1 OpenAI-compatible edge gate.
Every allow, block, and operator approval commits to prev_entry_hash, active policy_sha256, and canonical entry_hash. Deleting or modifying a single historical log line breaks baselayer_os verify immediately.
Text classifiers inspect conversation tone; BaseLayerOS governs actual system capability at the wire boundary.
| Security Dimension | LLM Prompt Guardrails / Classifiers | BaseLayerOS v1.0.0 (Rust Substrate) |
|---|---|---|
| Enforcement Mechanism | Probabilistic token prediction (jailbreakable) | Deterministic Rust invariants (fail-closed) |
| Added Latency & Token Cost | 200–1,200 ms + extra inference bill per turn | < 1 ms local execution • $0 token cost |
| Nested Tool Argument Exfiltration | Often missed inside valid-looking JSON calls | Recursive key/value URI & path boundary inspection |
| Data Residency & Sovereignty | Prompts shipped to third-party US SaaS APIs | 100% On-Prem / VPC local binary & local JSONL vault |
| Audit Log Integrity | Standard mutable database rows | RFC 8785 JCS + SHA-256 cryptographic hash chain |
100% independent Canadian software infrastructure. No per-token taxes, no mandatory cloud telemetry, and instant self-serve or invoice checkout.
base_url OpenAI-compatible interceptorbaselayer_os + kali_gate workspacestdio zero-code-change proxybaselayer_os verify)policy.json & domain/schema rules authored for you