AI.Sentinel.AspNetCore 0.1.0

There is a newer version of this package available.
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
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="AI.Sentinel.AspNetCore" Version="0.1.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="AI.Sentinel.AspNetCore" Version="0.1.0" />
                    
Directory.Packages.props
<PackageReference Include="AI.Sentinel.AspNetCore" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add AI.Sentinel.AspNetCore --version 0.1.0
                    
#r "nuget: AI.Sentinel.AspNetCore, 0.1.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package AI.Sentinel.AspNetCore@0.1.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=AI.Sentinel.AspNetCore&version=0.1.0
                    
Install as a Cake Addin
#tool nuget:?package=AI.Sentinel.AspNetCore&version=0.1.0
                    
Install as a Cake Tool

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 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. 
Compatible target framework(s)
Included target framework(s) (in package)
Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.8.2 45 5/13/2026
1.8.0 98 5/3/2026
1.7.0 95 5/1/2026
1.6.0 92 5/1/2026
1.5.0 92 5/1/2026
1.4.1 90 4/30/2026
1.4.0 94 4/30/2026
1.3.0 94 4/30/2026
1.2.0 92 4/29/2026
1.1.0 99 4/29/2026
1.0.1 90 4/29/2026
1.0.0 96 4/29/2026
0.1.0 94 4/29/2026