ponytail-sec

ponytail-sec is a skill for Claude Code from andypitcher/ponytail-sec. It costs 74 tokens per session (2,529 once invoked), scanned A, original, MIT.

A focused security review for code that is being changed now. It checks the current code changes, newly added software packages, and up to three important ways the changes could be made safer.

In plain words
What is it for?
Use it before merging a pull request or code change to review insecure settings, authentication, encrypted connections, network controls, and newly added packages.
Why use it?
It keeps security checks limited to the work being reviewed, making the most urgent issue easier to find before merging. It also checks whether new dependencies and unnecessary code add risk.

Skill for Claude Code

Written for Claude Code: shipped in a Claude Code plugin. Also seen: mentions Claude Code.

Part of the ponytail-sec plugin — 4 skills shipped together

Good fit Use it before merging a pull request or code change to review insecure settings, authentication, encrypted connections, network controls, and newly added packages.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/andypitcher/ponytail-sec/ponytail-sec
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 andypitcher/ponytail-sec --skill ponytail-sec
Clone the repo
git clone --depth 1 https://github.com/andypitcher/ponytail-sec

Made for: Claude Code.

Or install ponytail-sec, the plugin that ships this one along with the rest of its 4 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 ponytail-sec

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/andypitcher/ponytail-sec/ponytail-sec"><img src="https://agentmods.dev/badge/skills/andypitcher/ponytail-sec/ponytail-sec.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 74 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 2,529 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. Third-party audits
  • NVIDIA SkillSpector warn 7 Sept 2026
SkillSpector: 1 finding, up to medium

These are SkillSpector’s own severities. On a checked sample its high-severity flags on skills were ~96% false positives — a documented command, a public API, a “never do X” rule — so we show them as a caution to read, not a verdict. Why →

  • medium Tool Misuse · line 26
    Tool defaults are unsafe or overly permissive (e.g. disabled TLS verification, no authentication, world-writable permissions). Unsafe defaults widen the attack surface.
    Fix: Override unsafe defaults with secure settings (verify=True, auth required, restrictive permissions). Review and harden all tool configurations.
How audits are shown
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.00074 $0.02529
Opus 5 $0.00037 $0.01264
Sonnet 5 $0.00015 $0.00506
Haiku 4.5 $0.00007 $0.00253

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

Security

Grade A, and why

ponytail-sec 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.

skills/ponytail-sec/SKILL.md · 214 lines

How it starts

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

The lazy senior security engineer. The best vuln is the one you make unreachable with the smallest change.

Scope

Changed files and new code only — the current diff or the files explicitly named by the user. Do not scan the whole project. If no diff is available, ask the user which files are in scope before proceeding.

Ranking model

Fix lower layers first. A network control does not excuse skipping a code fix.

Layer 4 · Code       verify=False, InsecureSkipVerify          ← must-fix
Layer 3 · Auth       OAuth 2.1, JWT audience / issuer / alg    ← must-fix
Layer 2 · Transport  TLS with verified CA                       ← must-fix
Layer 1 · Network    NetworkPolicy (default-deny)               ← should-do
Layer 0 · Mesh       Istio mTLS                                 ← additive only

Three passes, in order

Pass 1 — Code review

Does this new code need to exist? YAGNI, stdlib first, remove over refactor. Fewer lines = smaller attack surface. Dead code and unrequested abstractions are security debt. Scope to changed files only.

Pass 2 — Dependency assessment

New deps introduced in this diff only — any language (npm, PyPI, Maven, Cargo, Go modules, etc.). For each, web-search the registry page and OpenSSF Scorecard before judging — do not assess from name alone. Check: last release date, number of contributors, individual vs. company/org maintainer, presence of SECURITY.md, and OpenSSF Scorecard maintained score.

  • Does stdlib or the platform already do this? → remove.
  • Solo maintainer, low OpenSSF Scorecard, or stale? → fork or vendor and flag the risk.
  • Brings more than it costs, healthy upstream? → keep, pin immutably: exact version + lockfile for package deps, commit hash for VCS deps, digest for container images.

Prefer: remove > stdlib > vendor/fork > immutable pin > keep floating.

Pass 3 — Hardening

Kill-chain stages in order. A Stage 1 break voids all downstream defences. Rank within a stage by attacker leverage removed ÷ lines changed.

  • Stage 1 · Trust: TLS cert bypass, token validation gaps, auth bypass modes.
  • Stage 2 · Authz: RBAC wildcards, server-side claim validation, write/read separation.
  • Stage 3 · Exec: container escape surface, supply chain, shell injection, deserialization.
  • Stage 4 · Data: hardcoded secrets, debug endpoints, missing TLS, verbose logging.

Tags: auth rbac isolate dep inject secret expose

Output format

Emit three sections. Show prose, not tables, for Passes 1 and 2. Hard cap: up to the top 3 material findings total across all passes, ranked by kill-chain stage then attacker leverage. Do not pad to 3 — if only one finding matters, output one. If more than 3 material findings exist, show the top 3 and say how many were withheld; ask whether to expand.


Pass 1 · Code

Report only changed files with security-relevant code-removal findings. Do not emit per-file Clean. lines unless the entire pass is clean. State the security consequence, not just the smell.

Example:

auth.py: @lru_cache(maxsize=1) on _build_ssl_context() bakes the CA cert at pod start — a CA rotation is silent until restart. Remove it.

No removable security-relevant code in the changed files. Clean.


Pass 2 · Dependencies

One sentence if clean.

For each risky new dependency, emit one compact evidence block:

  • Verdict — remove / stdlib / vendor or fork / keep with immutable pin.
  • Maintainer — individual, company, foundation, or active org.
  • Freshness — last release date and last meaningful commit/activity.
  • Security postureSECURITY.md, advisories, known CVEs if relevant.
  • OpenSSF Scorecard — maintained score and any standout risk signals.
  • Action — exact replacement, vendoring/forking plan, or immutable pinning: exact version + lockfile for package deps, commit hash for VCS deps, digest for container images.

Read the full file on GitHub · 214 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 · 214 lines · 74 tokens per session scan A 96d327556c0b

Subscribe to this mod's changes

ponytail-sec is a skill published in the GitHub repository andypitcher/ponytail-sec (8 stars, last pushed 9d ago), licensed MIT. It adds 74 tokens to every session and 2,529 once invoked, about $0.0004 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