There is a major issue with this. I have opened a ticket.
For the Add to Blacklist function:
if the URL entity contains http or https the function does not remove the http or https and then validate and block the URL. Instead it parses out the domain and sends the TLD to be blocked.
This is the problem section of the code
In the ZScaler Manager:
def validate_and_extract_url(url):
# valid URL address in Zscaler is url without an http:// or https:// prefix.
# URL should have at least host.domain pattern to qualify.
if url.startswith("http://") or url.startswith("https://"):
return f"{urlparse(url).netloc}"
return url
The output message returns that the function blocked the URL and provides the full URL. Completely masking the actual behavior of blocking the TLD. I strongly advise that anyone else that uses this function shut it down.
This is the link to this function and this behavior is not described at all.
https://cloud.google.com/chronicle/docs/soar/marketplace-integrations/zscaler#add_to_blacklist
Support case #58539438: