Owasp check

From woohyun212/security-skill · View interactive version

Owasp check is an AI agent skill from the GitHub repository woohyun212/security-skill. OWASP Top 10 (2021) checklist-based inspection and compliance matrix generation

How to use this skill

Skill file

What this skill does

Inspects security controls of a target application against the OWASP Top 10 2021 standard. Queries the defense status for each of the 10 categories (A01–A10) and generates a Pass/Fail/N-A compliance matrix. Provides prioritized remediation recommendations with official OWASP reference links for each failed item.

When to use

Prerequisites

Inputs

| Item | Description | Example |

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

| APP_NAME | Name of the application under review | MyWebApp v2.3 |

| APP_TYPE | Application type | web / api / mobile |

| TECH_STACK | Technology stack in use (optional) | Node.js, PostgreSQL, React |

Workflow

Step 1: Collect target application information

APP_NAME="${SECSKILL_APP_NAME:-}"
if [ -z "$APP_NAME" ]; then
  read -rp "Application name: " APP_NAME
fi
APP_TYPE="${SECSKILL_APP_TYPE:-}"
if [ -z "$APP_TYPE" ]; then
  read -rp "Type (web/api/mobile): " APP_TYPE
fi
TECH_STACK="${SECSKILL_TECH_STACK:-}"
if [ -z "$TECH_STACK" ]; then
  read -rp "Tech stack (e.g. Node.js, PostgreSQL): " TECH_STACK
fi

REPORT_FILE="/tmp/owasp_check_$(date +%Y%m%d_%H%M%S).md"
echo "# OWASP Top 10 2021 Inspection Results" > "$REPORT_FILE"
echo "" >> "$REPORT_FILE"
echo "- **Target**: $APP_NAME" >> "$REPORT_FILE"
echo "- **Type**: $APP_TYPE" >> "$REPORT_FILE"
echo "- **Stack**: $TECH_STACK" >> "$REPORT_FILE"
echo "- **Date**: $(date '+%Y-%m-%d')" >> "$REPORT_FILE"
echo "" >> "$REPORT_FILE"
echo "[+] Report file initialized: $REPORT_FILE"

Step 2: Query each OWASP Top 10 2021 category

Reference: See REFERENCE.md for the full OWASP Top 10 2021 checklist (10 categories, 35 questions, reference URLs, and remediation priority guide).

The script iterates all 10 categories (A01–A10), prompts y/n/s for each question, then writes a compliance matrix and remediation list to the report file.

Step 3: Print compliance matrix

echo ""
echo "=== Final Compliance Matrix ==="
grep -A 20 "## Compliance Matrix" "$REPORT_FILE" | head -20

FAIL_COUNT=$(grep -c "FAIL" "$REPORT_FILE" 2>/dev/null || echo 0)
echo ""
echo "[Summary]"
echo "  Total failed items: $FAIL_COUNT"
echo "  Detailed report: $REPORT_FILE"

Step 4: Print prioritized remediation recommendations

Reference: See REFERENCE.md for the full remediation priority guide (HIGH/MEDIUM/LOW bands with category groupings).

echo "[+] Full OWASP Top 10 reference: https://owasp.org/Top10/"

Done when

Failure modes

| Issue | Cause | Solution |

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

| Inspection interrupted | Terminal session closed | Re-run and skip completed items with N/A (s) |

| Report file missing | /tmp permission issue | Change to REPORT_FILE=~/owasp_result.md |

| Question hard to understand | Insufficient technical context | Refer to the description section of each reference link |

Notes

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.