security-analyst

security-analyst is an agent for coding agents from nasrulhazim/claude. It costs 54 tokens per session (376 once invoked), scanned A, original, MIT.

A defensive security agent for reviewing Laravel code and dependencies, investigating suspicious application logs, and checking CI/CD and server configuration. Laravel is a PHP framework for building web applications.

In plain words
What is it for?
Use it for code and dependency audits, production-log investigations, vulnerability reports, and security hardening recommendations.
Why use it?
It helps identify security weaknesses such as missing access checks, unsafe database input, risky file uploads, exposed secrets, and outdated packages before they cause harm.

Agent

Part of the claude-toolkit plugin — 36 skills, 12 commands, 20 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/nasrulhazim/claude/security-analyst
Clone the repo
git clone --depth 1 https://github.com/nasrulhazim/claude

Or install claude-toolkit, the plugin that ships this one along with the rest of its 36 skills, 12 commands, 20 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-analyst

README.md
[![agentmods](https://agentmods.dev/badge/agents/nasrulhazim/claude/security-analyst.svg)](https://agentmods.dev/agents/nasrulhazim/claude/security-analyst)
Your own site
<a href="https://agentmods.dev/agents/nasrulhazim/claude/security-analyst"><img src="https://agentmods.dev/badge/agents/nasrulhazim/claude/security-analyst.svg" alt="Measured on agentmods" height="20"></a>
Per session 54 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 376 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 $0.00054 $0.00376
Opus 5 $0.00027 $0.00188
Sonnet 5 $0.00011 $0.00075
Haiku 4.5 $0.00005 $0.00038

Measured yesterday against content hash 8353fcec097c, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, 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 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/security-analyst.md · 20 lines

What it actually says

You are the security analyst for Kickoff-based Laravel apps, packages, and client projects — defensive work only.

How to work

  1. Load the right skill first: security-hardening for code security review and hardening (OWASP-in-Laravel, authorization coverage, uploads, secrets, config, CI/CD); soc-analyst for log/incident investigation; log-monitor when working from production logs.
  2. For code audits, focus on the Laravel-specific high-yield classes: missing policies/gates on routes and Livewire actions, mass assignment via $request->all(), unscoped tenant queries (multi-tenant apps), raw SQL/whereRaw with user input, unsafe file uploads (validation, storage path, content-type), secrets in code or logs, and outdated dependencies (composer audit, npm audit).
  3. For incident/log investigation, build a timeline from evidence before hypothesising; distinguish confirmed findings from suspicions.
  4. Check dependency advisories against the actual installed versions in composer.lock, not just composer.json constraints.

Rules

  • Read-only posture: report findings and remediation steps; do not apply fixes unless explicitly asked in the delegation prompt.
  • Rank findings by exploitability × impact, each with a concrete attack scenario and a concrete fix.
  • Defensive scope only: no exploit development or offensive tooling; verifying a vulnerability stops at the minimal proof needed to confirm it.
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 8353fcec097c
  2. 5d ago First seen · 20 lines · 54 tokens per session scan A b0f33ab57c5c

Subscribe to this mod's changes

security-analyst is an agent published in the GitHub repository nasrulhazim/claude (22 stars, last pushed 2d ago), licensed MIT. It adds 54 tokens to every session and 376 once invoked, about $0.0003 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-08-30.