1 of 7

LM

LURIEN MATRIX

LURIEN MATRIX

A 6 layer proactive�firewall for LLMs.

Lurien turns LLM security from reactive guardrails into a proactive firewall layer — intercepting prompt injections, jailbreaks, and data exfiltration before they ever reach the model.

2 of 7

01 / PIPELINE

Lurien Matrix

ARCHITECTURE

Six layers. Fail fast.

Each request passes through six distinct layers. Any layer above threshold short-circuits and blocks — so a known attack never reaches the expensive layers.

PIPELINE · FAIL-FAST

8–35 ms

Total pipeline processing on a warm instance. Most checks complete in layer 1 or 2.

/ LAYER FLOW · SEQUENTIAL · RISK-WEIGHTED ENSEMBLE

L1

Canary Token

Detects data leaks by validating hidden tokens injected in system prompts.

~1 ms

Exfil

L2

Rule Engine

Pattern / regex / reversed-text. Stops known injections before any ML work.

<1 ms

Known

L3

Heuristics

Instruction density, character entropy, role anomalies. Weighted signal.

~2 ms

Structure

L4

Embeddings

FAISS nearest-neighbor against pre-computed attack vector space.

~12 ms

Semantic

L5

ML Classifier

Fine-tuned DistilBERT (ONNX). Catches cascading / zero-day vectors.

~18 ms

Unknown

L6

Context Policy

Validates intent profile. Stops persona hijack to wrong domain.

~2 ms

Scope

CUMULATIVE RISK ENSEMBLE

Weak signals from multiple layers fuse into a single composite risk score. Block threshold: 0.50.

3 of 7

02 / DETECTION

Lurien Matrix

ENGINE

One ML model is brittle.

Six signals are robust.

COMPOSITE RISK SCORE

0.00–1.00

Per-layer weighted scores fuse into one verdict. Threshold: 0.50 (configurable per key).

WHY A LAYERED ENSEMBLE

Each layer catches a different attack shape — and undermines the others' blind spots.

A prompt that bypasses regex still exhibits heuristic anomalies. An adversarial paraphrase still hits the embedding nearest neighbor. A semantic miss still trips the context policy.

DETECTOR

CATCHES

SPEED

HOW IT WORKS

Rule Engine

Known patterns & strings

<1 ms

Instant

Regex, reversed-text checks, deny-list signatures. Stops every known injection before any ML work.

Heuristics

Anomalous structure

~2 ms

Fast

Instruction density, character entropy, role-assignment anomalies. No ML — pure signal math.

Embeddings

Semantic variants

~12 ms

Medium

FAISS nearest-neighbor against a pre-computed attack vector space (all-MiniLM-L6-v2).

ML Classifier

Unknown / cascading

~18 ms

Deep

DistilBERT (ONNX) sequence classifier. Categorizes role_override, goal_hijacking, tool_manipulation.

Context Policy

Wrong-domain drift

~2 ms

Instant

Cross-references prompt intent against the key's Intent Profile (HR Bot, Coding Assistant, R&D...).

Canary Tokens

Data exfiltration

~1 ms

Instant

Cryptographically injected into system prompts. If a model leaks one, the pipeline flags it post-call.

CUMULATIVE RISK

Two weak signals = strong verdict. No single detector carries the burden.

4 of 7

03 / STACK

Lurien Matrix

SECTIONS 06

Engineered for speed, isolation, and producer-grade ops.

Every dependency chosen for a reason — async-native Python, ONNX for portable inference, FAISS for O(log n) nearest neighbor.

/ 01

Core engine

Python · FastAPI

Async HTTP framework

httpx

Async proxy engine

Pydantic

Payload schema

Async · OpenAPI

/ 02

ML / IR

DistilBERT (ONNX)

Sequence classifier

FAISS

Vector nearest neighbor

SentenceTransformers

all-MiniLM-L6-v2

CPU-portable

/ 03

