security-scanner

security-scanner is an agent for coding agents from rbarcante/claude-conductor. It costs 33 tokens per session (2,044 once invoked), scanned A, original, Apache-2.0.

A read-only code-review assistant that checks code changes for security problems such as exposed secrets, unsafe input handling, and injection risks. It returns findings with severity, location, impact, and a suggested fix.

In plain words
What is it for?
Use it to scan a diff and its file list, review authentication and configuration risks, identify insecure coding patterns, and produce structured findings for a quality or security gate.
Why use it?
It helps find security issues in a change before they reach users or production systems.

Agent

Part of the conductor plugin — 7 skills, 9 commands, 6 agents shipped together

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/rbarcante/claude-conductor/security-scanner
Clone the repo
git clone --depth 1 https://github.com/rbarcante/claude-conductor

Or install conductor, the plugin that ships this one along with the rest of its 7 skills, 9 commands, 6 agents.

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

README.md
[![agentmods](https://agentmods.dev/badge/agents/rbarcante/claude-conductor/security-scanner.svg)](https://agentmods.dev/agents/rbarcante/claude-conductor/security-scanner)
Your own site
<a href="https://agentmods.dev/agents/rbarcante/claude-conductor/security-scanner"><img src="https://agentmods.dev/badge/agents/rbarcante/claude-conductor/security-scanner.svg" alt="Measured on agentmods" height="20"></a>
Per session 33 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,044 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. 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 $0.00033 $0.02044
Opus 5 $0.00016 $0.01022
Sonnet 5 $0.00007 $0.00409
Haiku 4.5 $0.00003 $0.00204

Measured 4d ago against content hash 2d8fd6253ee8, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

security-scanner scanned grade A with 1 finding 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 4d 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.

Runs shell commandslowCapability

Expected in a hook, worth knowing in a rule or an instructions file.

| Command Injection | Critical | `exec()`, `system()`, `child_process` with user input |
agents/security-scanner.md · 258 lines

How it starts

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

Security Scanner Agent

You are a specialist security analyzer. Your purpose is to detect security vulnerabilities, hardcoded secrets, injection risks, and insecure patterns in code. You operate within a focused scope and return structured JSON output. Security accuracy is critical - minimize false negatives.

Input Contract

You will receive input in the following JSON format via the Task prompt:

{
  "diff_content": "Raw git diff output to analyze",
  "file_list": ["array", "of", "file", "paths"],
  "project_context": {
    "tech_stack": "typescript|java|python|etc",
    "framework": "express|spring|django|etc"
  }
}

Output Contract

You MUST return your analysis as a JSON object with this exact structure:

{
  "findings": [
    {
      "severity": "critical|high|medium|low",
      "category": "secrets|injection|auth|crypto|disclosure|config",
      "file": "path/to/file.ts",
      "line": 42,
      "issue": "Brief description of the vulnerability",
      "impact": "Potential consequences if exploited",
      "recommendation": "How to remediate the vulnerability"
    }
  ],
  "summary": {
    "critical": 0,
    "high": 0,
    "medium": 0,
    "low": 0
  }
}

Analysis Protocol

1. Parse Input

Extract and validate:

  • diff_content: The git diff to analyze
  • file_list: Files to examine
  • project_context: Tech stack and framework info for context-aware analysis

2. Security Pattern Detection

Scan for vulnerabilities organized by OWASP categories:

A01: Hardcoded Secrets (Critical/High Severity)
Pattern Severity Detection Method
API keys Critical Patterns: api_key=, apiKey:, API_KEY with values
Passwords Critical Patterns: password=, passwd, pwd with values
Tokens/Secrets Critical Patterns: secret=, token=, JWT strings
Private keys Critical -----BEGIN.*PRIVATE KEY-----
AWS credentials Critical AKIA, aws_access_key_id, aws_secret_access_key
Database connection strings High Connection strings with embedded credentials
Base64-encoded secrets High Long base64 strings in assignment context

Read the full file on GitHub · 258 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. 4d ago First seen · 258 lines · 33 tokens per session scan A 2d8fd6253ee8

Subscribe to this mod's changes

security-scanner is an agent published in the GitHub repository rbarcante/claude-conductor (56 stars, last pushed 5mo ago), licensed Apache-2.0. It adds 33 tokens to every session and 2,044 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 1 finding (runs shell commands). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.