security-audit

A structured defensive security review for an authorized codebase, service, or web application. It examines common application-security risks, including access control, injection, sessions, file uploads, secrets, and tenant isolation.

In plain words
What is it for?
Use it for broad application-security audits covering OWASP risks, authorization, business logic, SSRF, XSS, CSRF, background jobs, webhooks, queues, migrations, logging, and database-access problems.
Why use it?
It helps identify and prioritize security weaknesses with evidence and confidence while keeping the review read-only unless a fix is explicitly requested.

Skill for Claude CodeCodex

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 skills/muhammedzohaib/patchman/security-audit
Any agent
npx skills add MuhammedZohaib/patchman --skill security-audit
Clone the repo
git clone --depth 1 https://github.com/MuhammedZohaib/patchman

Made for: Claude Code, Codex.

Per session 70 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 437 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.00070 $0.00437
Opus 5 $0.00035 $0.00218
Sonnet 5 $0.00014 $0.00087
Haiku 4.5 $0.00007 $0.00044

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

Security

Grade A, and why

security-audit 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 2d 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.

plugins/patchman/skills/security-audit/SKILL.md · 56 lines

What it actually says

Security Audit

When to use

Use this skill when the user wants a full security review of a repository, service, or application slice.

Default behavior

  • stay in read-first mode unless the user explicitly asks for a patch
  • reason from framework and architecture conventions
  • flag likely vulnerabilities and insecure defaults
  • explain exploitability in safe, non-weaponized language
  • ask for missing deployment or authorization context when needed

Coverage map

  • broken access control and IDOR
  • authentication, session, cookie, token, and reset flaws
  • business logic abuse paths
  • XSS, CSRF, SSRF, injection, unsafe deserialization
  • file upload and document processing risks
  • unsafe crypto and secret management
  • headers, rate limiting, logging, admin paths, background jobs, webhooks, queues, migrations
  • ORM misuse, N+1, authorization-after-fetch, tenant scope gaps

Workflow

  1. Identify the app surface, trust boundaries, and privileged workflows.
  2. Map authn/authz, tenant, and data-access patterns.
  3. Review request handling, storage, jobs, webhooks, and admin paths.
  4. Prioritize only findings with meaningful evidence.
  5. Return findings in the standard Patchman format.

Findings format

  • Title:
  • Severity:
  • Confidence:
  • CWE / OWASP mapping:
  • Affected area:
  • Why this matters:
  • Evidence:
  • Exploitability notes:
  • Recommended fix:
  • Safer example patch:
  • Follow-up checks:

Safety constraints

Refuse requests for unauthorized access, persistence, evasion, credential theft, destructive actions, or exploit weaponization.

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. 2d ago First seen · 56 lines · 70 tokens per session scan A dbafc8a32611

Subscribe to this mod's changes

security-audit is a skill published in the GitHub repository MuhammedZohaib/patchman (3 stars, last pushed 4mo ago), licensed MIT. It adds 70 tokens to every session and 437 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-31.

Related

Other skills, from other repositories

API Security Testing

Comprehensive API security testing based on OWASP API Security Top 10 including broken authentication, injection attacks, rate limiting, BOLA/BFLA vulnerabilities, and automated security scanning with ZAP and custom scripts.

PramodDutta/qaskills · 46 tokens

exploiting-broken-function-level-authorization

Tests APIs for Broken Function Level Authorization (BFLA) vulnerabilities where regular users can invoke administrative functions or access privileged API endpoints by directly calling them. The tester identifies admin and privileged endpoints, then attempts to access them with regular user credentials by manipulating…

xalgorix/xalgorix · 108 tokens

testing-api-authentication-weaknesses

Tests API authentication mechanisms for weaknesses including broken token validation, missing authentication on endpoints, weak password policies, credential stuffing susceptibility, token leakage in URLs or logs, and session management flaws. The tester evaluates JWT implementation, API key handling, OAuth flows, and…

xalgorix/xalgorix · 102 tokens

testing-oauth2-implementation-flaws

Tests OAuth 2.0 and OpenID Connect implementations for security flaws including authorization code interception, redirect URI manipulation, CSRF in OAuth flows, token leakage, scope escalation, and PKCE bypass. The tester evaluates the authorization server, client application, and token handling for common…

xalgorix/xalgorix · 100 tokens

db

Database schema and query conventions for ThunderID. Use when changing schema scripts, defining SQL queries, updating store constants, or reviewing deployment-scoped persistence rules.

thunder-id/thunderid · 33 tokens

console

Navigate and interact with the ThunderID Console UI. Use when exploring the ThunderID admin console, testing UI changes, creating users/applications/roles, or debugging the frontend.

thunder-id/thunderid · 37 tokens