Data plane

MongoDB (Motor)

Alerting · keys · audit

Redis (Upstash)

Sliding-window rate limit

Neo4j

Threat intelligence graph

Async-native

/ 04

Dashboard

React

UI framework

D3.js

Spatial threat graphs

Recharts

Live telemetry

Tailwind · Vite

Styling · tooling

Real-time

/ 05

SDK

lurien-matrix

Node.js · npm

fw.middleware()

Express drop-in

fw.openai.*

Drop-in provider client

fw.check()

Direct single assessment

Three patterns

Backend hosting

Hugging Face Space

Docker, CPU-basic tier

Database

MongoDB Atlas + Upstash

Remote · managed

Frontend hosting

Vercel

vercel.app edge CDN

Repo

Monorepo

backend · frontend · npm-package

5 of 7

04 / BENCHMARKS

Lurien Matrix

NUMBERS

96 % catch · 2 % false.

Benchmarked against the live HF Space using 50 known-malicious + 50 benign prompts. Single-instance baseline; numbers below are honest, including the test environment.

/ TRUE POSITIVE RATE

96%

48 / 50 known-malicious prompts blocked.

n = 50 · hold-out

/ FALSE POSITIVE RATE

2%

1 / 50 safe prompts flagged — within target band.

n = 50 · hold-out

/ MEDIAN END-TO-END

1.5s

Includes cold-start network round-trip. P95 = 1.9 s.

Transatlantic test

/ PIPELINE-ONLY

8–35ms

All six layers. Server-side. Everything else is network.

Industry-class

LAYER LATENCY BREAKDOWN · MS · CUMULATIVE

~1

L1 · Canary

<1

L2 · Rules

~2

L3 · Heuristics

~12

L4 · Embeddings

~18

L5 · ML (DistilBERT)

~2

L6 · Context

HONEST FOOTNOTE

These figures come from a cold-start HF Space (CPU-basic) over a transatlantic link. Pipeline-only cost is 8–35 ms; the rest is container warm-up. Warm, same-region: under 100 ms. Reproducible: scripts/benchmark.py.

6 of 7

05 / DASHBOARD

Lurien Matrix

WORKING PRODUCT

A live telemetry surface, not a static demo.

LIVE DEMO URL

lurienmatrix.vercel.app

DEMO ACCOUNT CREDENTIALS

demo@lurien.ai / demo1234 · 4 pre-seeded keys · 30 days telemetry

Try it →

7 of 7

6 / ROADMAP

Lurien Matrix

ROADMAP

From prompt firewall to full agent security.

Today we secure prompts. Tomorrow we secure tool calls, streaming output, and entire agent workflows.

/ PHASE 01 · NOW

Prompt firewall

What shipped today — the production-grade proxy every reviewer just saw.

SDK v1.0

npm · Express middleware · drop-in proxy · direct check.

Live telemetry dashboard

Live threat rates, request streams, spatial graphs.

Four-provider support

OpenAI · Anthropic · Gemini · Groq.

/ PHASE 02 · NEXT

Tool-call firewall

Extend interception past the prompt. Audit and shape what agents call.

Tool-call policy engine

Per-tool allow / deny / require-approval semantics.

MCP security

Treat MCP servers as a first-class trust boundary.

Streaming output monitoring

Detect exfil mid-stream via canary-token validation.

Open-source SDK

Publish lurien-matrix core under MIT.

/ PHASE 03 · BEYOND

Enterprise firewall

From a single-app SDK to a security operations surface across teams of agents.

Enterprise dashboard

Department-scoped policies · SLA-grade alerting.

Multi-tenant SaaS

Org / unit / key hierarchy with audit retention.

On-prem deployment

Air-gapped install with offline model registry.

/ CLOSING STATEMENT

Lurien turns LLM security from reactive guardrails into a proactive firewall layer.

lurienmatrix.vercel.app

demo@lurien.ai / demo1234