security-analysis

security-analysis is a skill for Claude Code, Codex from OKHP3/skillz. It costs 98 tokens per session (1,319 once invoked), scanned A, original, MIT.

A security analysis guide that reviews code or a change for exploitable vulnerabilities by tracing attacker-controlled input to a dangerous operation. It focuses on proving the complete attack path and the resulting impact.

In plain words
What is it for?
Use it to review injection, authentication and authorization gaps, exposed secrets, unsafe deserialization, server-side request forgery, and path traversal.
Why use it?
It helps separate confirmed security defects from vague concerns. It shows what an attacker controls, where that input travels, and what they could gain.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review injection, authentication and authorization gaps, exposed secrets, unsafe deserialization, server-side request forgery, and path traversal.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/okhp3/skillz/security-analysis
View source ↗ OKHP3/skillz
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.

Any agent
npx skills add OKHP3/skillz --skill security-analysis
Clone the repo
git clone --depth 1 https://github.com/OKHP3/skillz

Made for: Claude Code, Codex.

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/okhp3/skillz/security-analysis/github.svg)](https://agentmods.dev/skills/okhp3/skillz/security-analysis)
Your own site
<a href="https://agentmods.dev/skills/okhp3/skillz/security-analysis"><img src="https://agentmods.dev/badge/skills/okhp3/skillz/security-analysis/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-analysis

Your own site · 80×15
<a href="https://agentmods.dev/skills/okhp3/skillz/security-analysis"><img src="https://agentmods.dev/badge/skills/okhp3/skillz/security-analysis.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 98 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,319 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.00098 $0.01319
Opus 5 $0.00049 $0.00660
Sonnet 5 $0.00020 $0.00264
Haiku 4.5 $0.00010 $0.00132

Measured 6d ago against content hash 5b2256f2bc29, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-10, from the pricing page.

Security

Grade A, and why

security-analysis 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 6d 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.

community/security-analysis/SKILL.md · 113 lines

How it starts

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

Security analysis

A finding is only real if you can describe the attacker, what they control, and what they get. "This could be unsafe" is not a finding — it is an unfinished one. The discipline here is identical to debugging: trace from a source you can influence to a sink that does something dangerous, and prove the path is unbroken.

Scope: this is for reviewing code you or the user are authorized to work on — your own projects, your employer's, or an engagement you have permission for. It finds and fixes defects. It does not produce working exploits against systems you do not control.

1. Map trust boundaries first

You cannot assess code without knowing where untrusted data enters. Identify:

  • Sources: HTTP request bodies, query params, headers, cookies, uploaded files, webhook payloads, message queues, third-party API responses, filenames, environment in multi-tenant contexts, and anything read from the database that a user once wrote
  • Sinks: SQL, shell, filesystem paths, HTTP requests made by the server, template rendering, deserializers, eval-alikes, redirects, log statements that feed a parser
  • The boundary: where a request stops being anonymous and becomes a principal with rights

That last one, written down explicitly, is where most real findings live.

Done when: you have listed the sources and sinks in the code under review.

2. Trace source to sink

For each sink, walk backwards. The question is never "is this validated?" but "is every path to here validated, including the one added last week?"

The path is broken, and there is no finding — only if a transformation makes the data safe for that specific sink. Safe for one sink is not safe for another: HTML-escaping does nothing for SQL, and SQL parameterization does nothing for a shell command.

Done when: each source→sink pair is either proven safe or recorded as a finding.

3. Check the categories that get missed

Injection is well known and usually handled. These are where real findings cluster:

Read the full file on GitHub · 113 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. 6d ago First seen · 113 lines · 98 tokens per session scan A 5b2256f2bc29

Subscribe to this mod's changes

security-analysis is a skill published in the GitHub repository OKHP3/skillz (3 stars, last pushed yesterday), licensed MIT. It adds 98 tokens to every session and 1,319 once invoked, about $0.0005 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-09-03.