Zscaler ZIA
Source: Zscaler ZIA. Enterprise tier. This connector only responds. It collects no data. It blocks and unblocks domains and IP addresses by editing the blocklist in your ZIA tenant, and it looks up how ZIA categorises a URL. The connector has been tested in a live environment.
Sign-in options
The Authentication selector on the source form offers three ways to sign in. Pick the one your tenant supports.
OneAPI client secret
- Create an API client in ZIdentity (OneAPI). Copy the client ID and the client secret. The secret is shown once.
- The vanity domain is the one word before
.zslogin.netin your ZIdentity address. Foracme.zslogin.netit isacme. - CICADA asks
https://<vanity>.zslogin.net/oauth2/v1/tokenfor a token, then sends every call tohttps://api.zsapi.net/zia/api/v1.
OneAPI private key
- Create the API client in ZIdentity with a public key instead of a secret, and keep the matching private key.
- Paste the private key (PEM) into the form. It is stored encrypted and never shown again.
- CICADA signs a short-lived token with the key (RS256; the client ID is both issuer and subject; audience
https://api.zscaler.com; valid for ten minutes) and presents it to the same token URL as a client assertion. Every call then goes to the same API host.
Legacy API key
- For tenants that are not on ZIdentity. You need the ZIA cloud name, the ZIA API key (Administration, Cloud Service API Key Management) and an admin username and password.
- The cloud name is the word in your admin portal address: for
admin.zscalertwo.netit iszscalertwo. The form lists the clouds CICADA knows: zscaler, zscalerone, zscalertwo, zscalerthree, zscloud, zscalerbeta, zscalergov, zscalerten and zspreview. - CICADA signs in at
https://zsapi.<cloud>.net/api/v1/authenticatedSession(admin.zspreview.netfor the zspreview cloud) with Zscaler's documented key obfuscation, keeps the session cookie, and signs in again when the session expires.
ZIA role
Give the API client or admin account a role with edit rights on advanced settings (the blocklist) and the right to activate changes. The URL Lookup action needs a role that can look up URL categories. The exact role names in the Zscaler console are not yet confirmed.
Test Connection signs in and reads the blocklist. It does not prove the edit and activate rights. Those are only proven by the first block.
The source form
| Field | Notes |
|---|---|
| Authentication | OneAPI client secret (the default), OneAPI private key (JWT), or Legacy API key with username and password. |
| ZIdentity vanity domain | OneAPI options. One word, for example acme. Required. |
| Client ID | OneAPI options. Required. |
| Client Secret | OneAPI client secret. Required. Stored encrypted. Never shown again after you save it. |
| Private key | OneAPI private key. PEM text. Required. Stored encrypted. Never shown again after you save it. |
| ZIA cloud | Legacy API key. One of the cloud names above. Required. |
| API key, Admin username, Admin password | Legacy API key. All three required. The key and the password are stored encrypted. |
| Sign-in URL | Read-only, shown greyed out. The token URL for the vanity domain, or the legacy session URL for the cloud. |
| API host | Read-only, shown greyed out. https://api.zsapi.net/zia/api/v1, or https://zsapi.<cloud>.net/api/v1 for the legacy API key. |
Allow outbound HTTPS (443) from the appliance to <vanity>.zslogin.net and api.zsapi.net for the OneAPI options, or to zsapi.<cloud>.net for the legacy API key. See Network Requirements.
Block and unblock
The actions are Block Domain, Unblock Domain, Block IP and Unblock IP.
- Block adds the value to the tenant's advanced-settings blocklist and then activates the change. A domain is a hostname only: no scheme, path, port or wildcard. CICADA lowercases it and converts international names. An IP must be a public address.
- Already in the blocklist. If an admin added the value before CICADA did, CICADA records that and will never remove it.
- Unblock removes only values CICADA added in this investigation.
- Two investigations, one value. If another investigation's block already holds the value, this investigation also holds it and nothing changes in ZIA. The entry stays until the last investigation unblocks it. The earlier ones show Still blocked in ZIA for N other investigation(s).
- If CICADA cannot read its own block records, it changes nothing in ZIA.
- Activation pending. If ZIA does not report the change as active, the action shows activation pending. CICADA checks ZIA for about two minutes. If ZIA still reports the change as pending, the action shows Unconfirmed: activate pending changes in the ZIA console.
- If ZIA answers with a rate limit, CICADA waits for the time ZIA gives and retries, up to 3 times.
If you delete an investigation that still holds blocks, CICADA warns you and lists the blocked values. If you delete anyway, the values stay blocked in ZIA and CICADA can no longer unblock them. Remove them by hand in the ZIA console, or cancel and unblock them from Response Actions first.
URL Lookup
Response Actions, Create, URL Lookup. The target type is URL. Enter one URL, or a list with one per line or separated by commas, at most 100 in one action. A URL may be given with or without http:// or https://; CICADA lowercases the scheme and host and leaves the rest as typed.
- CICADA sends the list to ZIA's URL lookup and shows, for each URL, the categories, the categories that carry a security alert, and the application ZIA recognises.
- The action only reads. Nothing changes in ZIA, so it is approved as soon as it is created. It runs when someone with permission to run actions presses Execute. It is still licence-checked like the other ZIA actions.
- AI Defender never proposes a URL Lookup. An analyst creates it by hand.
If the licence lapses
The licence is checked each time the connector runs. When it lapses, new blocks and URL lookups are refused with a 403 error. Unblocks still run, so you can always undo a block CICADA made.
An unblock still uses the saved source, so its credentials must keep working. The source cannot be edited after the licence lapses, so rotate the client secret, key or password before the licence ends, not after.
Check your deployment
Use the sign-in option and role supported by your tenant. Check the first change in the ZIA console, including any other pending changes that activation will publish.
- CICADA sends the exact hostname. Check your blocklist's subdomain behaviour before relying on a parent-domain entry.
- Check the formats your tenant accepts, including IPv6 if you use it.
- Confirm the requested URLs and returned categories when using URL Lookup.