AI.Sentinel
0.1.0
See the version list below for details.
dotnet add package AI.Sentinel --version 0.1.0
NuGet\Install-Package AI.Sentinel -Version 0.1.0
<PackageReference Include="AI.Sentinel" Version="0.1.0" />
<PackageVersion Include="AI.Sentinel" Version="0.1.0" />
<PackageReference Include="AI.Sentinel" />
paket add AI.Sentinel --version 0.1.0
#r "nuget: AI.Sentinel, 0.1.0"
#:package AI.Sentinel@0.1.0
#addin nuget:?package=AI.Sentinel&version=0.1.0
#tool nuget:?package=AI.Sentinel&version=0.1.0
AI.Sentinel
Security monitoring middleware for IChatClient (Microsoft.Extensions.AI). Detects prompt injection, credential exposure, hallucinations, and operational anomalies in real time — with an embedded dashboard.
Packages
| Package | Description |
|---|---|
AI.Sentinel |
Core middleware — 25 detectors, intervention engine, audit trail |
AI.Sentinel.AspNetCore |
Embedded dashboard at /ai-sentinel |
Quick Start
// Program.cs
builder.Services.AddAISentinel(opts =>
{
opts.OnCritical = SentinelAction.Quarantine;
opts.OnHigh = SentinelAction.Alert;
});
builder.Services.AddChatClient(pipeline =>
pipeline.UseAISentinel()
.Use(new OpenAIChatClient(...)));
app.UseAISentinel("/ai-sentinel"); // dashboard
Detectors (25)
Security (17): Prompt injection, credential exposure, tool poisoning, data exfiltration, jailbreak, privilege escalation, and more.
Hallucination (5): Phantom citations, cross-agent contradictions, source grounding, confidence decay, self-consistency.
Operational (8): Blank responses, repetition loops, incomplete code blocks, placeholder text, and more.
Hybrid Detection
Rule-based fast path for all 25 detectors. Detectors that implement ILlmEscalatingDetector optionally fire a second-pass LLM classifier when the rule-based result is Medium or higher — keeping costs low while catching subtle threats.
Dashboard
Embedded Razor-free dashboard served via app.UseAISentinel(). No npm, no JS framework — HTMX polling + SSE.
- Threat Risk Score ring gauge (0-100, SAFE/WATCH/ALERT/ISOLATE)
- Live event feed with severity badges
- Detector hit stats
License
MIT
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net8.0 is compatible. net8.0-android was computed. net8.0-browser was computed. net8.0-ios was computed. net8.0-maccatalyst was computed. net8.0-macos was computed. net8.0-tvos was computed. net8.0-windows was computed. net9.0 was computed. net9.0-android was computed. net9.0-browser was computed. net9.0-ios was computed. net9.0-maccatalyst was computed. net9.0-macos was computed. net9.0-tvos was computed. net9.0-windows was computed. net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- Microsoft.Extensions.AI (>= 9.10.2)
- Microsoft.Extensions.AI.Abstractions (>= 9.10.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.15)
- Microsoft.Extensions.Options (>= 9.0.15)
- ZeroAlloc.AsyncEvents (>= 1.0.0)
- ZeroAlloc.Collections (>= 0.1.5)
- ZeroAlloc.Mediator (>= 1.1.8)
- ZeroAlloc.Mediator.Generator (>= 1.1.8)
- ZeroAlloc.Results (>= 0.1.4)
- ZeroAlloc.Validation (>= 0.2.3)
- ZeroAlloc.ValueObjects (>= 1.1.6)
-
net8.0
- Microsoft.Extensions.AI (>= 9.10.2)
- Microsoft.Extensions.AI.Abstractions (>= 9.10.2)
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.15)
- Microsoft.Extensions.Options (>= 9.0.15)
- ZeroAlloc.AsyncEvents (>= 1.0.0)
- ZeroAlloc.Collections (>= 0.1.5)
- ZeroAlloc.Mediator (>= 1.1.8)
- ZeroAlloc.Mediator.Generator (>= 1.1.8)
- ZeroAlloc.Results (>= 0.1.4)
- ZeroAlloc.Validation (>= 0.2.3)
- ZeroAlloc.ValueObjects (>= 1.1.6)
NuGet packages (10)
Showing the top 5 NuGet packages that depend on AI.Sentinel:
| Package | Downloads |
|---|---|
|
AI.Sentinel.ClaudeCode
Claude Code hook adapter for AI.Sentinel — scan UserPromptSubmit, PreToolUse, and PostToolUse hook payloads through the detector pipeline. |
|
|
AI.Sentinel.AzureSentinel
Forward AI.Sentinel audit entries to Azure Sentinel via the Logs Ingestion API. |
|
|
AI.Sentinel.AspNetCore
Embedded ASP.NET Core dashboard for AI.Sentinel — real-time threat monitoring, audit trail, and agent graph. |
|
|
AI.Sentinel.Sqlite
Persistent SQLite-backed audit store for AI.Sentinel — survives restarts, maintains the hash chain, supports time-based retention. |
|
|
AI.Sentinel.Detectors.Sdk
SDK for writing and testing custom AI.Sentinel detectors. Provides public test helpers (SentinelContextBuilder, FakeEmbeddingGenerator) that mirror the internal test infrastructure. |
GitHub repositories
This package is not used by any popular GitHub repositories.
| Version | Downloads | Last Updated |
|---|---|---|
| 2.0.1 | 160 | 7/25/2026 |
| 2.0.0 | 209 | 7/23/2026 |
| 1.8.6 | 204 | 7/23/2026 |
| 1.8.5 | 210 | 7/23/2026 |
| 1.8.4 | 207 | 7/23/2026 |
| 1.8.3 | 281 | 7/19/2026 |
| 1.8.2 | 334 | 5/13/2026 |
| 1.8.0 | 300 | 5/3/2026 |
| 1.7.0 | 286 | 5/1/2026 |
| 1.6.0 | 272 | 5/1/2026 |
| 1.5.0 | 281 | 5/1/2026 |
| 1.4.1 | 274 | 4/30/2026 |
| 1.4.0 | 252 | 4/30/2026 |
| 1.3.0 | 235 | 4/30/2026 |
| 1.2.0 | 249 | 4/29/2026 |
| 1.1.0 | 252 | 4/29/2026 |
| 1.0.1 | 240 | 4/29/2026 |
| 1.0.0 | 240 | 4/29/2026 |
| 0.1.0 | 129 | 4/29/2026 |