owasp-web-security

owasp-web-security is a skill for Claude Code, Codex from j4flmao/agent-skills. It costs 21 tokens per session (866 once invoked), scanned B, original, MIT.

A guide to understanding common web security flaws and finding them in source code. It covers issues such as injection attacks, where untrusted input is treated as part of a command or database query.

In plain words
What is it for?
Use it to review web code for injection and server-side request forgery risks, and to plan safer application architectures.
Why use it?
It explains why vulnerabilities occur and how to fix them in the application's design, rather than only patching individual symptoms.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one.

Good fit Use it to review web code for injection and server-side request forgery risks, and to plan safer application architectures.

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

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 owasp-web-security

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

Your own site · 80×15
<a href="https://agentmods.dev/skills/j4flmao/agent-skills/owasp-web-security"><img src="https://agentmods.dev/badge/skills/j4flmao/agent-skills/owasp-web-security.svg" alt="Reviewed on agentmods" width="80" 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 866 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.00866
Opus 5.5 $0.00008 $0.00346
Sonnet 5.5 $0.00004 $0.00173
Haiku 4.5 $0.00002 $0.00087

Measured 1mo ago against content hash 4b81310a3a8d, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade B, and why

owasp-web-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 1mo 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.

- **Application Layer**: Implement an allowlist of permitted domains/IPs. Never trust user-provided URLs to access internal metadata services (e.g., AWS IMDS, `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.

Makes network callslowCapability

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

- **Identification via SAST**: Trace tainted input to HTTP client sinks (e.g., `requests.get()`, `cURL`).
skills/cybersecurity/owasp-web-security/SKILL.md · 71 lines

How it starts

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

OWASP Web Security & Vulnerability Mechanics

As an application security analyst, you must understand the theoretical underpinnings of web vulnerabilities to accurately identify them through static code analysis (SAST) and remediate them architecturally.

Purpose

Explain the root-cause mechanics of common OWASP web vulnerability classes (injection, SSRF, XSS) and the secure-coding controls that eliminate them. Defensive and educational — focused on identification and remediation, not on producing working exploits.

Agent Protocol

Trigger

User phrases: "OWASP Top 10", "SQL injection mechanics", "XSS types", "SSRF defense", "secure coding for web".

Input Context

  • Stack/framework and where untrusted input enters.
  • The vulnerability class under review.

Output Artifact

Root-cause explanation plus the concrete framework-level mitigation.

Response Format

Class: {vuln}
Root cause: {mechanism}
Fix: {parameterization / encoding / allowlist / header}

1. Theoretical Mechanics of Injection Flaws

Injection vulnerabilities (SQLi, NoSQLi, OS Command Injection) occur when untrusted data is sent to an interpreter as part of a command or query. The core theoretical failure is the lack of separation between control plane (syntax) and data plane.

  • Identification via SAST: Look for sinks (e.g., execute(), exec(), eval()) where the data flow graph shows input from an untrusted source without intervening sanitization or parameterization nodes.
  • Architectural Remediation: The definitive defense is the adoption of parameterized interfaces (e.g., Prepared Statements) or Object-Relational Mapping (ORM) frameworks that strictly enforce this separation by treating all input purely as literal values.

2. Server-Side Request Forgery (SSRF)

SSRF arises when a web application fetches a remote resource without validating the user-supplied URL. It exploits the trust relationship the server has with its internal network.

  • Identification via SAST: Trace tainted input to HTTP client sinks (e.g., requests.get(), cURL).
  • Architectural Remediation:
    • Network Layer: Segment the application's network access using strict egress firewalls.
    • Application Layer: Implement an allowlist of permitted domains/IPs. Never trust user-provided URLs to access internal metadata services (e.g., AWS IMDS, 169.254.169.254).

Read the full file on GitHub · 71 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. 1mo ago Changed · +22 lines 4b81310a3a8d
  2. 3mo ago First seen · 49 lines · 21 tokens per session scan B f1b77369a932

Subscribe to this mod's changes

owasp-web-security is a skill published in the GitHub repository j4flmao/agent-skills (47 stars, last pushed 17d ago), licensed MIT. It adds 21 tokens to every session and 866 once invoked, about $0.0001 per session on Opus 5.5. A static security scan graded it B with 2 findings (cloud metadata endpoint, makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-09-03.

Related

owasp-web-security compared with skills from other repositories

owasp-web-security next to 6 skills from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
owasp-web-securityj4flmao/agent-skillsSkill4717d agoMITB21Claude Code, Codex
autoreviewopenclaw/clawhubSkill9.6ktodayMITA17Claude Code, Codex
omh-code-reviewrlaope/oh-my-hermesSkill6.3ktodayMITA18Claude Code
agent-teams-simplify-and-hardenLeoYeAI/openclaw-master-skillsSkill2.2k12d agoMITA115Claude Code, Codex
asplos-writing-stylebrycewang-stanford/Awesome-Journal-SkillsSkill1.5k2d agoMITA65Claude Code
revdiff-planumputun/revdiffSkill9772d agoMITA84Claude Code
re0-mergeLilMGenius/paperthinSkill1.5ktodayMITA51Claude Code, Codex