SentinelAI.Core 0.1.0-preview.1

This is a prerelease version of SentinelAI.Core.
There is a newer prerelease version of this package available.
See the version list below for details.
dotnet add package SentinelAI.Core --version 0.1.0-preview.1
                    
NuGet\Install-Package SentinelAI.Core -Version 0.1.0-preview.1
                    
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="SentinelAI.Core" Version="0.1.0-preview.1" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="SentinelAI.Core" Version="0.1.0-preview.1" />
                    
Directory.Packages.props
<PackageReference Include="SentinelAI.Core" />
                    
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 SentinelAI.Core --version 0.1.0-preview.1
                    
#r "nuget: SentinelAI.Core, 0.1.0-preview.1"
                    
#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 SentinelAI.Core@0.1.0-preview.1
                    
#: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=SentinelAI.Core&version=0.1.0-preview.1&prerelease
                    
Install as a Cake Addin
#tool nuget:?package=SentinelAI.Core&version=0.1.0-preview.1&prerelease
                    
Install as a Cake Tool

SentinelAI.Core

The engine behind SentinelAI.NET: a YAML policy, scanners, a tool-call firewall and OpenTelemetry security events. It has no ASP.NET Core or AI-SDK dependency.

Preview. The API may change before 1.0.

Most apps should install an integration instead:

  • SentinelAI.Extensions.AI: .UseSentinel() for any IChatClient
  • SentinelAI.AspNetCore: the caller from the signed-in user, and an endpoint filter for minimal APIs

Use directly

builder.Services.AddSentinelAI();   // sentinel.yaml, or a built-in default if it's missing

// Scan content yourself
var decision = await engine.ScanAsync(new SecurityScanContext(ContentSource.RetrievedDocument, chunk));
if (decision.Action == SecurityAction.Quarantine) { /* drop the chunk */ }

// Authorize a tool call your own code is about to run
var verdict = toolGuard.Evaluate(call, new ToolCallerContext(userId, ownerId, "my-agent", latestUserMessage));

What's included

  • Scanners:
    • Prompt-injection rules on normalized text (Unicode folding, invisible-character stripping, tag-character decoding)
    • Secrets
    • PII, with a Luhn check for card numbers
    • Exfiltration URLs
    • An HTTP adapter for external classifiers
  • Policy actions: allow, redact, quarantine, require_approval, block, plus an audit mode that records decisions without enforcing them.
  • ToolGuard: unknown tools are denied by default, with ownership checks, amount limits, user-intent checks and destination allowlists.
  • OpenTelemetry: the SentinelAI activity source and meter. Add them to your tracer and meter providers.

The built-in default policy is available as PolicyLoader.DefaultYaml, a starting point for your own sentinel.yaml.

More: https://sentinelaidotnet.com · https://github.com/surya3524/sentinelai-net

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 is compatible.  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 was computed.  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 (3)

Showing the top 3 NuGet packages that depend on SentinelAI.Core:

Package Downloads
SentinelAI.Extensions.AI

SentinelAI for Microsoft.Extensions.AI: add .UseSentinel() to any IChatClient pipeline to scan prompts and replies, authorize every tool call before it runs, and scan tool results for injected instructions.

SentinelAI.AspNetCore

SentinelAI for ASP.NET Core: take the caller for tool authorization from the signed-in user, and scan prompts in minimal API requests with an endpoint filter.

SentinelAI.ApiFirewall

A request firewall for ASP.NET Core APIs: inspects JSON, YAML, form data and uploaded files (including zip archives) for template injection, unsafe deserialization, dangerous URLs and SSRF, path traversal and schema violations, before your code or background workers process them.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
0.2.0-preview.1 91 10/19/2026
0.1.0-preview.1 72 10/17/2026