owasp-zap
БесплатноБез исполняемых скриптовНе проверенOWASP ZAP (Zed Attack Proxy) is an open-source web application security scanner that crawls a site, passively inspects traffic and optionally attacks it to…
от TerminalSkills★ 221 звезда на GitHubОб этом скилле
OWASP ZAP
Overview
OWASP ZAP is an open-source web application security scanner. It maps an application with a spider (and an Ajax spider for JavaScript apps), passively analyses every response, and can run active scans that send attack payloads. It ships as a desktop app, a headless CLI, a REST API and Docker images. Latest release checked: 2.17.0. The Docker image is ghcr.io/zaproxy/zaproxy:stable (other tags: weekly, nightly, bare); the old owasp/zap2docker-* names are gone. The desktop and CLI installs need Java 17 or newer.
Three packaged scripts live in the image:
| Script | What it does | Sends attacks? |
|---|---|---|
zap-baseline.py |
Spiders the target (1 minute by default), waits for passive scanning, reports | No attack payloads, but it does crawl the site |
zap-full-scan.py |
Spider, optional Ajax spider, passive scan, then an active scan | Yes |
zap-api-scan.py |
Imports an OpenAPI, SOAP or GraphQL definition, then scans the endpoints | Yes, unless -S |
ZAP's documentation says the Automation Framework (YAML plans run with zap.sh -cmd -autorun plan.yaml) will in time replace the packaged scans; use it when you need authentication, contexts or custom job order.
Instructions
Only scan systems you own or have written permission to test. Active and full scans modify data (they submit forms and may create records), so run them against staging or a disposable copy, never production.
Baseline scan with reports (exit codes: 0 clean, 1 at least one FAIL, 2 only WARNs, 3 other failure):
mkdir -p zap-out && chmod a+w zap-out # the container user must be able to write here
docker run --rm -v "$(pwd)/zap-out:/zap/wrk/:rw" -t ghcr.io/zaproxy/zaproxy:stable \
zap-baseline.py -t https://staging.shopfront.dev -r baseline.html -J baseline.json
Every alert is a WARN by default. Generate a rules file with -g gen.conf, edit it to mark rules IGNORE or FAIL (tab-separated: rule id, action, name), and pass it with -c gen.conf so CI can fail only on what matters. Other useful flags: -m 5 (spider minutes), -j (also use the Ajax spider), -a (include alpha passive rules), -l WARN (minimum level shown), -I (do not fail on warnings), -T (timeout in minutes).
Full scan, staging only:
zap-full-scan.py -t https://staging.shopfront.dev -m 10 -r full.html. It can run for a long time; set-Tto cap it.API scan from a definition (URL or a file in the mounted
/zap/wrk):
docker run --rm -v "$(pwd)/zap-out:/zap/wrk/:rw" -t ghcr.io/zaproxy/zaproxy:stable \
zap-api-scan.py -t https://staging.shopfront.dev/openapi.json -f openapi -r api.html -S
-f is openapi, soap or graphql; -S makes it safe (passive only); -O overrides the hostname written in the spec. A target that runs in another container needs a network ZAP can reach, not localhost.
GitHub Actions: the maintained actions are
zaproxy/action-baseline(v0.15.0),zaproxy/action-full-scan(v0.13.0) andzaproxy/action-api-scan(v0.10.0). By default they open or update a GitHub issue with the findings (needsissues: writepermission; setallow_issue_writing: falseto disable) and upload the report as an artifact namedzap_scan. Setfail_action: trueto fail the job on alerts,rules_file_namefor the ignore list,cmd_optionsfor extra script flags.Authenticated scans and anything beyond the packaged options: write an Automation Framework plan. Jobs run top to bottom:
# plan.yaml
env:
contexts:
- name: shopfront
urls: ["https://staging.shopfront.dev"]
jobs:
- type: spider
parameters: { context: shopfront }
- type: passiveScan-wait
parameters: { maxDuration: 5 }
- type: report
parameters: { template: traditional-html, reportDir: /zap/wrk, reportFile: shopfront }
docker run --rm -v "$(pwd)/zap-out:/zap/wrk/:rw" -t ghcr.io/zaproxy/zaproxy:stable \
zap.sh -cmd -autorun /zap/wrk/plan.yaml
Add spiderAjax for SPAs, activeScan for attacks, and an authentication block on the context (form, JSON, script or browser-based) plus a verification rule so ZAP knows when it has been logged out. Put test-account credentials in environment variables, never in the plan file.
- Triage: sort by risk, then confidence; confirm each finding manually before filing it; handle false positives with rule
IGNOREentries or context exclusions, not by silencing a whole scan.
Examples
Example 1: Scan every pull request without breaking the build on noise
User request: "Run OWASP ZAP on every pull request against our preview URL and fail only on real problems."
# .github/workflows/zap.yml
name: ZAP baseline
on: pull_request
permissions: { contents: read, issues: write }
jobs:
zap:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: zaproxy/[email protected]
with:
target: https://p
Установить owasp-zap в Claude Code и Claude Desktop
Зарегайся, чтобы установить скилл
Создай бесплатный аккаунт, чтобы открыть команду установки и сохранить скилл в библиотеку.
- Открой команду установки в одну строку
- Сохраняй скиллы в синхронизируемую библиотеку
- Уведомления, когда скиллы обновляются
Разрешённые инструменты
Инструменты, которые скиллу разрешено вызывать.
Без ограничений — скилл может использовать любой инструмент.
Вложенные файлы
FAQ
Что делает скилл owasp-zap?
OWASP ZAP (Zed Attack Proxy) is an open-source web application security scanner that crawls a site, passively inspects traffic and optionally attacks it to find XSS, SQL injection, missing security headers and other OWASP Top 10 issues. Use when configuring automated scans, running zap-baseline, zap-full-scan or zap-api-scan, adding security scanning to CI/CD or GitHub Actions, or triaging scan results. Trigger words: owasp zap, security scan, vulnerability scanner, penetration testing, zap-baseline, active scan, passive scan.
Как установить скилл owasp-zap?
Скопируй папку скилла в ~/.claude/skills (вкладка Claude Code выше делает это одной командой), либо поставь как плагин.
Скилл owasp-zap запускает скрипты?
Нет, скилл состоит только из инструкций (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