pwp-security-audit

pwp-security-audit is a skill for Claude Code, Codex from shandar/pwp-plugin. It costs 105 tokens per session (1,186 once invoked), scanned A, original, MIT.

A structured checklist for reviewing code and configuration for common security problems, such as unsafe input handling, exposed passwords, and weak access controls.

In plain words
What is it for?
Use it for security audits and code reviews involving vulnerabilities, cross-site scripting (XSS), SQL injection, authentication, or secret management.
Why use it?
It helps find security risks systematically and separates reporting problems from changing security-sensitive code without approval.

Skill for Claude CodeCodex

Part of the pwp plugin — 11 skills 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 skills/shandar/pwp-plugin/pwp-security-audit
Any agent
npx skills add shandar/pwp-plugin --skill pwp-security-audit
Clone the repo
git clone --depth 1 https://github.com/shandar/pwp-plugin

Made for: Claude Code, Codex.

Or install pwp, the plugin that ships this one along with the rest of its 11 skills.

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 pwp-security-audit

README.md
[![agentmods](https://agentmods.dev/badge/skills/shandar/pwp-plugin/pwp-security-audit.svg)](https://agentmods.dev/skills/shandar/pwp-plugin/pwp-security-audit)
Your own site
<a href="https://agentmods.dev/skills/shandar/pwp-plugin/pwp-security-audit"><img src="https://agentmods.dev/badge/skills/shandar/pwp-plugin/pwp-security-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 105 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,186 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.00105 $0.01186
Opus 5 $0.00053 $0.00593
Sonnet 5 $0.00021 $0.00237
Haiku 4.5 $0.00011 $0.00119

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

Security

Grade A, and why

pwp-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 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.

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.

skills/pwp-security-audit/SKILL.md · 105 lines

How it starts

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

Security Audit Skill

This skill defines how to perform a security-focused code review. Security changes have high blast radius — always flag findings and get explicit approval before making fixes.

Security Mindset

  • Assume all input is hostile. User input, API responses, URL parameters, cookies, headers — all untrusted until validated.
  • Defense in depth. Never rely on a single layer of protection. Validate on client AND server.
  • Least privilege. Give code, users, and services only the permissions they need. Nothing more.
  • Flag, don't fix (without approval). Security changes can break auth flows, lock users out, or introduce regressions. Always get approval first.

Security Review Checklist

1. Secrets & Credentials

  • No API keys, tokens, or passwords in source code
  • No secrets in client-side bundles
  • .env files are in .gitignore
  • .env.example exists with placeholder values (no real secrets)
  • No secrets in commit history
  • Server-side environment variables used for sensitive config

2. Input Validation & Sanitization

  • All user input validated on the server (not just client-side)
  • HTML output sanitized to prevent XSS (no dangerouslySetInnerHTML with user data)
  • SQL queries use parameterized statements (no string concatenation)
  • File uploads validated (type, size, content — not just extension)
  • URL parameters and query strings validated before use
  • JSON payloads validated against expected schema

3. Authentication

  • Passwords hashed with bcrypt/argon2 (never MD5/SHA1, never plaintext)
  • Session tokens are cryptographically random and sufficiently long
  • JWT tokens have expiration and are validated on every request
  • Password reset tokens are single-use and time-limited
  • Rate limiting on login endpoints (prevent brute force)
  • Failed login attempts logged (for detection)

4. Authorization

  • Every API endpoint checks user permissions (server-side)
  • UI hiding is NOT the only access control
  • Resource access checks ownership (user can only access their own data)
  • Admin routes require admin role verification on every request
  • CORS configured to allow only trusted origins

Read the full file on GitHub · 105 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 · 105 lines · 105 tokens per session scan A 04a60db18d9d

Subscribe to this mod's changes

pwp-security-audit is a skill published in the GitHub repository shandar/pwp-plugin (1 stars, last pushed 6mo ago), licensed MIT. It adds 105 tokens to every session and 1,186 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-08-31.

Related

Other skills, from other repositories

glossary-init

USE WHEN setting up a repo for AI-first work, when an agent hallucinates domain term meaning, or when user asks to bootstrap / extend the repo's domain glossary. Surfaces candidate terms by identifier frequency, asks the user for 1-sentence definitions, writes GLOSSARY.md at repo root. Idempotent — re-running adds new…

Filip-Podstavec/claude-leverage · 119 tokens

status

Set a status message on your DevGlobe profile.

Nako0/devglobe-extension · 12 tokens

codex-pair-resume

Resume codex-pair for this project after a previous pause. Removes .codex-pair/state/paused and clears failure state. Review resumes on the next supported file edit; missing state is a no-op.

Lykhoyda/ask-llm · 51 tokens

conventions-init

USE WHEN setting up a repo for AI-first work (after /init-repo), or when the context-surface hook should start feeding repo conventions to agents before edits. Drafts conventions.yml at repo root: per-kind casing (inferred from the code), a vague-name denylist seed, directory roles, and a hand-filled house-rules…

Filip-Podstavec/claude-leverage · 124 tokens

opik

This skill should be used when the user needs to add Opik tracing or integrations to their code, instrument an LLM application, or needs reference for Opik SDK usage (Python, TypeScript, REST API). Use for tasks like "add tracing", "instrument my code", "use trackopenai", "add OpikTracer", "what span types are…

comet-ml/opik-claude-code-plugin · 84 tokens

codex-review

Get a second opinion from OpenAI Codex on your current code changes. Analyzes staged/unstaged diffs and returns prioritized findings. Use when user asks to "review with Codex", "Codex code review", or "ask Codex to check my code".

Lykhoyda/ask-llm · 60 tokens