security-audit

security-audit is a skill for Claude Code, Codex from thixpin/pitway. It costs 92 tokens per session (753 once invoked), scanned A, original, MIT.

A structured process for reviewing and securing software. It covers identity checks, permissions, secrets, untrusted input, and tests that help prevent the same security flaw from returning.

In plain words
What is it for?
It is for security reviews, fixing vulnerabilities, hardening features, and writing code that handles login, permissions, secrets, or untrusted input.
Why use it?
It helps find the underlying trust mistake instead of hiding one reported symptom. It also encourages checking for similar weaknesses elsewhere in the codebase.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/thixpin/pitway/security-audit.svg)](https://agentmods.dev/skills/thixpin/pitway/security-audit)
Your own site
<a href="https://agentmods.dev/skills/thixpin/pitway/security-audit"><img src="https://agentmods.dev/badge/skills/thixpin/pitway/security-audit.svg" alt="Measured on agentmods" height="20"></a>
Per session 92 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 753 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.00092 $0.00753
Opus 5 $0.00046 $0.00377
Sonnet 5 $0.00018 $0.00151
Haiku 4.5 $0.00009 $0.00075

Measured 4d ago against content hash 15d9b20baf20, 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 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.

src/integrations/common/skills/security-audit/SKILL.md · 59 lines

How it starts

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

Security Audit

Fix causes, not symptoms; verify every trust boundary; leave a regression test behind.

Scope

Use for anything touching a trust boundary: security review, fixing a vulnerability, hardening a feature, or writing code that handles auth, permissions, secrets, or untrusted input.

Do not use for:

  • General code quality with no security dimension — use code-quality-review.
  • A quick automated pass over pending changes — the built-in /security-review does that. This skill defines the standards to apply.

Root cause discipline

  • For any vulnerability, identify the trust failure behind it (unvalidated input, missing authorization, confused deputy, secret in the wrong place) — then fix that, not just the reported instance.
  • Search for the same pattern elsewhere in the codebase; vulnerabilities ship in families.
  • Never "fix" a security finding by hiding the symptom (suppressing the error, filtering the payload string, disabling the scanner rule).

Authentication

  • Every non-public endpoint/entry point verifies identity server-side; client-side checks are UX, never enforcement.
  • Credentials: hashed with a modern KDF (bcrypt/argon2), never logged, never in URLs; sessions/tokens expire, rotate on privilege change, and invalidate on logout.
  • Auth failures are uniform (no user-enumeration via differing errors/timing) and rate-limited.

Authorization

  • Authorization is checked on every request at the resource level — object ownership, not just role ("can this user access this record", not "is this user logged in"). Missing object-level checks (IDOR) are the most common real-world hole.
  • Deny by default; new endpoints and routes require an explicit permission decision.
  • Enforcement lives server-side in one place (middleware/policy layer), not copy-pasted per handler.

Least privilege

  • Code, services, tokens, and DB accounts get the minimum scope that works: read-only where read-only suffices, scoped tokens over master keys, short-lived over long-lived.
  • New dependencies and integrations reviewed for what access they actually require.

Read the full file on GitHub · 59 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 · 59 lines · 92 tokens per session scan A 15d9b20baf20

Subscribe to this mod's changes

security-audit is a skill published in the GitHub repository thixpin/pitway (19 stars, last pushed 2d ago), licensed MIT. It adds 92 tokens to every session and 753 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-30.

Related

Other skills, from other repositories

concord-relay

Keep this Grok session reachable by other Concord agents while idle.

Get-Concord-AI/concord-mcp · 18 tokens

work-loop

Use when implementing or resuming a non-trivial repository change: a feature, behavior-changing fix, refactor, migration, framework or dependency upgrade, schema or API change, performance work, infrastructure or build-system change, reversion, or an existing build spec under docs/specs/. Also use for bare…

eugenelim/agent-ready-repo · 161 tokens

artifact-management

Use for PACEflow artifact fields and formats: task indexes, CHG/HOTFIX lifecycle operations, artifact-writer prompts, approvals, verification, and archive.

paceaitian/paceflow · 36 tokens

pace-bridge

Use to bridge a confirmed Superpowers/native plan into PACEflow CHG/HOTFIX artifacts, create artifact-writer prompts, and mark the specific plan as synced.

paceaitian/paceflow · 38 tokens

author-product-docs

Create, revise, retrofit, audit, or verify product documentation — pack READMEs, journeys, tutorials, how-to guides, reference pages, and explanations. Use when asked to write, improve, restructure, audit, or verify user-facing documentation, fix a pack README, create a guide for a feature, update a journey page, or…

eugenelim/agent-ready-repo · 144 tokens

rfc-status

Surface the current RFC landscape at a glance — how many RFCs are in each lifecycle state, which are active, and how many findings are waiting in the candidate register. Triggers on 'rfc status', 'show rfcs', 'what rfcs are open', 'rfc dashboard', 'how many rfcs', 'rfc candidates', 'rfc report', or any request for an…

eugenelim/agent-ready-repo · 100 tokens