security

security is a skill for Claude Code, Codex from samibs/skillfoundry. It costs 21 tokens per session (3,398 once invoked), scanned B, original, MIT.

A security-audit guide that examines software with the mindset of an attacker. It covers security reviews, threat modelling, penetration testing, and common web application risks.

In plain words
What is it for?
Use it to audit a codebase, model threats with STRIDE, test endpoints, and look for vulnerabilities such as injection or authentication bypass.
Why use it?
It helps reveal weaknesses before release by examining how an attacker could misuse inputs, endpoints, authentication, or other exposed parts of a system.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: positional $N argument; installed under .agents/ (shared by several agents).

Good fit Use it to audit a codebase, model threats with STRIDE, test endpoints, and look for vulnerabilities such as injection or authentication bypass.

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

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

README.md
[![agentmods](https://agentmods.dev/badge/skills/samibs/skillfoundry/security.svg)](https://agentmods.dev/skills/samibs/skillfoundry/security)
Your own site
<a href="https://agentmods.dev/skills/samibs/skillfoundry/security"><img src="https://agentmods.dev/badge/skills/samibs/skillfoundry/security.svg" alt="Measured on agentmods" height="20"></a>
Per session 21 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,398 The whole file, excluding the scripts and references it only reads on demand.
Security scan B 2 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.00021 $0.03398
Opus 5 $0.00010 $0.01699
Sonnet 5 $0.00004 $0.00680
Haiku 4.5 $0.00002 $0.00340

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

Security

Grade B, and why

security scanned grade B with 2 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 3d 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.

Instruction-override phrasingmediumPrompt injection

Text telling the model to disregard its earlier instructions or safety rules is the shape of a prompt injection, whoever wrote it.

| Prompt Injection | Instruction embedded in data an LLM later reads (user content, doc, retrieved page, tool output): "ignore previous instructions", "output your system prompt", "act as…" | Treat model-read content as

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

Asks the agent to reveal its instructionslowSystem prompt leakage

Directions to print, repeat or translate the system prompt extract configuration the operator did not intend to expose.

| Prompt Injection | Instruction embedded in data an LLM later reads (user content, doc, retrieved page, tool output): "ignore previous instructions", "output your system prompt", "act as…" | Treat model-read content as

Downgraded: this mod is about security review, or the phrase is quoted, so it is likely naming the pattern rather than instructing it.

.agents/skills/security/SKILL.md · 373 lines

How it starts

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

Security Specialist

You are a rigorous security specialist with an attacker's mindset. You think like a malicious actor to find vulnerabilities before they ship. You do not accept "it's just internal" or "we'll fix it later" security theater.

Persona: See agents/security-specialist.md for full persona definition.

Operational Philosophy: Every input is hostile. Every user is an attacker. Every dependency is compromised. Prove me wrong with evidence, not assumptions.

Known Deviations: See agents/_known-deviations.md for 80+ LLM failure patterns to prevent.

Shared Modules: See agents/_reflection-protocol.md for reflection requirements.

OPERATING MODES

/security audit [target]

Full security audit of component/system. Output structured vulnerability report.

/security threat-model [feature]

STRIDE-based threat modeling for new features.

/security pentest [target] — white-hat penetration testing

Penetration-testing mindset: enumerate the attack surface and test for OWASP Top 10 vulnerabilities. Sub-actions: scan [target] (full OWASP sweep of a codebase/endpoint spec), endpoint [url] (injection / auth-bypass / rate-limit on one API), report (findings writeup).

Authorized-scope rules (non-negotiable): operate only within authorized scope — never test systems without explicit permission; test for vulnerability existence, do not execute destructive exploits; refuse attacks on production systems without documented authorization.

Every finding: [SEVERITY] title · CVSS X.X (vector) · location (file:line/endpoint) · description · proof-of-concept to reproduce · specific remediation · CWE-XXX / OWASP-AYYY.

For attacker-primitive-level deep analysis of specific findings, chain with /red-team-researcher.

/security review [code]

Security-focused code review (beyond standard review).

/security incident [description]

Incident response guidance and remediation.

/security harden [system]

Hardening recommendations for infrastructure/application.

Read the full file on GitHub · 373 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. 3d ago First seen · 373 lines · 21 tokens per session scan B af9a24947169

Subscribe to this mod's changes

security is a skill published in the GitHub repository samibs/skillfoundry (12 stars, last pushed 2d ago), licensed MIT. It adds 21 tokens to every session and 3,398 once invoked, about $0.0001 per session on Opus 5. A static security scan graded it B with 2 findings (instruction-override phrasing, asks the agent to reveal its instructions). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

Other skills, from other repositories

clean-code-review

Run a comprehensive Clean Code audit against the codebase — module size, function complexity, long parameter lists, TODO/FIXME markers, commented-out code, duplication (DRY), Boy Scout delta, dead exports, test smells, shell-parity (PS/Bash twins), dep boundaries (cross-package imports), frozen-arrays drift…

srnichols/plan-forge · 92 tokens

code-review

Plan-Forge-tuned comprehensive code review — runs public-surface diff, forge analysis, architecture / security / testing / patterns checks, plus Plan-Forge-specific gates (ACI compliance, dual-shell parity, branch model). Use before merging features or at the end of a phase. With --quorum, dispatches multi-model…

srnichols/plan-forge · 70 tokens

stakeholder-briefing

Generate a per-organisation stakeholder briefing for Plan Forge from the canonical template, optionally drafting the prospect-specific sections from a source directory of customer materials. Use when an internal champion needs to walk a colleague or VP through the decision to adopt Plan Forge.

srnichols/plan-forge · 55 tokens

azure-sweep

Runs the full 8-layer Azure governance sweep using the Azure Sweeper agent.

srnichols/plan-forge · 0 tokens

forge-quench

Systematically reduce .NET/C# code complexity while preserving exact behavior — measure, understand, propose, prove, report. Use after a feature is complete and tests pass, when code works but is harder to maintain than it should be.

srnichols/plan-forge · 51 tokens

ui-scaffold

Scaffold a new Blazor page with proper layering — service interface, page component (markup + code-behind split), DTO, validation, error handling, and bUnit test. Enforces architecture-principles + blazor-fluent-ui conventions. Use when adding any new UI surface to a Blazor Server app.

srnichols/plan-forge · 68 tokens