Burp Suite DAST vs ZAP in CI pipelines

Burp Suite DAST suits teams that want a vendor-run scanner with less pipeline engineering. ZAP with the Automation Framework suits teams that want Apache-2.0 tooling, control over where scans run, and can staff the integration work.

On this page

Which fits your CI scanning: Burp Suite DAST or ZAP

When a renewal, a licensing change or a data residency rule puts web scanning in your CI pipelines under review, the question is less about which scanner finds more and more about who runs it, where its traffic goes and how results reach your team. For a portfolio of applications maintained by a platform or AppSec team, with scan traffic that must stay inside your network and findings that feed a tracker, ZAP is usually the better fit because it runs as a Docker image, is driven by a YAML Automation Framework plan and carries an Apache-2.0 license with no per-seat cost. Burp Suite DAST remains a strong choice where the organization wants a vendor-supported scanner with a managed workflow and has the budget and the data handling approval for it.

The decision turns on four questions. First, how many applications will be scanned on a schedule, since per-application scan configuration and authentication flows are where effort accumulates in either tool. Second, who will maintain the pipelines: ZAP plans, exit status rules and authentication scripts are written and owned by your engineers, so you need named owners with time for that work. Third, where scan traffic may go, which matters if targets sit in a restricted zone or if a vendor-hosted or cloud-connected component would send data outside it. Confirm with the vendor how Burp Suite DAST deploys in your environment and what leaves the network. Fourth, whether findings must flow into a tracker. ZAP XML reports can be imported into DefectDojo, so check that your existing evidence process accepts that route.

Before you decide, run a short pilot on two or three representative applications, including one with login and multi-step flows. Measure the time to get authenticated scans stable, the number of false positives your team triages, and how the exit code gates the build. Ask the vendor for written answers on deployment options, update delivery for offline environments and the data retained by the product. Then compare the pilot results with the engineering hours your team would commit each quarter. A clear answer on ownership and data location usually settles the choice more reliably than a feature comparison.

Scenarios where each option is the better fit

This table maps common CI scanning situations to the option that usually fits better, based on pipeline effort, hosting, licensing and reporting. Scenarios that depend on PortSwigger's current terms are marked, so confirm those points in writing before deciding.

ScenarioBetter fitWhy it fits
A small team with a few apps and one or two pipeline engineersBurp Suite DAST, if the team values vendor support and a managed scan setupLess time spent writing and maintaining plans, but confirm with PortSwigger the seat or scan-count terms that apply to your team (to confirm with PortSwigger)
A small team with a few apps and no dedicated pipeline engineersBurp Suite DAST, if the budget allowsZAP needs YAML plans, authentication scripting and exit-code tuning written and kept current by someone on the team; a vendor-managed scanner shifts that work
A portfolio of many apps scanned on every releaseZAP with the Automation Framework and DefectDojoApache-2.0 licensing does not add a per-target or per-seat charge, and one plan template can be reused across apps; per-target terms for Burp DAST must be confirmed (to confirm with PortSwigger)
An air-gapped or tightly isolated build networkZAP Docker images run inside the boundary, with offline update handling planned in advanceZAP runs as a container or local process with no required cloud call; confirm whether a self-hosted Burp Suite DAST deployment and its update path meet your boundary rules (to confirm with PortSwigger)
A team that already runs DefectDojo for findingsZAP, with its XML report imported into DefectDojoDefectDojo has a ZAP parser that imports XML reports and deduplicates findings using title, CWE and severity; Burp output also imports, but check the parser and format version you need
A team that must keep existing Burp DAST findings and historyBurp Suite DAST for continuity, with a planned export into DefectDojo if you move laterMigrating scan history and authentication setup takes engineering time, so keeping the current scanner until the export path is tested reduces risk
A regulated environment where scanning must be authenticated and tracked for auditEither option, provided the evidence trail is documentedAuthenticated scanning and scan records support control expectations, but neither tool satisfies a PCI DSS ASV requirement on its own; confirm the assessor's expectations first

How a ZAP Automation Framework plan gates a build

