All Apps and Add-ons

Error in Splunk Security Essentials with macro `ut_parse_extended (url, list)`

socverne
Explorer

Good Morning.

I am using the "Splunk Security Essentials" add-on and when executing a search, I get an error in the macro ut_parse_extended (url, list). I put the search:

"index = * sourcetype = pan: threat OR (tag = web tag = proxy) earliest = -20m @ m earliest = -5m @ m | eval list =" mozilla "|ut_parse_extended (url, list)| lookup dynamic_dns_lookup domain as ut_domain OUTPUT inlist | search inlist = true | table _time ut_domain inlist bytes * uri "

And the error:

"Error in 'SearchParser': The search specifies a macro 'ut_parse_extended' that can not be found. Reasons include: the macro name is misspelled, you do not have" read "permission for the macro, or the macro has not been shared with this application, Click Settings, Advanced search, Search Macros to view macro information. "

Could you help me? Thank you.

A greeting.

MuS
SplunkTrust
SplunkTrust

Hi socverne,

The docs of the apps https://splunkbase.splunk.com/app/3435/#/details tell you this:

 The searches rely on tools included in Splunk platform to perform anomaly detection, such as the URL toolbox to detect Shannon entropy in URLs

So you need to install https://splunkbase.splunk.com/app/2734/ to be able to use the macro.

BUT, and some greeting to the BOTS 2019 Team here ;), be aware that this macro returns wrong 2nd level domains for some URL's!

The only way to get around this is to actually use a regex and get the 2nd level domains this way. I ended up with this regex to get the correct 2nd level domains:

 (?<my2ndLevelDomain>[^.]+)\.(?:(?:com|net|org|edu|gov|asn|id|csiro|)\.au|co\.(?:bb|ck|cr|in|id|il|jp|nz|za|kr|th|uk)|[\w\s]{2,})$

Hope this helps ...

cheers, MuS

PS: @eliasit, yes you still can install the app on Splunk 7.2.x and use it with the above mentioned issues/problems 😉

HiroshiSatoh
Champion

Who created this macro(ut_parse_extended )? Please check the permission of this macro.

0 Karma

socverne
Explorer

Thanks for your answer. I have obscured it, and the macro does not exist. With what content can I create it? Thank you.
A greeting.

0 Karma

HiroshiSatoh
Champion

ut_parse_extended is in "URL Toolbox". Please install and use APP.

https://splunkbase.splunk.com/app/2734/#/details

eliasit
Path Finder

"URL Toolbox" is not listed as compatible with Splunk 7.2 or higher. Is there an alternative? Can "URL Toolbox" be manually install without causing issues? Or could the macro be extracted from the install file?

0 Karma
Get Updates on the Splunk Community!

Splunk Observability for AI

Don’t miss out on an exciting Tech Talk on Splunk Observability for AI!Discover how Splunk’s agentic AI ...

🔐 Trust at Every Hop: How mTLS in Splunk Enterprise 10.0 Makes Security Simpler

From Idea to Implementation: Why Splunk Built mTLS into Splunk Enterprise 10.0  mTLS wasn’t just a checkbox ...

Observe and Secure All Apps with Splunk

  Join Us for Our Next Tech Talk: Observe and Secure All Apps with SplunkAs organizations continue to innovate ...