website-security-audit
БесплатноБез исполняемых скриптовНе проверенComprehensive 5-Phase & 10-Layer defensive website vulnerability scanner, OWASP Top 10 DAST/SAST auditor, security headers checker, and client-side bundle/API…
от smartworldarafath★ 68 звёзд на GitHubОб этом скилле
Website Security Audit & 10-Layer Web Infrastructure Scanner
Overview
This skill provides a standardized, automated methodology for performing defensive security audits, OWASP Top 10 vulnerability assessments, and full-stack architecture inspections on websites and web applications owned by the user. It combines Pentest-Tools Website Scanner DAST/SAST workflows (Light Passive Scan vs. Deep Active Scan, Spidering, Technology Fingerprinting, and Authenticated Testing) with our 5-Phase Defensive Audit and 10-Layer Web Stack Reference.
1. Scan Modes & Diagnostic Questions (Pentest-Tools Scanner Methodology)
When auditing a target URL or web repository, support three execution modes (defaulting to Deep Full-Stack Audit unless specified):
- Light Scan (Passive & Non-Intrusive):
- Inspects HTTP response headers, DNS/SSL/TLS posture, server banners, cookie security flags (
HttpOnly,Secure,SameSite), technology fingerprinting, and client-side JS bundle secret leaks without sending active fuzzing payloads.
- Inspects HTTP response headers, DNS/SSL/TLS posture, server banners, cookie security flags (
- Deep Scan (Active OWASP Top 10 Assessment):
- Performs automated crawling/spidering to discover hidden routes, forms, API endpoints, and query parameters.
- Evaluates OWASP Top 10 risks: SQL Injection (SQLi), Cross-Site Scripting (Reflected/Stored/DOM XSS), OS Command Injection, Local/Remote File Inclusion (LFI/RFI), SSRF, Broken Access Control (IDOR/BOLA), and Outdated JS Libraries / CVE exposure.
- Authenticated Scan (Session / Cookie / Bearer Token):
- Audits protected dashboards, multi-tenant isolation (Supabase/Postgres RLS), state-changing POST/PUT/DELETE endpoints, and payment webhooks behind login boundaries.
Smart Diagnostic Questions (When User Asks "How Should I Audit My Website?")
If the user asks what to check or how to prompt, offer or automatically verify these core questions:
- Are HTTP security headers (
HSTS, enforcedCSP,X-Frame-Options,X-Content-Type-Options, strictCORS) properly blocking XSS and clickjacking? - Are any private keys (
SUPABASE_SERVICE_ROLE_KEY,sk_live_*, database URLs, internal.envvariables) bundled into client-side Webpack/Vite/Next.js chunks? - If
anon_keyor Firebase config is public, is Row-Level Security (RLS) strictly enforced on every table (auth.uid() = user_id)? - Are public
/api/*, GraphQL, and authentication endpoints protected against brute-force, credential stuffing, and denial-of-wallet attacks via rate limiting? - Do Stripe/Paddle/LemonSqueezy webhook handlers verify cryptographic HMAC signatures before granting user entitlements?
2. Automated 5-Phase Defensive Audit Pipeline
Phase 1: HTTP Security Headers & Transport Security
Inspect response headers using curl.exe -I -s -L https://<target-domain>/ or REA MCP inspect_web_page:
- Strict-Transport-Security (HSTS): Must include
max-age=31536000; includeSubDomains; preload. - Content-Security-Policy (CSP):
- Flag if CSP is only in
Content-Security-Policy-Report-Only(non-blocking) instead of enforcedContent-Security-Policy. - Flag dangerous directives:
'unsafe-inline','unsafe-eval', or overly broad wildcards (*). Recommend cryptographic nonces (nonce-<base64>).
- Flag if CSP is only in
- Cross-Origin Resource Sharing (CORS): Flag
Access-Control-Allow-Origin: *or reflectedOriginwithAccess-Control-Allow-Credentials: trueon authenticated routes. - Clickjacking & MIME Defense: Verify
X-Frame-Options: DENY(or CSPframe-ancestors 'none') andX-Content-Type-Options: nosniff. - Referrer & Permissions: Verify
Referrer-Policy: strict-origin-when-cross-originand restrictivePermissions-Policy.
Phase 2: Frontend Bundle & Secret Leakage Inspection
Use REA MCP (analyze_web_bundle, recover_javascript_sources, export_web_scripts) or automated Python/Node inspection to scan all HTML and .js chunks:
import urllib.request, re
url = "https://<target-domain>/"
req = urllib.request.Request(url, headers={"User-Agent": "Mozilla/5.0"})
html = urllib.request.urlopen(req).read().decode("utf-8", errors="ignore")
high_risk_patterns = {
"Supabase Service Role Key": r"eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9\.[a-zA-Z0-9_\-]+\.[a-zA-Z0-9_\-]+",
"Private API Key / Secret": r"(?:sk_live_|secret_key|private_key|api_secret)\w+",
"Database URL with Credentials": r"postgres://\w+:[^@]+@[\w\.-]+",
"AWS Access Key": r"AKIA[0-9A-Z]{16}",
}
api_routes = set(re.findall(r'["\'](/api/[\w\-/]+)["\']', html))
- Safe to expose:
NEXT_PUBLIC_*, Supabaseanon_key(only when RLS is enabled), Clerk publishable key (pk_live_*). - Critical Leaks: Supabase
service_role_key, Stripesk_live_*/ webhook secrets (whsec_*), database credentials,.env/.git/HEADexposure.
Phase 3: Auth & Database Access Controls (RLS Verification)
- Row Level Security (RLS): Confirm all Supabase/PostgreSQL tables have
ENABLE ROW LEVEL SECURITYa
Установить website-security-audit в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл website-security-audit?
Comprehensive 5-Phase & 10-Layer defensive website vulnerability scanner, OWASP Top 10 DAST/SAST auditor, security headers checker, and client-side bundle/API inspector for user-owned websites and web applications (inspired by Pentest-Tools Website Scanner & OWASP ZAP).
Как установить скилл website-security-audit?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл website-security-audit запускает скрипты?
Нет, скилл состоит только из инструкций (SKILL.md), без исполняемых скриптов.
Похожие скиллы
mcp-builder
Guide for creating high-quality MCP (Model Context Protocol) servers that enable LLMs to interact with external services through well-designed tools. Use when…
от Anthropicclaude-api
Reference for the Claude API / Anthropic SDK — model ids, pricing, params, streaming, tool use, MCP, agents, caching, token counting, model migration. TRIGGER…
от Anthropicalgorithmic-art
Creating algorithmic art using p5.js with seeded randomness and interactive parameter exploration. Use this when users request creating art using code…
от Anthropicmcp-integration
This skill should be used when the user asks to "add MCP server", "integrate MCP", "configure MCP in plugin", "use .mcp.json", "set up Model Context…
от Anthropic