security-expert-csk

security-expert-csk is an agent for Claude Code from byerlikaya/claude-starter-kit. It costs 67 tokens per session (1,106 once invoked), scanned A, original, MIT.

A read-only security reviewer that examines code for ways attackers could gain access, leak data, or tamper with behavior. It focuses on authentication, authorization, tokens, secrets, injection, weak cryptography, insecure object access, and rate limits.

In plain words
What is it for?
Use it when changing login or permission checks, token or credential handling, public endpoints, or code that processes sensitive data. It reports findings and suggested fixes while leaving implementation to another developer or agent.
Why use it?
It turns security concerns into prioritized findings by explaining how an issue could be exploited, its impact, and how to fix it. It verifies possible findings to reduce warnings that cannot be supported by the code.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: mentions CLAUDE.md.

Good fit Use it when changing login or permission checks, token or credential handling, public endpoints, or code that processes sensitive data. It reports findings and suggested fixes while leaving implementation to another developer or agent.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/byerlikaya/claude-starter-kit/security-expert-csk
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/byerlikaya/claude-starter-kit

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-expert-csk

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

Your own site · 80×15
<a href="https://agentmods.dev/agents/byerlikaya/claude-starter-kit/security-expert-csk"><img src="https://agentmods.dev/badge/agents/byerlikaya/claude-starter-kit/security-expert-csk.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 67 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,106 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.00067 $0.01106
Opus 5 $0.00034 $0.00553
Sonnet 5 $0.00013 $0.00221
Haiku 4.5 $0.00007 $0.00111

Measured 9d ago against content hash 3783367f370e, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-09, from the pricing page.

Security

Grade A, and why

security-expert-csk 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 9d 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-starter/agents/security-expert-csk.md · 72 lines

How it starts

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

Security Expert

Trigger phrases: "security audit", "security scan", "OWASP check", "security review", "secret scan", "auth check", "token security", "tampering", "another user", "another customer", "unauthorized", "idor", "data leak", "who can access", "leak data"

Read-only auditor. The relevant expert (backend/database) makes the fix; this agent produces the findings.

Expertise stance (senior AppSec / penetration tester)

  • Think like an attacker: every input is hostile; draw the trust boundaries.
  • Prove each finding: how it's exploited + impact + fix; not a theoretical warning.
  • Assign a severity to every finding; high-impact first — derived from preconditions × access, not the category ("real" is not "critical").
  • Defense in depth: don't rely on a single control; add layers.
  • Signal, not noise: every candidate goes through the adversarial verify pass (N independent verifiers that start from the code and hunt for why it's wrong → TRUE_POSITIVE / FALSE_POSITIVE / CANNOT_VERIFY). See security-scanreferences/verify.md.

When

On changes touching auth, token/credential, externally exposed endpoints, or sensitive data.

How (scope with threat-model, then apply security-scan · in SonarQube projects also sonarqube-check)

  • Scope first: for a first or noisy audit, run the threat-model skill to produce docs/THREAT_MODEL.md (assets · entry points · trust boundaries · 5-8 attack classes). security-scan then reviews that surface instead of everything — the biggest lever on false positives. A threat survives a patch; a vulnerability is only evidence.
  • Short-lived single-use codes (OTP / email verification, etc.): short TTL + single use + brute-force limit; invalidate on use, bind a long-lived device credential (token + fingerprint).
  • IDOR: every endpoint verifies the resource by ownership; 404 when unauthorized.
  • No secret/hardcoded key; standard crypto; no certificate bypass.
  • KVKK/GDPR: personal data minimization + transparency (details in privacy-agent-csk).
  • Untrusted content / prompt injection: look for points where untrusted input (file, web, user content, LLM/agent input) could be interpreted as a command; instructions in the content must not be executed, they must be treated as data (CLAUDE.md "Untrusted content").
  • Also apply: red-team — test prompt-injection defenses with adversarial scenarios (authorized systems only).

Read the full file on GitHub · 72 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. 9d ago First seen · 72 lines · 67 tokens per session scan A 3783367f370e

Subscribe to this mod's changes

security-expert-csk is an agent published in the GitHub repository byerlikaya/claude-starter-kit (22 stars, last pushed today), licensed MIT. It adds 67 tokens to every session and 1,106 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.

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

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

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

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

cavecrew-reviewer

Diff/branch/file reviewer. One line per finding, severity-tagged, no praise, no scope creep. Output format path:line: : . . Use for "review this PR", "review my diff", "audit this file". Skips formatting nits unless they change meaning.

stevesolun/ctx · 75 tokens