Zscaler-Oauth2-UnblacklistURL

Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · 📊

Back to Content Index


This playbook enables automated removal of URLs from the Zscaler Internet Access (ZIA) blacklist when triggered by Microsoft Sentinel incidents. It uses OAuth2 authentication to securely communicate with the Zscaler API and remove URLs from the advanced threat protection blacklist.

Attribute Value
Type Playbook
Solution Zscaler Internet Access
Source View on GitHub

Additional Documentation

📄 Source: Oauth2UnblacklistURL/readme.md

Zscaler OAuth2 Unblacklist URL Playbook

This playbook enables automated removal of URLs from the Zscaler Internet Access (ZIA) blacklist when triggered by Microsoft Sentinel incidents. It uses OAuth2 authentication to securely communicate with the Zscaler API and remove URLs from the advanced threat protection blacklist.

Overview

The Zscaler-Oauth2-UnblacklistURL playbook is designed to:

Prerequisites

Before deploying this playbook, ensure you have:

  1. A Zscaler Internet Access (ZIA) subscription with API access enabled
  2. The Zscaler-Oauth2-Authentication playbook deployed in the same resource group
  3. OAuth2 client credentials (Client ID and Client Secret) configured in Azure Key Vault
  4. Appropriate permissions to deploy Azure Logic Apps

Deployment

Click the button below to deploy the Zscaler-Oauth2-UnblacklistURL playbook to your Azure environment:

Deploy to Azure

Post-Deployment Configuration

After deployment, complete the following steps:

  1. Authorize API Connections - Navigate to the Logic App in the Azure portal - Go to API connections and authorize the Microsoft Sentinel connection - Ensure the managed identity has appropriate permissions

  2. Grant Required Permissions - Assign the Logic App managed identity the "Microsoft Sentinel Responder" role on your workspace - Verify the Zscaler-Oauth2-Authentication playbook is deployed and accessible

  3. Configure Zscaler API URL (Optional) - The default Base URL is "zsapi.zscaler.net/api/v1" - To change, edit the playbook and update the "Define_Base_URL" action

  4. Configure Automation Rules - Create automation rules in Microsoft Sentinel to trigger this playbook - Configure rules to run on incidents containing URL entities that need to be unblocked

Parameters

Parameter Description Default Value
PlaybookName Name of the Logic App Zscaler-Oauth2-UnblacklistURL

Workflow

  1. Triggered by Microsoft Sentinel incident creation
  2. Initializes an empty array to collect URLs
  3. Extracts URL entities from the incident
  4. For each URL entity, parses and appends the URL to the collection array
  5. Initializes the Zscaler API Base URL variable
  6. Calls the Zscaler-Oauth2-Authentication playbook to obtain an access token
  7. Deduplicates the URL list using union operation
  8. Joins all URLs into a comma-separated format
  9. Constructs the JSON request body with the blacklistUrls array
  10. Makes a single API call to remove all URLs from the blacklist (/security/advanced/blacklistUrls?action=REMOVE_FROM_LIST)

Learn More


Browse: 🏠 · Solutions · Connectors · Methods · Tables · Content · Parsers · ASIM Parsers · ASIM Products · 📊

Back to Playbooks · Back to Zscaler Internet Access