A single YAML plan runs the scan, writes the report and sets the exit code that the CI runner reads to pass, warn or fail the build. Each step below ends with a check you can see in the pipeline log or the report.

  1. Write one YAML plan with the scan jobs

    The team writes one Automation Framework plan that lists the jobs in order, typically a spider job to discover the application, an activeScan job to test it and a report job to write results to a file. The plan lives in the same repository as the application so that changes to scope and targets go through code review. The output is a committed plan file that a reviewer has read, with the target URL and authentication settings visible in it. Confirm that any credentials come from CI secrets rather than from the file itself.

  2. Start ZAP in the stable Docker image

    The CI job runs the stable ZAP Docker image, which includes the Automation Framework, and passes the plan with the -cmd and -autorun options so ZAP runs unattended and exits when the plan finishes. The job mounts the workspace so the plan and report paths are reachable from inside the container. The output is a pipeline log showing ZAP starting each job by name. Confirm the image tag you pin, since the stable tag moves with releases, and record the version you tested against.

  3. Run the spider and active scan jobs

    ZAP runs the spider job to map the application, then the activeScan job against the discovered endpoints, following the scope and thresholds written in the plan. The scan runs inside the pipeline runner's network, so the target must be reachable from that runner. The output is a log of URLs visited and alerts raised by job. Check that the spider finished against the expected host, because a spider that stops early will produce a scan that looks clean but covered little of the application.

  4. Write the report from the report job

    The report job writes the findings to a file in the workspace, which the pipeline can archive as a build artifact for reviewers. Teams that import into DefectDojo later pick up this same output, so the report format and file name should be fixed in the plan. The output is a report file in the workspace that the pipeline can read and store. Confirm that the report is produced even when the scan fails, so that the evidence exists for triage.

  5. Set the exit code with an exitStatus job

    An exitStatus job, placed after the scan, reads the results and sets the exit code that ZAP returns to the pipeline. The team defines which risk levels or alert counts count as a problem, and the job maps those findings to the exit code. The output is a single exit code tied to the scan results, not to a generic run status. The exact thresholds are a team decision, so set them against a known test application first and tune them before any production gate uses them.

  6. Read exit 0, 1 and 2 in the pipeline

    The pipeline step treats exit 0 as success, so the build passes. Exit 1 means ZAP hit an error, such as a failed job, an unreachable target or a configuration fault, and the build should fail because the scan did not complete. Exit 2 means the run finished with warnings, which the team can map to a warning state, a non-blocking flag or a failed build, depending on policy. The output is a documented mapping from each exit code to a pipeline outcome. Confirm the mapping in your CI syntax, since some runners treat any non-zero code as failure unless the step allows it.

  7. Test the gate in a non-production pipeline

    Before the gate blocks merges, run the same plan in a non-production pipeline against a test application with known findings, and confirm that each exit code produces the outcome the team expects. Record the ZAP version, the thresholds and the pipeline behavior so the evidence can be reviewed later. The output is a short test record showing the three exit states behaving as documented. Ask your security lead to sign off the thresholds before they are used on production branches.

Capabilities side by side: Burp Suite DAST and ZAP in CI

This table compares how Burp Suite DAST and ZAP handle scanning inside CI pipelines, from licensing and deployment to exit codes and DefectDojo import. Where a Burp Suite DAST cell is marked as a confirmation item, check the current answer with PortSwigger before you decide, since this page uses only the ZAP facts we could verify. The main takeaway is that ZAP's pipeline behavior is documented and testable, while the Burp side depends on vendor confirmation for your edition and environment.

