Owasp web security

From j4flmao/agent-skills · View interactive version

Owasp web security is an AI agent skill from the GitHub repository j4flmao/agent-skills. Theoretical mechanics of critical web vulnerabilities, static analysis, and secure architecture remediation.

How to use this skill

Skill file

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

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.

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.

3. Cross-Site Scripting (XSS)

XSS is the result of reflecting untrusted data in a web browser without proper contextual output encoding, allowing the execution of arbitrary JavaScript within the victim's session context.

Remediation Workflow

%%{init: {"theme": "default", "flowchart": {"useMaxWidth": true}}}%%
flowchart TD
    A[Vulnerability Discovery] --> B{Context Analysis}
    B -->|Database Sink| C[Implement Parameterization]
    B -->|HTTP Client Sink| D[Implement URL Allowlist & Egress Filtering]
    B -->|Browser Output Sink| E[Implement Context-Aware Encoding & CSP]
    C --> F[Architectural Validation via SAST]
    D --> F
    E --> F
    F --> G[Secure Deployment]
Use this skill with your AI agent: Open on Skill Issue to copy, download, or add to your library. Works with Claude, ChatGPT, Gemini, Cursor, Windsurf and more.