Research
2024 · Published research
ZaaS
A web-facing service for running OWASP ZAP scans with a queue, container workers, and stored reports.
- Role
- Author & system designer
- Year
- 2024
- Status
- Published research
Built withPython · Flask · RabbitMQ · SQLite · Docker Swarm · OWASP ZAP · Debian
Context
Web vulnerability scanning is usually a manual sequence: install the scanner, configure the target, run the scan, collect the report, repeat. That is workable for one engagement. It becomes a coordination problem when scans need to run regularly, serve more than one user, or survive a busy scanner host.
ZaaS was an attempt to treat the scanner as a service rather than a desktop tool: one place to request a scan, one queue to hold the work, and one place to collect the result.
Approach
The system keeps the web request and the scan execution separate. A Python/Flask application accepts a scan request and places it on a RabbitMQ queue. Workers on a Debian host run each scan inside an OWASP ZAP Docker container, scheduled across Docker Swarm. Completed results are written to SQLite, and the browser retrieves the report from the application.
The scanner was already doing the difficult detection work. The project was the service layer around it: request intake, queueing, container scheduling, storage, and retrieval.

Decisions
Use the scanner that already works.
OWASP ZAP is the scanning engine. The project builds the service layer around a mature open-source scanner instead of reimplementing detection logic.
Queue the work.
Long-running scans do not block the request path. RabbitMQ holds tasks until a worker is free, which separates user response time from scan duration.
One container per scan.
ZAP runs in its own Docker container, managed by Swarm, so scan processes are isolated from the web application and can be scheduled across available capacity.
Keep the state small.
SQLite stores scan data and reports. For a research prototype, a self-contained database was more useful than a distributed one.
Operations
The web tier and the scan host are separate. The Flask application connects to the scan host over SSH, while scan execution happens in containers under Docker Swarm.
Reports are stored by the application and retrieved from the browser, so the person requesting a scan does not need access to the scanner host.
Outcome & status
Published as “ZaaS: ZAP as a Service — Deployment and integration of an automated web vulnerability scanner” (ResearchGate, 2024). It is a research prototype and architecture study, not a commercial scanning platform.
The paper is the durable output. The service is not presented here as a live product.
What I'd revisit
If I rebuilt it now, I would tighten the trust boundary between the web tier and the scan host, add per-scan resource limits, and make report retention an explicit policy rather than a database default. Those are the parts that matter once a scanner is shared.
Have a similar problem? Start a conversation.