CapabilityBurp Suite DASTZAP (Automation Framework)
Scan engine and licensingCommercial product from PortSwigger. Confirm the license model, seat or target terms, and whether scan volume is limited with PortSwigger.Free and open source under Apache-2.0, maintained as a community project on GitHub.
Deployment optionsConfirm with PortSwigger which deployment modes apply to your edition, including any self-hosted option for your network.Windows, Linux and macOS installers, cross-platform packages, and stable Docker images. Windows and Linux installers need Java 17 or higher.
Unattended scan definitionConfirm with PortSwigger how scheduled and CI scans are defined and whether they can be stored as code in your repository.One YAML plan made of jobs such as spider, activeScan and report, run with the -cmd and -autorun options.
Container image for CIConfirm with PortSwigger whether an official container image exists for pipeline runners and how it is versioned.Stable Docker images (ghcr.io/zaproxy/zaproxy:stable and zaproxy/zap-stable), with the Automation Framework included.
Pipeline exit codesConfirm with PortSwigger what exit codes its CI tooling returns for success, errors and findings.0 on success, 1 on error, 2 with warnings. An exitStatus job can set the exit code from scan results.
API accessConfirm with PortSwigger which API operations exist for triggering scans and retrieving results, and how they are authenticated.Exposes nearly all desktop functions, returns JSON, XML or HTML, and requires an API key on all API actions and some other operations. Reachable only from the ZAP host by default.
Report formatsConfirm with PortSwigger which report formats each edition produces for CI artifacts.Report job in the Automation Framework. XML reports can be imported into DefectDojo, with or without requests and responses.
DefectDojo importConfirm with PortSwigger whether a DefectDojo parser exists for your export format and which fields it preserves.DefectDojo imports ZAP XML reports. Duplicates are matched on title, CWE and severity for ZAP reports.
Self-hosted or air-gapped operationConfirm with PortSwigger whether self-hosted and offline update paths are supported for your contract and version.Runs fully inside your network from installers or Docker images. Plugin and update handling offline must be tested in your own environment.

How a ZAP scan flows from CI to DefectDojo

The flow starts when the CI runner launches the stable ZAP Docker image with an Automation Framework plan. ZAP spiders and actively scans the target application inside the network, writes an XML report, and returns an exit code that the pipeline uses to pass or fail the build. The report then goes to DefectDojo, which deduplicates findings. Check where the ZAP API key, the target credentials and the DefectDojo token are stored, because they sit inside your boundary and need the same controls as the scan results.

Components, trust boundary and where credentials are held in a ZAP CI scan.

Where scan traffic, findings and credentials live

Pipeline scanning moves three kinds of data: target traffic, scan findings and the credentials that reach the targets. Where each one sits decides whether the setup clears a residency rule, runs inside an air-gapped network or survives a customer security review.

Scan traffic and target data

Active scans send crafted requests to the application and receive full responses, which can include personal data, session tokens and business records. With ZAP, the runner executes inside your own CI agents or Docker host, so traffic stays on infrastructure you control. With Burp Suite DAST, confirm with the vendor where its scanning engine runs and which regions process the traffic before any regulated application is pointed at it. Record the answer in the scan design document.

Hosting models for each option

ZAP runs as a Docker image or a packaged install on your own runners, which suits air-gapped networks once images are mirrored into the boundary. Burp Suite DAST can be self-hosted, including in air-gapped networks, so the comparison comes down to how each option receives updates offline and where its scan data is stored. Ask the vendor for the exact deployment components and update mechanism in writing.

API keys and ZAP access control

The ZAP API is reachable only from the machine running ZAP by default and requires an API key on all API actions. Treat that key as a secret: store it in your CI secret manager, rotate it on a schedule, and never print it in job logs. If other jobs or hosts must reach the daemon, place it behind network controls, since ZAP does not supply an SSO or MFA layer of its own.

ZAP API docs

DefectDojo accounts and Pro identity features

The DefectDojo open-source edition uses local accounts, so each user needs an individual login and password managed inside the deployment. SSO with SAML, OIDC or OAuth, LDAP and MFA are listed as DefectDojo Pro features. If your customer or regulator expects central identity and MFA for every tool that holds findings, confirm whether that requirement forces a Pro license or an identity layer in front of the open-source instance.

DefectDojo README

Audit evidence and retention

Assessors look for scan schedules, configuration files, exit status records and the history of findings and their closure. Keep Automation Framework plans under version control, archive the ZAP reports each run produces and retain DefectDojo import records. Confirm the retention period and who can delete evidence with the compliance owner before the first scheduled run, because CI log retention is often shorter than the audit window.

The engineering work ZAP needs before it replaces a managed scanner

Replacing a managed Burp Suite DAST pipeline with ZAP means the team takes on work that the vendor otherwise absorbs. The first item is authentication for logged-in scans. ZAP has to log in as realistic test users, keep sessions alive, and detect when a session has expired mid-scan, which usually means configuring an authentication method and a logged-in indicator in the Automation Framework plan for each application. The second item is spider and active scan tuning. Each application needs its own scope, excluded URLs for logout and destructive actions, and scan policies that avoid timeouts or runaway crawls. Expect to iterate on these settings against the application's real behavior rather than copying one template across the portfolio.

