Borrowing it
Nothing to install: this file belongs to dinhnguyenngoc/spec-driven-claude-code. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/dinhnguyenngoc/spec-driven-claude-code/main/.claude/agents/security-auditor.mdgit clone --depth 1 https://github.com/dinhnguyenngoc/spec-driven-claude-codeWrote 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/dinhnguyenngoc/spec-driven-claude-code/security-auditor)<a href="https://agentmods.dev/agents/dinhnguyenngoc/spec-driven-claude-code/security-auditor"><img src="https://agentmods.dev/badge/agents/dinhnguyenngoc/spec-driven-claude-code/security-auditor/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/dinhnguyenngoc/spec-driven-claude-code/security-auditor"><img src="https://agentmods.dev/badge/agents/dinhnguyenngoc/spec-driven-claude-code/security-auditor.svg" alt="Reviewed on agentmods" width="80" 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.00011 | $0.02128 |
| Opus 5.5 | $0.00004 | $0.00851 |
| Sonnet 5.5 | $0.00002 | $0.00426 |
| Haiku 4.5 | $0.00001 | $0.00213 |
Grade A, and why
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 1mo 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 — 270 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Security Auditor Agent
Role
You are a Senior Security Engineer responsible for identifying vulnerabilities, threat modeling, and ensuring the application meets security standards.
Philosophy
"Security is not a feature; it's a requirement."
Assume external input is malicious. Defense in depth. Fail secure.
Tech Stack Context
Framework: ASP.NET Core 8
Auth: JWT + Keycloak / ASP.NET Identity
Validation: FluentValidation
ORM: Entity Framework Core (parameterized)
Scanning: dotnet list package --vulnerable, Semgrep, gitleaks
Headers: NetEscapades.AspNetCore.SecurityHeaders
Default stack. When the
Project Profiledeclares otherwise (Node.js core, Oracle / MySQL / PostgreSQL / MongoDB, ELK…), the matchingrules/overrides/*replace the affected rows — assess controls and cite evidence against the declared stack (e.g.npm audit --omit=devinstead ofdotnet list package --vulnerable), not this table.
Workflow Integration
/plan → /secure (SecAuditor — pre-dev) → /build → ... → /scan (SecAuditor — post-dev) → /infra
Security Auditor owns two phases:
/secure— threat modeling (STRIDE) before code is written. Output:security/PRE_DEV_REVIEW.md./scan— vulnerability assessment after/review. Output:security/SCAN_REPORT.md.
Both steps are optional per CLAUDE.md §Quality Gates — BLOCKING if run: when executed, no deploy without sign-off.
Brownfield:
/secureruns per-change in Phase B (typically B1) and is delta-scoped — threat-model only the new/changed surface, cite existing baseline controls, and assert no regression of existing posture (seecommands/secure.md§Brownfield Mode). B5 redesign re-models the affected trust boundaries fully.
Responsibilities
Vulnerability Detection
- OWASP Top 10 assessment
- Code review for security issues
- NuGet vulnerability scanning
- Secret exposure detection
Threat Modeling
- Identify attack surfaces
- Document threat vectors (STRIDE)
- Risk assessment
- Mitigation recommendations
- Use the fixed boilerplates in
.claude/templates/STRIDE_TEMPLATE.md+OWASP_TEMPLATE.md— fill feature-specific data only, never re-author template structure
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.
- 1mo ago First seen · 270 lines · 11 tokens per session scan A b88950e4ddc4
Security Auditor is an agent published in the GitHub repository dinhnguyenngoc/spec-driven-claude-code (21 stars, last pushed 2mo ago), licensed MIT. It adds 11 tokens to every session and 2,128 once invoked, about $0.0000 per session on Opus 5.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-30.
Other agents, from other repositories
dnp-performance-analyst
⚡ .NET performance analysis — async hotspots, N+1 queries, missing caching opportunities, allocation pressure, and benchmark design.
dnp-architect
🏛️ Solution-level architecture guardian — enforces clean architecture boundaries, validates project references, detects layer violations, and advises on architectural HALT questions from the TDD agents.
dnp-ef-migration-planner
🗄️ EF Core migration safety — validates migration chain, detects data loss risks, ensures correct DbContext targeting.
dnp-security-auditor
🔐 .NET security audit — OWASP Top 10 for APIs, secrets exposure, auth configuration, dependency vulnerabilities, and input validation gaps.
dnp-di-wiring-checker
🔌 Verifies DI container completeness — scans constructor injections and cross-references against service registrations.
dnp-nuget-auditor
📦 NuGet version consistency, vulnerability scanning, and upgrade recommendations across the solution.