sec-audit

sec-audit is a skill for Claude Code from akashsebastian333/peephole. It costs 66 tokens per session (366 once invoked), scanned A, original, MIT.

A Peephole skill that prints a project's security audit report, including enforcement mode, security findings, approved security debt, and audit-log integrity.

In plain words
What is it for?
Use it to inspect Peephole's security decisions, born-secure measurements, interruption rate, outstanding exceptions, negative-test status, and log-chain health.
Why use it?
It gives developers one report for reviewing what security issues were blocked, questioned, allowed, or deferred, and whether the log was altered.

Skill for Claude Code

Written for Claude Code: $CLAUDE_PLUGIN_ROOT variable.

Runs only inside its plugin — its command needs a path that Claude Code sets for a plugin’s own hooks and for nothing else. Install the plugin, not this.

Part of the peephole plugin — 4 skills, 8 hooks shipped together

Good fit Use it to inspect Peephole's security decisions, born-secure measurements, interruption rate, outstanding exceptions, negative-test status, and log-chain health.

Compare 6 skills from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add akashsebastian333/peephole
Claude Code
/plugin install peephole

Made for: Claude Code.

Or install peephole, the plugin that ships this one along with the rest of its 4 skills, 8 hooks.

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

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/akashsebastian333/peephole/sec-audit"><img src="https://agentmods.dev/badge/skills/akashsebastian333/peephole/sec-audit.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 66 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 366 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.00066 $0.00366
Opus 5 $0.00033 $0.00183
Sonnet 5 $0.00013 $0.00073
Haiku 4.5 $0.00007 $0.00037

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

Security

Grade A, and why

sec-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 11d 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/sec-audit/SKILL.md · 24 lines

What it actually says

Peephole security audit

Run:

sh "$CLAUDE_PLUGIN_ROOT/hooks/peephole.sh" audit

Present the output to the user. It reports:

  • mode and binary integrity (a drift alarm means the binary or its embedded KB was tampered with — advise reinstalling).
  • decision tally — how many writes were denied / asked / allowed / retro-flagged / rewritten, broken down by CWE and by OWASP 2025 category.
  • born-secure (N2) — of the security-relevant hunks (heuristic-tagged), how many were clean at first write vs prevented at the gate vs landed insecure, with the born-secure rate. Instrumentation, not proof.
  • interruption rate — asks+denies per 20 write-gate decisions (the §7.4 FP budget: ≤ 1 unsolicited ask per 20 writes).
  • sec-debt — logged waiver requests and any UNAPPROVED markers in the tree (evasion risk), plus negative-test mandates that exhausted without compliance.
  • log chainintact or BROKEN at line N, which surfaces casual truncation or tampering of the decision log. The log is the last 30 days.

If the log chain is broken, treat it as a signal that the audit log was altered and tell the user plainly.

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. 11d ago First seen · 24 lines · 66 tokens per session scan A 0dd8875148ce

Subscribe to this mod's changes

sec-audit is a skill published in the GitHub repository akashsebastian333/peephole (5 stars, last pushed 12d ago), licensed MIT. It adds 66 tokens to every session and 366 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.