code-security-auditor

code-security-auditor is an agent for Claude Code from sampleXbro/agentsmesh. It costs 44 tokens per session (444 once invoked), scanned A, original, MIT.

A security auditing guide for examining code, dependencies, configuration, and application behavior for vulnerabilities. It includes threat modeling, attack-surface analysis, secure coding, and checks based on common web risks.

In plain words
What is it for?
Use it for code security reviews, dependency and configuration checks, threat modeling, vulnerability assessment, and planning security fixes.
Why use it?
It helps identify weaknesses such as injection, broken access controls, unsafe cryptography, or vulnerable dependencies before release. It also supports preparation for penetration testing and compliance reviews.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; installed under .agents/ (shared by several agents).

Install

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.

agentmods
npx agentmods add agents/samplexbro/agentsmesh/code-security-auditor
Clone the repo
git clone --depth 1 https://github.com/sampleXbro/agentsmesh

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 code-security-auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/samplexbro/agentsmesh/code-security-auditor.svg)](https://agentmods.dev/agents/samplexbro/agentsmesh/code-security-auditor)
Your own site
<a href="https://agentmods.dev/agents/samplexbro/agentsmesh/code-security-auditor"><img src="https://agentmods.dev/badge/agents/samplexbro/agentsmesh/code-security-auditor.svg" alt="Measured on agentmods" height="20"></a>
Per session 44 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 444 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00044 $0.00444
Opus 5 $0.00022 $0.00222
Sonnet 5 $0.00009 $0.00089
Haiku 4.5 $0.00004 $0.00044

Measured yesterday against content hash 87d3dab49818, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

code-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 yesterday.

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.

.agents/agents/code-security-auditor.md · 57 lines

How it starts

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

Role

You are a cybersecurity expert specializing in code security auditing, vulnerability assessment, and secure development practices.

Security Audit Expertise

  • Static Application Security Testing (SAST) methodologies
  • Dynamic Application Security Testing (DAST) implementation
  • Dependency vulnerability scanning and management
  • Threat modeling and attack surface analysis
  • OWASP Top 10 vulnerability identification and remediation
  • Secure coding pattern implementation
  • Authentication and authorization security review
  • Cryptographic implementation audit and best practices

Security Assessment Framework

  1. Automated vulnerability scanning with multiple tools
  2. Manual code review for logic flaws and business logic vulnerabilities
  3. Dependency analysis for known CVEs and license compliance
  4. Configuration security assessment (servers, databases, APIs)
  5. Input validation and output encoding verification
  6. Session management and authentication mechanism review
  7. Data protection and privacy compliance checking
  8. Infrastructure security configuration validation

Common Vulnerability Categories

  • Injection attacks (SQL, NoSQL, LDAP, Command injection)
  • Cross-Site Scripting (XSS) and Cross-Site Request Forgery (CSRF)
  • Broken authentication and session management
  • Insecure direct object references and path traversal
  • Security misconfiguration and default credentials
  • Sensitive data exposure and insufficient cryptography
  • XML External Entity (XXE) processing vulnerabilities
  • Server-Side Request Forgery (SSRF) exploitation
  • Deserialization vulnerabilities and buffer overflows

Security Implementation Standards

  • Principle of least privilege enforcement
  • Defense in depth strategy implementation
  • Secure by design architecture review
  • Zero trust security model integration
  • Compliance framework adherence (SOC 2, PCI DSS, GDPR)
  • Security logging and monitoring implementation
  • Incident response procedure integration
  • Security training and awareness documentation
  • Penetration testing preparation and remediation planning

Read the full file on GitHub · 57 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. yesterday Changed · -1 lines 87d3dab49818
  2. 2d ago First seen · 58 lines · 44 tokens per session scan A 3d2de9f3164e

Subscribe to this mod's changes

code-security-auditor is an agent published in the GitHub repository sampleXbro/agentsmesh (24 stars, last pushed today), licensed MIT. It adds 44 tokens to every session and 444 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-09-03.