Owasp

From tinh2/skills-hub-registry · View interactive version

Owasp is an AI agent skill from the GitHub repository tinh2/skills-hub-registry. Systematic audit against the OWASP 2021 Top 10 web application security risks with severity-rated, file-level findings.

How to use this skill

Skill file

You are in AUTONOMOUS MODE. Do NOT ask questions. Audit every OWASP category systematically.

TARGET:

$ARGUMENTS

If no arguments provided, audit the entire project in the current working directory against all OWASP Top 10 categories.

============================================================

PHASE 0: TECH STACK DETECTION

============================================================

Auto-detect the project's technology stack:

Identify the web framework, ORM/database layer, auth library, and template engine.

These determine what patterns to scan for in each OWASP category.

============================================================

PHASE 1: A01 — BROKEN ACCESS CONTROL

============================================================

Scan for access control failures:

AUTH MIDDLEWARE COVERAGE:

IDOR (Insecure Direct Object References):

PATH TRAVERSAL:

CORS MISCONFIGURATION:

PRIVILEGE ESCALATION:

For each finding: file path, line number, severity, description, fix.

============================================================

PHASE 2: A02 — CRYPTOGRAPHIC FAILURES

============================================================

Scan for cryptographic weaknesses:

WEAK ALGORITHMS:

EXPOSED SECRETS:

WEAK TRANSPORT:

DATA EXPOSURE:

============================================================

PHASE 3: A03 — INJECTION

============================================================

Scan for injection vulnerabilities:

SQL INJECTION:

NOSQL INJECTION:

COMMAND INJECTION:

XSS (Cross-Site Scripting):

LDAP INJECTION:

XPATH INJECTION:

For each: exact code location, injection type, proof pattern, fix.

============================================================

PHASE 4: A04 — INSECURE DESIGN

============================================================

Scan for design-level security flaws:

MISSING RATE LIMITING:

BUSINESS LOGIC FLAWS:

MISSING SECURITY CONTROLS:

============================================================

PHASE 5: A05 — SECURITY MISCONFIGURATION

============================================================

Scan for configuration issues:

DEBUG/DEVELOPMENT MODE:

DEFAULT CREDENTIALS:

UNNECESSARY FEATURES:

MISSING SECURITY HEADERS:

============================================================

PHASE 6: A06 — VULNERABLE AND OUTDATED COMPONENTS

============================================================

Scan for vulnerable dependencies:

DEPENDENCY AUDIT:

KNOWN CVE CHECK:

FRAMEWORK VERSIONS:

============================================================

PHASE 7: A07 — IDENTIFICATION AND AUTHENTICATION FAILURES

============================================================

Scan for authentication weaknesses:

PASSWORD POLICIES:

SESSION MANAGEMENT:

MFA:

CREDENTIAL STORAGE:

============================================================

PHASE 8: A08 — SOFTWARE AND DATA INTEGRITY FAILURES

============================================================

Scan for integrity issues:

INSECURE DESERIALIZATION:

CI/CD INTEGRITY:

UPDATE MECHANISMS:

============================================================

PHASE 9: A09 — SECURITY LOGGING AND MONITORING FAILURES

============================================================

Scan for logging deficiencies:

MISSING SECURITY EVENTS:

LOG QUALITY:

MONITORING:

============================================================

PHASE 10: A10 — SERVER-SIDE REQUEST FORGERY (SSRF)

============================================================

Scan for SSRF vulnerabilities:

URL HANDLING:

DNS REBINDING:

CLOUD METADATA:

============================================================

SELF-HEALING VALIDATION (max 2 iterations)

============================================================

After producing the security analysis, validate thoroughness:

  1. Verify every category in the audit was actually checked (not skipped).
  2. Verify every finding has a specific file:line location.
  3. Verify severity ratings are justified by impact assessment.
  4. Verify no false positives by re-reading flagged code in context.

IF VALIDATION FAILS:

============================================================

OUTPUT

============================================================

OWASP Top 10 Audit Report

Project: [name]

Stack: [detected technologies]

Date: [date]

Summary

| ID | Category | Status | Findings |

|-----|-----------------------------------|--------|----------|

| A01 | Broken Access Control | [PASS/WARN/FAIL] | N |

| A02 | Cryptographic Failures | [PASS/WARN/FAIL] | N |

| A03 | Injection | [PASS/WARN/FAIL] | N |

| A04 | Insecure Design | [PASS/WARN/FAIL] | N |

| A05 | Security Misconfiguration | [PASS/WARN/FAIL] | N |

| A06 | Vulnerable Components | [PASS/WARN/FAIL] | N |

| A07 | Auth Failures | [PASS/WARN/FAIL] | N |

| A08 | Data Integrity Failures | [PASS/WARN/FAIL] | N |

| A09 | Logging Failures | [PASS/WARN/FAIL] | N |

| A10 | SSRF | [PASS/WARN/FAIL] | N |

Detailed Findings

For each category with WARN or FAIL:

[Category Name]

| # | Severity | File | Line | Description | Fix |

|---|----------|------|------|-------------|-----|

| 1 | Critical | path/to/file.ts | 42 | Description | Recommended fix |

Risk Assessment

Remediation Priority

[Ordered list of fixes by severity and effort, Critical first]

============================================================

NEXT STEPS

============================================================

After reviewing the audit:

============================================================

SELF-EVOLUTION TELEMETRY

============================================================

After producing output, record execution metadata for the /evolve pipeline.

Check if a project memory directory exists:

Entry format:

### /owasp — {{YYYY-MM-DD}}
- Outcome: {{SUCCESS | PARTIAL | FAILED}}
- Self-healed: {{yes — what was healed | no}}
- Iterations used: {{N}} / {{N max}}
- Bottleneck: {{phase that struggled or "none"}}
- Suggestion: {{one-line improvement idea for /evolve, or "none"}}

Only log if the memory directory exists. Skip silently if not found.

Keep entries concise — /evolve will parse these for skill improvement signals.

============================================================

DO NOT

============================================================

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.