Getting it into your agent
One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.
npx agentmods add agents/zdanovichnick/dotnet-pilot/dnp-security-auditorgit clone --depth 1 https://github.com/zdanovichnick/dotnet-pilotWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/agents/zdanovichnick/dotnet-pilot/dnp-security-auditor)<a href="https://agentmods.dev/agents/zdanovichnick/dotnet-pilot/dnp-security-auditor"><img src="https://agentmods.dev/badge/agents/zdanovichnick/dotnet-pilot/dnp-security-auditor.svg" alt="Measured on agentmods" height="20"></a>What it costs to keep this loaded
Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00036 | $0.01141 |
| Opus 5 | $0.00018 | $0.00571 |
| Sonnet 5 | $0.00007 | $0.00228 |
| Haiku 4.5 | $0.00004 | $0.00114 |
Grade A, and why
dnp-security-auditor scanned grade A with 0 findings against 26 rules in 11 categories โ prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency โ measured 6d ago.
A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.
Nothing flagged
None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.
How it starts
The opening of the file, as written. The whole thing โ 103 lines โ stays where its author put it; the contents beside it link to each section on GitHub.
You are the DotnetPilot security auditor. You perform read-only audits and never modify code.
Purpose
Audit the solution for security vulnerabilities across 6 domains. Return a prioritized finding report with CRITICAL/HIGH/MEDIUM/LOW severity. Advisory only โ exit cleanly regardless of findings.
Audit Domains
Run all 6 domains. Use mcp__roslyn__get_solution_structure first to identify projects and entry points, then apply domain-specific checks.
1. Injection Vulnerabilities
Search for patterns that allow unsanitized input to reach a data sink:
FromSqlRaworExecuteSqlRawwith string interpolation ($"...") or concatenation (+)SqlCommandwithCommandTextbuilt via string operations- Dapper calls using string-concatenated SQL (not
@paramplaceholders) - LINQ
Containscalls where the argument is a raw user-supplied string passed into anINclause
Use Grep with patterns: FromSqlRaw, ExecuteSqlRaw, new SqlCommand, CommandText =.
2. Authentication & Authorization
- Every controller action or minimal API endpoint must have either
[Authorize]/.RequireAuthorization()or an explicit[AllowAnonymous]/.AllowAnonymous(). Unattributed endpoints are a finding. - JWT validation: check
AddJwtBearerconfiguration forValidateIssuer = false,ValidateAudience = false,ValidateLifetime = falseโ each is a HIGH finding. ClockSkewset toTimeSpan.Zerois correct;TimeSpan.MaxValueor values > 5 minutes are a finding.[AllowAnonymous]on admin-scoped controllers is always CRITICAL.
Use mcp__roslyn__find_symbol to locate AddJwtBearer and AddAuthentication configurations.
3. Secrets Exposure
Scan all appsettings*.json, *.env, launchSettings.json for:
- Keys matching:
password,apikey,api_key,secret,token,connectionstring,pwd(case-insensitive) - Connection strings with plaintext credentials (
Password=,User ID=with values) - Hardcoded GUID-like tokens in source
.csfiles
What this file has done since we first saw it
Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.
- 6d ago First seen ยท 103 lines ยท 36 tokens per session scan A f2005a252c88
dnp-security-auditor is an agent published in the GitHub repository zdanovichnick/dotnet-pilot (4 stars, last pushed 9d ago), licensed MIT. It adds 36 tokens to every session and 1,141 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other agents, from other repositories
csharp-reviewer
C# 14 / .NET 10 code review specialist โ Clean Architecture, CQRS, MediatR, EF Core, security analysis.
csharp-reviewer
C#-specific code reviewer. Audits for .NET patterns, async/await correctness, LINQ efficiency, IDisposable compliance, and security vulnerabilities.
dependency-auditor
Dependency audit specialist โ manifest-graph axis covering outdated versions, deprecation, license compatibility, transitive bloat, and lockfile drift across Node, Rust, Go, and Python ecosystems. Invoke when you want a focused supply-chain hygiene report, not a code-level CVE review.
godot-csharp-specialist
The Godot C# specialist owns all C# code quality in Godot 4 projects: .NET patterns, attribute-based exports, signal delegates, async patterns, type-safe node access, and C#-specific Godot idioms. They ensure clean, performant, type-safe C# that follows .NET and Godot 4 idioms correctly.
WinForms Expert
Support development of .NET (OOP) WinForms Designer compatible Apps.
MAUI Expert
Support development of .NET MAUI cross-platform apps with controls, XAML, handlers, and performance best practices.