The third item is pipeline wiring. Every CI system needs its own job definition that starts the ZAP Docker image, mounts the plan, passes the API key securely, and collects the report artifacts. Exit status rules also belong to the team: the Automation Framework exits with 0 on success, 1 on error and 2 with warnings, and an exitStatus job can set the code from scan results. Decide which findings fail a build and which only warn, and write that policy down before the first gate is switched on. Keeping the image and ZAP version current is ongoing work, since ZAP publishes stable releases and frequent weekly builds, and each upgrade should be tested against the plans before it reaches the pipeline.

Finally, the team maintains DefectDojo as the system of record, including parser configuration, deduplication behavior and triage of false positives, and ZAP itself is a community project on GitHub, so fixes and support come from your own engineers or a contracted partner rather than a single vendor. This work scales with the number of applications: a handful of plans is manageable in-house, while a large portfolio multiplies authentication setups, tuning cycles and pipeline definitions. Ask any partner to quote this work against a written list of applications, pipelines and authentication types.

What each option costs to run beyond the license

Burp Suite DAST is a commercial subscription from PortSwigger, so the largest visible cost is the recurring license or subscription that covers the scanning capacity you buy. Its cost picture is shaped by how much of the scanning and reporting is handled by the vendor product and how much your team still builds around it. The commercial quote is the only source for the license figure, so ask PortSwigger for a written quote that states the scan capacity, the deployment model and the support terms it covers.

  • Subscription or license: A recurring fee that depends on the scanning capacity, the number of targets and the deployment model you choose. Confirm whether self-hosted deployment, including an air-gapped option, is priced differently from a cloud deployment.
  • Scanner infrastructure: If you self-host the Burp Suite DAST components, you pay for the servers, storage and network capacity they need. Ask PortSwigger for the hardware and sizing guidance for your expected portfolio.
  • Pipeline engineering: Connecting scans to your CI system, handling authentication for each target and setting pass or fail rules is recurring engineering work. Ask whether the vendor provides CI integrations and how much of that setup is in the product.
  • Tuning and false-positive triage: Your security team spends time reviewing findings, suppressing noise and confirming real issues. The volume of this work depends on how well scans are scoped and configured.
  • Updates and staff time: Upgrades, support tickets and vendor coordination consume staff hours each year. Confirm the update cadence and whether upgrades are included in the subscription.

Before you compare totals, confirm each of these items in the written quote rather than estimating them from memory of older contracts.

What moving scheduled Burp DAST scans to ZAP involves

