Skip to content
This repository was archived by the owner on Mar 31, 2026. It is now read-only.

Latest commit

 

History

History

README.md

SENTINEL Brain

SENTINEL Brain

🧠 217 Detection Engines — Strange Math™ Protection

Engines Python Latency License


🔥 What is SENTINEL Brain?

SENTINEL Brain is the detection core of the SENTINEL AI Security Platform. It analyzes every prompt and response in real-time using 217 specialized engines.

Category Engines Detection
🎯 Injection 30+ Prompt injection, jailbreak, Policy Puppetry
🤖 Agentic 25+ RAG poisoning, tool hijacking, memory attacks
📐 Mathematical 15+ TDA, Sheaf Coherence, Chaos Theory
🔒 Privacy 10+ PII detection, data leakage prevention
📦 Supply Chain 5+ Pickle security, serialization attacks

🚀 Quick Start

pip install sentinel-llm-security
from sentinel import scan

result = scan("Ignore previous instructions and...")
print(result.is_safe)      # False
print(result.risk_score)   # 0.95
print(result.detections)   # ['prompt_injection', 'policy_puppetry']

📐 Strange Math™

What makes SENTINEL different from keyword matching?

Standard Approach SENTINEL Strange Math™
Keyword matching Topological Data Analysis
Regex patterns Sheaf Coherence Theory
Simple ML classifiers Hyperbolic Geometry
Static rules Optimal Transport
Chaos Theory

Example: TDA Analyzer

from sentinel.brain.engines import TDAAnalyzer

analyzer = TDAAnalyzer()
result = analyzer.analyze(prompt)
# Uses persistent homology to detect semantic anomalies

📊 Benchmarks

Engine Category Precision Recall F1 P50 P99
Injection (Tier 1) 97% 94% 95.5% 3ms 12ms
Jailbreak (Tier 2) 95% 91% 93% 8ms 25ms
RAG Poisoning 92% 89% 90.5% 15ms 45ms
TDA Analyzer (Tier 3) 89% 96% 92.4% 45ms 120ms
Combined Pipeline 94% 93% 93.5% 18ms 85ms

Tested on SENTINEL Strike payloads + internal validation set.


🏗️ Architecture

src/brain/
├── engines/         # 217 detection engines
│   ├── injection/   # Prompt injection detection
│   ├── jailbreak/   # Jailbreak prevention
│   ├── agentic/     # RAG/Agent/Tool protection
│   ├── mathematical/ # TDA, Sheaf, Chaos engines
│   └── privacy/     # PII, secrets detection
├── core/            # Engine orchestration
├── config/          # Engine configuration
├── api/             # REST/gRPC endpoints
└── integrations/    # OpenAI, Anthropic, LangChain

🔌 Integrations

Built-in support for:

  • LLM Providers: OpenAI, Anthropic, Google, Ollama, HuggingFace
  • Frameworks: LangChain, LlamaIndex, Haystack
  • Vector Stores: Pinecone, Weaviate, Qdrant, Chroma
  • Orchestration: FastAPI, Flask, Django

📚 Related


SENTINEL Brain
217 Reasons You're Protected