ZAP Automation Framework and Scan Hooks

17 views
Skip to first unread message

A ZAP User

unread,
Jun 24, 2026, 8:56:00 PMJun 24
to ZAP User Group
Hey All,

A bit of context, I am trying to run the template of automation framework in a Docker container but I want to adjust two particular steps:

1. Authentication - I want to override the authentication step so the Spider / Scanners can just use a pre-configured Auth token that I'll hopefully be able to tell ZAP about. This shaves a lot of overhead regarding having to re-authenticate.

2. Kick-off background work when the Proxy is ready - I want to kick off some background requests in order to add some extra site entries to ZAP, but only after the passive scan has started actively listening and before the active scanners start to kick in.

I looked at how I could achieve this and landed on scan hooks but I couldn't see any compatibility of it being mentioned with the automation framework.

Any ideas on how I could achieve this?

Simon Bennetts

unread,
Jun 26, 2026, 7:25:36 AMJun 26
to ZAP User Group
Hiya,

Scan hooks only work for packaged scans. There are much better options for the Automation Framework.


Re background work, use the delay job to allow your work to complete: https://www.zaproxy.org/docs/desktop/addons/automation-framework/job-delay/

Cheers,

Simon

A ZAP User

unread,
Jun 26, 2026, 12:49:26 PMJun 26
to ZAP User Group
Hey Simon,

Thanks for the heads up, that sounds perfect. Will give it a shot.

Cheers,
Dan

Reply all
Reply to author
Forward
0 new messages