claude-pilot: Agent for Claude Code

.claude/agents/security-analyst.md

security-analyst is an agent for Claude Code from changoo89/claude-pilot. It costs 0 tokens per session (1,422 once invoked), scanned A, original, MIT.

A security review agent that looks for serious weaknesses in authentication, permissions, secrets, input handling, and related code.

In plain words
What is it for?
Use it when reviewing authentication or security code, middleware, environment files, or changes involving passwords, tokens, encryption, or authorization.
Why use it?
It helps identify high-risk security problems such as exposed credentials, weak password handling, or missing access checks before they cause harm.

Agent for Claude Code

Written for Claude Code: installed under .claude/. Also seen: model in frontmatter.

This is changoo89/claude-pilot's own configuration. It tells Claude Code how to work on claude-pilot 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 claude-pilot configures →

Part of the claude-pilot plugin — 32 skills, 11 commands, 14 agents, 2 MCP servers shipped together

Reuse

Borrowing it

Nothing to install: this file belongs to changoo89/claude-pilot. 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/changoo89/claude-pilot/main/.claude/agents/security-analyst.md
Clone the repo
git clone --depth 1 https://github.com/changoo89/claude-pilot

Made for: Claude Code.

Or install claude-pilot, the plugin that ships this one along with the rest of its 32 skills, 11 commands, 14 agents, 2 MCP servers.

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-analyst

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/changoo89/claude-pilot/security-analyst"><img src="https://agentmods.dev/badge/agents/changoo89/claude-pilot/security-analyst.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,422 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.00000 $0.01422
Opus 5.5 $0.00000 $0.00569
Sonnet 5.5 $0.00000 $0.00284
Haiku 4.5 $0.00000 $0.00142

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

Security

Grade A, and why

security-analyst 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 2mo 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-analyst.md · 186 lines

How it starts

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

You are the Security-Analyst Agent. Your mission is to review code for security vulnerabilities using pattern-based analysis.

Core Principles

  • Pattern-based analysis: OWASP Top 10 vulnerability detection
  • Keyword matching: Identify security-sensitive code patterns
  • Hybrid activation: Always run for security-critical paths
  • High-impact findings: Report only critical and high-severity issues

Activation Strategy (Hybrid)

1. Always Run (Forced Scopes)

Automatically triggered for these file patterns:

  • **/auth/** - Authentication code
  • **/security/** - Security modules
  • **/middleware/** - Middleware layers
  • .env* - Environment files
  • *secrets* - Secret files
  • *credentials* - Credential files

2. Trigger Keywords

Activates when code changes involve:

  • auth, jwt, oauth, session
  • password, secret, token
  • encrypt, decrypt, hash
  • login, logout, authenticate
  • authorization, permissions

3. Explicit Call

  • /review security - Manual security review

Security Dimensions

1. Authentication & Authorization

  • Hardcoded credentials or API keys
  • Weak password policies
  • Missing authentication checks
  • Insecure session management
  • JWT token vulnerabilities
  • OAuth implementation issues

2. Input Validation

  • SQL injection vulnerabilities
  • XSS (Cross-Site Scripting)
  • Command injection
  • Path traversal
  • CSRF (Cross-Site Request Forgery)
  • Unvalidated redirects

3. Secrets Management

  • Secrets in code or config files
  • Hardcoded API keys, tokens
  • .env files committed to repo
  • Credential exposure in logs
  • Missing secret rotation

4. Cryptography

  • Weak encryption algorithms
  • Hardcoded encryption keys
  • Missing certificate validation
  • Insecure random number generation
  • Hash algorithm issues (MD5, SHA1)

5. Data Exposure

  • Sensitive data in logs
  • Error messages revealing info
  • Missing encryption for sensitive data
  • Unsecure data storage

6. Dependencies

  • Known vulnerable dependencies, outdated packages with CVEs

Read the full file on GitHub · 186 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. 2mo ago First seen · 186 lines · 0 tokens per session scan A a96309fcce7f

Subscribe to this mod's changes

security-analyst is an agent published in the GitHub repository changoo89/claude-pilot (20 stars, last pushed 8mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,422 tokens. 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.

Related

Other agents, from other repositories

code-reviewer

A code-review agent that checks whether changes follow their specification and assesses code quality, security, maintainability, and performance. It reports findings with severity levels and file-and-line references.

sangrokjung/claude-forge · 96 tokens

security-reviewer

A read-only security review agent that checks code for common web risks, exposed secrets, unsafe input handling, authentication and authorization problems, and dependency issues. OWASP Top 10 is a widely used list of major web application security risks.

sangrokjung/claude-forge · 95 tokens

adversarial-reviewer

Independent read-only checker for behavioural changes. Runs in a fresh context that did not author the change, reproduces the claim against the goal, spec, diff and execution evidence, and returns exactly one verdict — APPROVE, REQUESTCHANGES or UNVERIFIED — as a forge.review/v1 envelope. MUST BE USED before claiming…

sangrokjung/claude-forge · 102 tokens

database-reviewer

Use when writing SQL queries, creating migrations, or troubleshooting database performance in Supabase/PostgreSQL projects. Reviews indexes, RLS policies, schema types, N+1 patterns. Read-only reviewer with EXPLAIN ANALYZE capability.

sangrokjung/claude-forge · 52 tokens

refactor-cleaner

An agent for finding and safely removing dead code, unused exports, unused dependencies, and duplicate implementations.

sangrokjung/claude-forge · 109 tokens

architecture-analyst

Analyzes system architecture, identifies patterns/anti-patterns, and provides strategic recommendations. Use for architectural reviews, refactoring planning, or system design decisions.

travisjneuman/.claude · 36 tokens