owasp-zap

>-

terminalskills/skills6 installsApache-2.0Synced Aug 22

Works with

Claude CodeCursorCodex CLIGitHub CopilotGemini CLI
---
name: owasp-zap
description: >-
license: Apache-2.0
---

# OWASP ZAP

## Overview

OWASP ZAP is an open-source web application security scanner that discovers vulnerabilities through spidering, passive analysis, and active attack testing. It detects OWASP Top 10 issues (XSS, SQL injection, CSRF, SSRF, broken access control), integrates with CI/CD via Docker and GitHub Actions, and supports API scanning from OpenAPI specs with configurable scan policies.

## Instructions

- When running quick scans in CI, use `zap-baseline.py` which performs passive-only scanning (non-destructive) on every PR and catches approximately 60% of issues without sending attack payloads.
- When running thorough scans on staging, use `zap-full-scan.py` which combines spidering, passive scanning, and active attack testing; never run active scans on production since they send destructive payloads.
- When scanning APIs, use `zap-api-scan.py` with the OpenAPI/Swagger spec to automatically discover and test all endpoints without manual crawling.
- When configuring authentication, set up form-based, script-based, or header-based auth before scanning so ZAP can reach authenticated endpoints that contain the majority of vulnerabilities.
- When integrating with CI/CD, use the Docker image (`ghcr.io/zaproxy/zaproxy`) or GitHub Actions (`zaproxy/action-baseline`), set fail thresholds by alert level, and generate both HTML and JSON reports.
- When triaging results, prioritize by confidence and risk level (High/High first), exclude known false positives with scan policy rules, and ignore Informational alerts in CI.

## Examples

### Example 1: Add security scanning to a CI/CD pipeline

**User request:** "Run OWASP ZAP on every pull request to catch security issues early"

**Actions:**
1. Add a GitHub Action using `zaproxy/action-baseline@v0.12.0` targeting the staging URL
2. Configure fail thresholds to break the build on High risk alerts only
3. Generate HTML reports as build artifacts for developer review
4. Add scan policy exceptions for known false positives

**Output:** A CI pipeline that runs passive security scanning on every PR with reports and configurable failure thresholds.

### Example 2: Run a full security audit on a staging environment

**User request:** "Perform a comprehensive security scan of our web application before launch"

**Actions:**
1. Configure ZAP authentication with the application's login flow
2. Run the Ajax Spider for JavaScript-heavy SPA crawling
3. Execute a full active scan with High strength on all discovered endpoints
4. Generate HTML and JSON reports, triaging alerts by confidence and risk

**Output:** A comprehensive security audit report with prioritized vulnerabilities and remediation guidance.

## Guidelines

- Use `zap-baseline.py` in CI on every PR since it is non-destructive and catches most common issues passively.
- Run full active scans only on staging, never on production, since active scans send attack payloads.
- Set up authentication before scanning since unauthenticated scans miss vulnerabilities behind login.
- Import OpenAPI specs for API testing to automatically discover endpoints.
- Triage alerts by confidence and risk: address High confidence + High risk first.
- Exclude false positives with scan policy rules rather than ignoring alerts globally.
- Generate both HTML (for humans) and JSON (for automation) reports.

More Security skills

azure-cost

microsoft/azure-skills

Azure cost management: query costs, forecast spending, optimize to reduce waste. WHEN: \"Azure costs\", \"Azure bill\", \"cost breakdown\", \"how much am I spending\", \"forecast spending\", \"optimize costs\", \"reduce spending\", \"orphaned resources\", \"rightsize VMs\", \"cost spike\", \"reduce storage costs\", \"AKS cost\". DO NOT USE FOR: deploying resources, provisioning, diagnostics, or security audits.

355.6k

entra-app-registration

microsoft/azure-skills

Guides Microsoft Entra ID app registration, OAuth 2.0 authentication, and MSAL integration. USE FOR: create app registration, register Azure AD app, configure OAuth, set up authentication, add API permissions, generate service principal, MSAL example, console app auth, Entra ID setup, Azure AD authentication. DO NOT USE FOR: Key Vault secrets (use azure-keyvault-expiration-audit), general Azure resource security guidance.

318.9k

azure-messaging

microsoft/azure-skills

Troubleshoot and resolve issues with Azure Messaging SDKs for Event Hubs and Service Bus. Covers connection failures, authentication errors, message processing issues, and SDK configuration problems. WHEN: event hub SDK error, service bus SDK issue, messaging connection failure, AMQP error, event processor host issue, message lock lost, message lock expired, lock renewal, lock renewal batch, send timeout, receiver disconnected, SDK troubleshooting, azure messaging SDK, event hub consumer, service bus queue issue, topic subscription error, enable logging event hub, service bus logging, eventhub python, servicebus java, eventhub javascript, servicebus dotnet, event hub checkpoint, event hub not receiving messages, service bus dead letter, batch processing lock, session lock expired, idle timeout, connection inactive, link detach, slow reconnect, session error, duplicate events, offset reset, receive batch.

310.3k

← All Security skills

Check your AI visibility

One URL in, a 0–100 score and the exact fixes out.

RUN THE CHECK

Browse all the tools

15 tools across six categories
13 of them never send your data anywhere

Free · No signup · No trial clock

SEE THE DIRECTORY