SentinelAI.Core
0.2.0-preview.1
dotnet add package SentinelAI.Core --version 0.2.0-preview.1
NuGet\Install-Package SentinelAI.Core -Version 0.2.0-preview.1
<PackageReference Include="SentinelAI.Core" Version="0.2.0-preview.1" />
<PackageVersion Include="SentinelAI.Core" Version="0.2.0-preview.1" />
<PackageReference Include="SentinelAI.Core" />
paket add SentinelAI.Core --version 0.2.0-preview.1
#r "nuget: SentinelAI.Core, 0.2.0-preview.1"
#:package SentinelAI.Core@0.2.0-preview.1
#addin nuget:?package=SentinelAI.Core&version=0.2.0-preview.1&prerelease
#tool nuget:?package=SentinelAI.Core&version=0.2.0-preview.1&prerelease
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 anyIChatClientSentinelAI.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 anauditmode 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
SentinelAIactivity 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 | 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 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. |
-
net8.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.10)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.10)
- Microsoft.Extensions.Http (>= 9.0.10)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.10)
- YamlDotNet (>= 18.1.0)
-
net9.0
- Microsoft.Extensions.DependencyInjection.Abstractions (>= 9.0.10)
- Microsoft.Extensions.Hosting.Abstractions (>= 9.0.10)
- Microsoft.Extensions.Http (>= 9.0.10)
- Microsoft.Extensions.Logging.Abstractions (>= 9.0.10)
- YamlDotNet (>= 18.1.0)
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 |