The sequence turns each scheduled Burp DAST job into a ZAP Automation Framework plan that runs in CI, reports into DefectDojo, and gates the pipeline on exit status, with the old schedule retired only after the two scanners have been compared.

  1. Inventory targets, schedules and gate rules

    The security engineer who owns the Burp DAST setup lists every application, scan schedule, pipeline job and gating rule that depends on it. Record which findings block a release, who receives the reports and which environments are scanned. Confirm the list with the application owners, because a target that is missing here will silently lose coverage after the switch. The step is done when every target has a named owner, a schedule and a stated gate rule.

  2. Rebuild authentication for each application

    The engineer who runs the test environments recreates how each application logs in, using the session handling that the target supports, such as a scripted login, a token or a fixed test account. Confirm with the application team how sessions expire and whether a test identity with limited rights is available. Check the result by running an authenticated spider and confirming that pages behind the login appear in the output. The step is done when the authenticated run reaches the same functional areas that the Burp configuration covered.

  3. Write one Automation Framework plan per application

    The pipeline engineer writes a YAML plan for each application that defines the spider, active scan, passive wait and report jobs, with the target URL and scan policy set per environment. Keep the plans in the same repository as the application or in a shared security repository under change control. Run each plan once from the command line with the autorun option in a non-production environment. The step is done when each plan completes and produces a report file that a reviewer has checked.

  4. Run both scanners in parallel

    The security team runs the existing Burp DAST schedule and the new ZAP plans against the same targets for an agreed period. Compare the findings by severity, by URL and by authentication state, and record where ZAP misses something Burp reports or the reverse. Tune scan policies and excluded paths where the two differ for reasons that are understood. The step is done when the team has a documented list of differences and the owners have accepted or fixed each one.

  5. Set exit status rules and test the gate

    The pipeline engineer adds an exitStatus job to each plan so that the scan result, not only the scan run, sets the exit code. Decide which risk levels fail the build and which only warn, then align this with the release policy the security owner signed. Use a deliberately vulnerable test target to confirm that a failing finding returns a non-zero exit code and that the pipeline stops. The step is done when the gate blocks a known-bad build and passes a clean one.

  6. Import ZAP reports into DefectDojo

    The engineer configures the pipeline to upload each ZAP XML report to DefectDojo through the API, with one product or engagement per application. Confirm that deduplication behaves as expected, because the ZAP parser uses title, CWE and severity to match findings across runs. Check that report requests and responses are included only where the team has decided that the evidence can be stored. The step is done when a repeat scan updates existing findings rather than duplicating them.

  7. Export historical Burp findings where possible

    The security engineer exports open and recent Burp DAST findings in a format that DefectDojo can read, using the Burp Suite DAST parser where it applies, and imports them into the matching products. Confirm with the export owner which older findings are needed for audit or remediation tracking and which can be closed as superseded. Record any findings that cannot be exported so the risk owner can decide how to handle them. The step is done when the open Burp findings are visible in DefectDojo or have a documented disposition.

  8. Switch the gate and retire the old schedule

    The release owner moves the pipeline gate from the Burp job to the ZAP plans, and the security team disables the Burp DAST schedule once the agreed parallel period has closed. Keep the old configuration and last reports in an archive for the retention period the organization requires, and confirm the archive can still be read. Notify the application owners of the change and the new report location. The step is done when the pipeline gates only on ZAP results, the Burp schedule is disabled, and the archive has been tested.

Questions buyers ask before switching CI scanning to ZAP

How much effort does switching CI scanning from Burp Suite DAST to ZAP take?

The effort depends mainly on how many scan configurations you already run and how much of their behavior you need to rebuild. Each Burp Suite DAST scan has to be re-expressed as a ZAP Automation Framework plan, which is one YAML file made of jobs such as spider, activeScan and report, run with the -cmd -autorun options. The main work items are:

  • Recreating authentication, since ZAP needs its own session handling for logged-in targets.
  • Tuning spider and active scan settings so coverage and scan time match what you had.
  • Wiring exit status rules into the pipeline so a failed scan blocks a release.
  • Moving historical findings and new ZAP reports into a tracker. ZAP XML reports import into DefectDojo.

Each of these grows with the number of applications, the complexity of their login flows and the number of pipelines. Ask any implementation partner for a written scope that lists these items for your estimate.

How long should a pilot of ZAP in CI run?

A pilot's length is set by the scope you agree on, not by a fixed period. A useful pilot runs ZAP alongside your current Burp Suite DAST scans on a small set of applications, so you can compare coverage, false positives and run time on the same targets before you cut over. The factors that lengthen it are the number of applications, how many authentication methods they use, whether the test environments are stable, and how many release cycles you want to observe before making a gating decision. The ZAP Automation Framework documentation and the release notes in the ZAP GitHub releases page help you plan for version changes during the pilot. Ask for the pilot's exit criteria in writing before it starts.

Can our own team do the ZAP migration without an outside partner?

Yes, a capable platform or security engineering team can migrate scans to ZAP, since ZAP is Apache-2.0 licensed, runs from stable Docker images and is driven by a YAML plan. The skills that matter most are CI pipeline administration, web authentication and session handling, and enough familiarity with the applications under test to judge whether a finding is real. Teams often find the scan tuning and false-positive triage take longer than expected because there is no vendor tuning built in. An outside partner is useful when you need a fixed-scope delivery with written deliverables, a retest or hardening of the setup. DeployOpen plans, implements and documents self-hosted open-source platforms in your own infrastructure, and most engagements are fixed-scope with the scope agreed in writing before work starts.

What does the ZAP migration need from our team in pipelines, environments and credentials?

