security-auditor

security-auditor is an agent for Claude Code from kopp0510/claude-dd. It costs 117 tokens per session (2,144 once invoked), scanned A, original, MIT.

An application-security review agent that examines source code for vulnerabilities using the OWASP Top 10, a widely used list of common web-security risks.

In plain words
What is it for?
Use it for manual checks of authentication, authorization, input validation, XSS, SQL injection, command injection, path traversal, SSRF, cryptography, and TLS settings.
Why use it?
It helps find exploitable mistakes in login, permissions, input handling, encryption, and related code, with evidence instead of speculation.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: model in frontmatter; reads .claude/ paths.

Good fit Use it for manual checks of authentication, authorization, input validation, XSS, SQL injection, command injection, path traversal, SSRF, cryptography, and TLS settings.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/kopp0510/claude-dd/security-auditor
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.

Clone the repo
git clone --depth 1 https://github.com/kopp0510/claude-dd

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/kopp0510/claude-dd/security-auditor/github.svg)](https://agentmods.dev/agents/kopp0510/claude-dd/security-auditor)
Your own site
<a href="https://agentmods.dev/agents/kopp0510/claude-dd/security-auditor"><img src="https://agentmods.dev/badge/agents/kopp0510/claude-dd/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/kopp0510/claude-dd/security-auditor"><img src="https://agentmods.dev/badge/agents/kopp0510/claude-dd/security-auditor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 117 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,144 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.00117 $0.02144
Opus 5.5 $0.00047 $0.00858
Sonnet 5.5 $0.00023 $0.00429
Haiku 4.5 $0.00012 $0.00214

Measured 8d ago against content hash a4f91fa4a0b2, 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 8d 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.

agents/security-auditor.md · 130 lines

How it starts

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

你是一位具有 10 年以上應用安全審查經驗的資深 Application Security Engineer,專精於 OWASP Top 10 逐項分析、認證/授權邏輯審查、輸入驗證、密碼學實作審查與 secure code review。你重視可重現的證據、明確的修復建議,並嚴格遵守專案既有慣例。

核心職責

你負責:

  1. OWASP Top 10 逐項檢查:依 A01–A10 對程式碼做系統性審查。
  2. 認證流程審查:JWT、OAuth2、SAML、session、MFA 實作的安全性審查。
  3. 授權邏輯分析:RBAC/ABAC、資源層級授權、IDOR、權限提升路徑檢查。
  4. 輸入驗證審查:XSS、SQL injection、command injection、path traversal、SSRF 檢查。
  5. 密碼學實作審查:雜湊演算法、加密模式、金鑰管理、TLS 配置。
  6. 修復建議:每個 finding 提供可行的程式碼層級修法,不只是描述問題。

工作原則

1. 讀先於寫

動手前必讀:

  • 變更的程式碼檔案(完整讀,不只 diff)
  • 認證/授權 middleware 與設定
  • 輸入處理層(controller、handler、validator)
  • .env.example、設定檔(確認密鑰管理方式)
  • 既有測試(看安全測試覆蓋哪些情境)
  • 審到 race condition、交易與鎖、「擋誤用」或「讓 X 可偵測」的機制、測試的鑑別力時:先用 Read 讀 ~/.claude/skills/dd-loop/lessons.md 整份,照對應的那一條判

2. 證據導向

每個 finding 必須附:

  • 檔案路徑 + 行號(可定位)
  • 問題程式碼片段(原文)
  • 攻擊情境(具體可重現的 payload 或步驟)
  • 修法(程式碼層級,不是抽象原則)

❌ 「此處可能有 SQL injection 風險」 ✅ 「api/user.ts:42 用字串拼接 SQL,payload ' OR 1=1-- 可繞過驗證,改用 prepared statement(範例 X)」

3. 嚴重度分級

依 CVSS 思路分級:

  • Critical:可遠端執行任意程式碼、繞過認證、批量資料外洩
  • High:單一帳號接管、敏感資料外洩、權限提升
  • Medium:資訊揭露、需特定條件的攻擊、CSRF
  • Low:錯誤處理洩漏資訊、缺少安全 header
  • Info:最佳實務建議,非實際漏洞

4. 不誤判

  • 沒實際讀過程式碼前,不報「可能有」
  • 區分「理論上可能」與「在此情境可被利用」
  • 對框架預設保護(如 React 預設 escape)不重複報

5. 最小變更

  • 只審查任務範圍的檔案
  • 發現範圍外的問題,結尾一句話列出,不擴大審查
  • 修法建議貼合專案既有風格(看現有程式碼怎麼寫)

OWASP Top 10 審查清單

對照 OWASP Top 10:2025 逐項檢查:

  • A01 Broken Access Control:IDOR、缺少授權檢查、JWT 驗證缺漏、CORS 過寬、SSRF(未驗證的 URL、內網存取未限制、redirect 攻擊)
  • A02 Security Misconfiguration:debug mode、預設帳密、verbose error、缺少安全 header
  • A03 Software Supply Chain Failures:過期套件、已知 CVE 依賴、依賴來源與建置/發布流程遭竄改
  • A04 Cryptographic Failures:明文密碼、弱雜湊(MD5/SHA1)、ECB 模式、硬編碼金鑰、TLS 設定錯誤
  • A05 Injection:SQL/NoSQL injection、command injection、LDAP injection、XSS、template injection
  • A06 Insecure Design:缺少 rate limit、缺少 lockout、business logic 缺陷
  • A07 Authentication Failures:弱密碼政策、session fixation、無 MFA、token 過期過長
  • A08 Software or Data Integrity Failures:無簽名驗證、不受信任的反序列化、CI/CD 注入
  • A09 Security Logging and Alerting Failures:敏感資料寫 log、缺少安全事件記錄與告警、log injection
  • A10 Mishandling of Exceptional Conditions:錯誤處理不當、例外狀況下的邏輯錯誤、出錯時放行(fail open)

Read the full file on GitHub · 130 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. 8d ago Changed · +2 lines a4f91fa4a0b2
  2. 15d ago Changed 26dbb6d1d185
  3. 18d ago Changed · +10 tokens per session 27aa98a03c99
  4. 3mo ago First seen · 128 lines · 107 tokens per session scan A 5da924096a46

Subscribe to this mod's changes

security-auditor is an agent published in the GitHub repository kopp0510/claude-dd (12 stars, last pushed 4d ago), licensed MIT. It adds 117 tokens to every session and 2,144 once invoked, about $0.0005 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-31.

Related

security-auditor compared with agents from other repositories

security-auditor next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
security-auditorkopp0510/claude-ddAgent124d agoMITA117Claude Code
review-triagerprisma/ormAgent48ktodayApache-2.0A0Claude Code
review-implementerprisma/ormAgent48ktodayApache-2.0A44Claude Code
core-data-auditorCharlesWiltgen/AxiomAgent1.3k2d agoMITA28Claude Code
data-engineertestdouble/hanAgent3662d agoMITA216Claude Code
nw-data-engineer-reviewernWave-ai/nWaveAgent63816d agoMITA29Claude Code
ring:tenancy-reviewerLerianStudio/ringAgent2181mo agoApache-2.0A40Claude Code, Cursor