XnaFiddle: Agent for Claude Code

.claude/agents/security-auditor.md

security-auditor is an agent for Claude Code from vchelaru/XnaFiddle. It costs 22 tokens per session (758 once invoked), scanned A, original, MIT.

A security-review agent that looks for vulnerabilities, unsafe coding practices, and threats in software.

In plain words
What is it for?
Use it to review an application's attack surface, model threats, assess sandboxed code execution, and report severity, impact, and remediation steps.
Why use it?
It helps find problems such as injection, weak authentication, exposed secrets, unsafe file handling, and vulnerable dependencies before they cause harm.

Agent for Claude Code

Written for Claude Code: installed under .claude/.

This is vchelaru/XnaFiddle's own configuration. It tells Claude Code how to work on XnaFiddle itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything XnaFiddle configures →

Reuse

Borrowing it

Nothing to install: this file belongs to vchelaru/XnaFiddle. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/vchelaru/XnaFiddle/main/.claude/agents/security-auditor.md
Clone the repo
git clone --depth 1 https://github.com/vchelaru/XnaFiddle

Made for: Claude Code.

Wrote 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.

agentmods badge for security-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/vchelaru/xnafiddle/security-auditor/github.svg)](https://agentmods.dev/agents/vchelaru/xnafiddle/security-auditor)
Your own site
<a href="https://agentmods.dev/agents/vchelaru/xnafiddle/security-auditor"><img src="https://agentmods.dev/badge/agents/vchelaru/xnafiddle/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.

agentmods 80×15 button for security-auditor

Your own site · 80×15
<a href="https://agentmods.dev/agents/vchelaru/xnafiddle/security-auditor"><img src="https://agentmods.dev/badge/agents/vchelaru/xnafiddle/security-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 22 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 758 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
Origin original No closer match found in the catalogue.
Token cost

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.

ModelPer sessionOnce invoked
Fable 5.1 $0.00022 $0.00758
Opus 5.5 $0.00009 $0.00303
Sonnet 5.5 $0.00004 $0.00152
Haiku 4.5 $0.00002 $0.00076

Measured 1mo ago against content hash 6b690316542f, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

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.

.claude/agents/security-auditor.md · 36 lines

How it starts

The opening of the file, as written. The whole thing — 36 lines — stays where its author put it; the contents beside it link to each section on GitHub.

General Approach

Review code for security issues: identify attack surface (input points, file I/O, network, serialization), check for common vulnerabilities (injection, auth bypass, input validation, weak crypto, info disclosure, resource management, dependency CVEs), and verify secure coding practices. Check for path traversal in file operations, deserialization of untrusted data, and hardcoded credentials. Output findings with severity (Critical/High/Medium/Low), location, impact, remediation, and CWE/OWASP references. Do not include internal code, file paths, or variable names in web search queries.

XnaFiddle-Specific Security Concerns

XnaFiddle allows users to write and compile arbitrary C# code in the browser. This presents unique security considerations:

  • Code execution sandbox: Verify that user-submitted C# code runs within Blazor WASM's sandbox and cannot escape to the host system. Review what .NET APIs are available and whether dangerous ones (file system, process, network) are properly restricted.
  • Roslyn compilation: Check that the compilation pipeline cannot be exploited (e.g., compiler bombs, excessive memory allocation, infinite loops).
  • Content Security Policy: Verify CSP headers are configured to prevent XSS, especially given the Monaco editor CDN dependency and JS interop.
  • Assembly loading: Review Assembly.Load(ilBytes) usage for potential abuse vectors. Ensure only expected assemblies can be loaded.
  • Resource exhaustion: Check for DoS vectors through user code that could exhaust browser memory/CPU (infinite loops, massive allocations).
  • JS interop boundary: Review C#/JS interop calls for injection vulnerabilities.
  • External dependencies: Audit CDN-loaded resources (Monaco editor) for integrity (SRI hashes).

Evaluating New NuGet Packages / Libraries

When asked to review a new library for inclusion in XnaFiddle, focus on the right threat model:

  • The WASM sandbox is the real security boundary, not the SecurityChecker. Blazor WASM runs in the browser sandbox — System.IO.File, Process.Start(), and similar dangerous APIs throw PlatformNotSupportedException at runtime regardless of what libraries are referenced. A library that internally calls File.OpenRead() is not a security risk because the call will fail at the WASM level.
  • The SecurityChecker operates on user source code only. It walks the Roslyn syntax tree of what the user typed and blocks forbidden symbols. It does NOT analyze library internals. Adding a library's namespaces to the SecurityChecker blocklist is a UX decision (giving users clear compile-time errors instead of confusing runtime exceptions), not a security decision.
  • Do NOT recommend SecurityChecker changes as security remediations when evaluating new packages. The SecurityChecker is irrelevant to the question of whether a library is safe to add.

Read the full file on GitHub · 36 lines

Changes

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.

  1. 1mo ago First seen · 36 lines · 22 tokens per session scan A 6b690316542f

Subscribe to this mod's changes

security-auditor is an agent published in the GitHub repository vchelaru/XnaFiddle (14 stars, last pushed today), licensed MIT. It adds 22 tokens to every session and 758 once invoked, about $0.0001 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-09-04.

Related

Other agents, from other repositories

playwright-test-generator

Use this agent when you need to create automated browser tests using Playwright Examples: Context: User wants to generate a test for the test plan item.

microsoft/playwright · 151 tokens

.NET-Notebook-Migration-Agent

Expert .NET and documentation transformation agent that migrates Polyglot Jupyter notebooks into clean Markdown and companion .NET sample code.

microsoft/ai-agents-for-beginners · 33 tokens

AVM Owner Triage

Triage open GitHub issues across the Azure Verified Modules (AVM) repos an owner maintains. Splits the backlog into a Copilot-delegatable pile and a human pile, produces a report with a delegation ratio, and never comments or assigns without explicit user approval.

github/awesome-copilot · 61 tokens

code-reviewer

Performs thorough code reviews for the Notebooks in the Cookbook repo, focusing on Python/Jupyter best practices, and project-specific standards. Use this agent proactively after writing any significant code changes, especially when modifying notebooks, Github Actions, and scripts.

anthropics/claude-cookbooks · 52 tokens

Ultimate Transparent Thinking Beast Mode

Agent "Ultimate Transparent Thinking Beast Mode" from github/awesome-copilot, covering quantum cognitive architecture, phase 2: adversarial intelligence & red-team analysis, phase 3: implementation & iterative refinement and phase 4: comprehensive verification & completion.

github/awesome-copilot · 11 tokens

Context7-Expert

Expert in latest library versions, best practices, and correct syntax using up-to-date documentation.

github/awesome-copilot · 22 tokens