Plan to provide four things before the work starts:

  • Pipeline access, so the ZAP job can be added to your CI system and run on a runner that can reach the target.
  • Test environments that are stable and represent production behavior, since active scans send attack traffic and should not hit live customer data.
  • Scan credentials with the least privilege needed for authenticated scans, stored in your secrets tooling and never committed to the plan file.
  • A DefectDojo instance to receive results. The open-source edition installs with Docker Compose and uses local accounts, while SSO and MFA are DefectDojo Pro features, so confirm which edition fits your access policy.

Also confirm who owns triage of findings after the switch, because the scanner produces the data but your team decides what to fix.

Can ZAP exit codes block a release in a CI pipeline?

Yes. ZAP Automation Framework runs exit with 0 on success, 1 on error and 2 when the run finishes with warnings, and an exitStatus job can set the exit code from the scan results. Your pipeline step then fails on a non-zero code, which is how a release gate works in most CI systems. Two points need checking during the pilot: first, whether a warning code should block the release or only report, since treating exit code 2 as a failure is a policy choice; second, whether the rules in exitStatus match the severities your security policy defines. Test the gate on a deliberately vulnerable target and confirm that it fails the job as expected before relying on it.

Can ZAP run in an air-gapped network?

ZAP can run inside an isolated boundary once its installer or Docker image and its updates are brought in through an approved transfer process. The stable Docker images (ghcr.io/zaproxy/zaproxy:stable and zaproxy/zap-stable) and the Windows, Linux and macOS packages can be mirrored into an internal registry or file store, and the Windows and Linux versions need Java 17 or higher. Two items need confirmation in your own environment: whether add-on and scan rule updates can be imported offline on your chosen version, and how your DefectDojo instance is installed and updated inside the same boundary. The ZAP API listens only on the machine running ZAP by default and requires an API key, which helps keep scanning traffic inside the network. Confirm the update process with your security team before you commit to the design.

Which findings tool should receive ZAP results, and does it remove duplicates?

DefectDojo is a common choice because it imports ZAP XML reports, with or without requests and responses, and deduplicates findings using a per-parser hash. For ZAP reports, the hash uses title, CWE and severity, so repeated scans of the same issue are grouped rather than duplicated. The open-source edition handles tracking, deduplication and reporting, and its REST API (API v2) lets your pipeline push results automatically. Confirm that your deduplication expectations match the hash fields, since two distinct issues with the same title, CWE and severity may be merged. Also check that your retention and access rules are met by the local-account model before you load production findings.

How DeployOpen works on this

DeployOpen plans, implements, integrates, documents and supports self-hosted open-source platforms inside your own infrastructure, including scan pipelines. For Burp Suite DAST vs ZAP in CI pipelines, we start from your scanning requirements and the systems your pipelines already use, then build and test the candidate setup in your environment before any change reaches production.

How we scope

  • Engagements are fixed-scope, with scope, deliverables and timelines agreed in writing before work starts.
  • The written scope lists the targets, authentication methods, CI platform, scan schedules and gating rules to be covered.
  • We confirm the reporting path, including whether findings go to DefectDojo and how duplicates should be handled.

How we build

  • We build ZAP Automation Framework plans and pipeline jobs in your CI environment, with exit codes wired to your gating policy.
  • Scanner images run inside your infrastructure, with access, credentials and API keys handled according to your controls.
  • We test the setup against sample applications and your own targets, including authentication, scheduling and failure behavior.

How we hand over

  • You receive documentation of the pipeline design, plan files, configuration decisions and the operating runbook.
  • Evidence for scan frequency, authenticated scanning and retained reports is organized for your compliance and security reviewers.
  • Your team is walked through how to update scanner versions, review results and change gating thresholds.

How we support

  • Ongoing support, upgrades and continuous testing are available as retainers after handover.
  • Retainers can cover scanner version upgrades, plan changes when applications or CI platforms change, and retesting of fixes.
  • Where your environment needs an independent check, we can run security testing of the scanning setup itself and deliver a findings report.

Sources and further reading

Talk to our team.

Tell us what you're working on, whether it's a deployment, an audit, a security test or a cyber range. You'll speak with an engineer who can help you scope it.

  • 30-minute call: free, with no obligation.
  • NDA on request: we can sign before you share details.
  • Clear next steps: a scope and plan after the call.