Web Security

Web Security is a skill for Claude Code, Codex from EliasOulkadi/shokunin. It costs 106 tokens per session (3,719 once invoked), scanned C, original, MIT.

A set of security rules for web application work involving users, permissions, input, files, sessions, secrets, payments, APIs, or outside data.

In plain words
What is it for?
Writing or reviewing web features, especially access control, CORS, file uploads, authentication, authorization, and protection against common web vulnerabilities.
Why use it?
It helps prevent common security mistakes by treating incoming data as unsafe and requiring permission checks on the server.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions OpenCode.

Good fit Writing or reviewing web features, especially access control, CORS, file uploads, authentication, authorization, and protection against common web vulnerabilities.

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

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 Web Security

README.md
[![agentmods](https://agentmods.dev/badge/skills/eliasoulkadi/shokunin/web-security/github.svg)](https://agentmods.dev/skills/eliasoulkadi/shokunin/web-security)
Your own site
<a href="https://agentmods.dev/skills/eliasoulkadi/shokunin/web-security"><img src="https://agentmods.dev/badge/skills/eliasoulkadi/shokunin/web-security/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 Web Security

Your own site · 80×15
<a href="https://agentmods.dev/skills/eliasoulkadi/shokunin/web-security"><img src="https://agentmods.dev/badge/skills/eliasoulkadi/shokunin/web-security.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 106 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 3,719 The whole file, excluding the scripts and references it only reads on demand.
Security scan C 3 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.00106 $0.03719
Opus 5 $0.00053 $0.01860
Sonnet 5 $0.00021 $0.00744
Haiku 4.5 $0.00011 $0.00372

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

Security

Grade C, and why

Web Security scanned grade C with 3 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.

Cloud metadata endpointmediumServer-side request forgery

One request to 169.254.169.254 can return temporary IAM credentials.

SSRF in cloud environments exposes the instance metadata service (AWS: 169.254.169.254).

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

Recursive force deletemediumDestructive command

rm -rf with a variable or a broad path is one typo away from removing the wrong tree.

| User-provided filenames passed directly to shell commands | Command injection — `; rm -rf /` | Use argument arrays (`execFile`), never string interpolation. |

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

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

const response = await fetch(req.body.url)
.pack/skills/web-security/SKILL.md · 339 lines

How it starts

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

Web Security — Professional Standards

Mindset

Every input is hostile until proven otherwise. Every privilege is a liability until proven necessary. The average breach goes undetected for 200+ days — not because attacks are sophisticated, but because code assumed the caller was trustworthy.

Security is not a feature added at the end. It is a design constraint applied from the first line.


OWASP Top 10 — 2025 Edition

Apply these as a mental checklist on every feature you build or review.

A01 — Broken Access Control (#1 most exploited)

The most common and most damaging class of web vulnerability.

Rules:

  • Every endpoint must verify the caller has permission for the specific resource — not just that they're logged in
  • Deny by default: if there's no explicit allow, the answer is deny
  • Never expose internal IDs directly — use opaque tokens or UUIDs, not sequential integers (IDOR prevention)
  • Check authorization server-side on every request — never trust client-side state or hidden form fields
  • Validate CORS: Access-Control-Allow-Origin: * is only acceptable for truly public, read-only data
  • File path inputs must be sanitized — validate against a whitelist and use path.resolve() + check prefix

IDOR pattern to enforce:

// Wrong — trusts caller owns the resource
GET /api/orders/1234

// Right — verify ownership server-side
const order = await getOrder(orderId)
if (order.userId !== req.user.id) return 403

A02 — Cryptographic Failures

Rules:

  • HTTPS everywhere — no exceptions, including internal APIs
  • Never store passwords in plaintext or with reversible encryption — use bcrypt, Argon2, or scrypt
  • Never use MD5 or SHA-1 for security purposes — use SHA-256 minimum, SHA-512 preferred
  • Secrets (API keys, tokens, passwords) never go in source code — use environment variables or secrets managers
  • Sensitive data at rest must be encrypted — user PII, payment data, health records
  • Session tokens must be cryptographically random — minimum 128 bits of entropy
  • Never log sensitive data: passwords, tokens, credit card numbers, SSNs, health info

Read the full file on GitHub · 339 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. 11d ago First seen · 339 lines · 106 tokens per session scan C c4a6232fe458

Subscribe to this mod's changes

Web Security is a skill published in the GitHub repository EliasOulkadi/shokunin (113 stars, last pushed 1mo ago), licensed MIT. It adds 106 tokens to every session and 3,719 once invoked, about $0.0005 per session on Opus 5. A static security scan graded it C with 3 findings (cloud metadata endpoint, recursive force delete, makes network calls). 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

python-docs

Create, update, and sync Python project documentation from source code. Use when asked to document a module, generate API references, create architecture diagrams with Mermaid, update docs after code changes, or keep documentation in sync with source. Triggers include "document", "write docs", "update docs", "sync…

arnabdeypolimi/claude_code_setup · 98 tokens

code-refactor

Refactor Python code to match this repo's coding standards and style. Use when the user asks to "refactor", "clean up", "fix coding standards", or "apply best practices" to a module, file, or directory in this repo. Applies python-best-practices, pydantic v2, pytorch-lightning, and python-docs conventions as relevant…

arnabdeypolimi/claude_code_setup · 85 tokens

quality

PALADIN quality gatekeeper. Two-stage system: Stage 1 checks spec compliance (pass/fail, blocks everything on failure). Stage 2 scores project health 0-100 across 6 tiers. Issues verdict: SHIP IT / SHIP WITH CAUTION / NOT READY / BLOCKED. Evidence Before Claims: every finding must cite the file, line, and what was…

pnmcguire480/cairntir · 141 tokens

refresh

Use when an existing contextualizer's references may have drifted from current upstream state — typically weekly, or whenever a few days of upstream changes have accumulated — to bring them back into agreement.

nick-railsback/skill-engine · 40 tokens

distill-habits

Review recent Claude Code conversations, distill the user's stable habits and preferences, persist them into a long-term habit ledger, and maintain a "My Habits" block in the global CLAUDE.md within a character budget. The more you use Claude Code, the more it knows you. Trigger manually with /distill-habits, or on a…

betayyang/claude-habit-distiller · 87 tokens

apply

Use when a staged proposal has been reviewed and signed off — REVIEW.md Step 3 ticked reviewed or provisional — and is ready to promote into the live contextualizer.

nick-railsback/skill-engine · 36 tokens