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.5 $0.00042 $0.01488
Sonnet 5.5 $0.00021 $0.00744
Haiku 4.5 $0.00011 $0.00372

Measured 3mo ago against content hash c4a6232fe458, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, 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 3mo 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. 3mo 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 (112 stars, last pushed 1mo ago), licensed MIT. It adds 106 tokens to every session and 3,719 once invoked, about $0.0004 per session on Opus 5.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

Web Security compared with skills from other repositories

Web Security next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
Web SecurityEliasOulkadi/shokuninSkill1121mo agoMITC106Claude Code, Codex
ask-user-questionspaulp-o/ask-user-questions-mcpSkill1486d agoMITA32Claude Code, Codex
chromadbalivirgo/Major-AI-SkillsSkill6yesterdayMITA39Claude Code
vector-backend-operationsKnuckles-Team/vector-mcpSkill164d agoMITA89Claude Code, Codex
vector-collection-managementKnuckles-Team/vector-mcpSkill164d agoMITA75Claude Code, Codex
vector-hybrid-searchKnuckles-Team/vector-mcpSkill164d agoMITA83Claude Code, Codex
vector-mcp-operationsKnuckles-Team/vector-mcpSkill164d agoMITA48Codex