AI.Sentinel.AspNetCore
0.1.0
See the version list below for details.
dotnet add package AI.Sentinel.AspNetCore --version 0.1.0
NuGet\Install-Package AI.Sentinel.AspNetCore -Version 0.1.0
<PackageReference Include="AI.Sentinel.AspNetCore" Version="0.1.0" />
<PackageVersion Include="AI.Sentinel.AspNetCore" Version="0.1.0" />
<PackageReference Include="AI.Sentinel.AspNetCore" />
paket add AI.Sentinel.AspNetCore --version 0.1.0
#r "nuget: AI.Sentinel.AspNetCore, 0.1.0"
#:package AI.Sentinel.AspNetCore@0.1.0
#addin nuget:?package=AI.Sentinel.AspNetCore&version=0.1.0
#tool nuget:?package=AI.Sentinel.AspNetCore&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
- AI.Sentinel (>= 0.1.0)
-
net8.0
- AI.Sentinel (>= 0.1.0)
NuGet packages
This package is not used by any NuGet packages.
GitHub repositories
This package is not used by any popular GitHub repositories.