All Apps and Add-ons

TA-maclookup fails when "No Vendor Exists" for a MAC address

mark_wymer
Path Finder

Hi,

Similar to a previous question, under certain circumstances the maclookup fails with an error message:

command="maclookup", : failed to use the netaddr module!

After a bit of digging (and a reference in a previous question) this appears to happen when a MAC address is not found in any lists online or offline.

Fails:

| makeresults | eval src_mac="0A:58:0A:F4:01:01" | maclookup

Works:

| makeresults | eval src_mac="00:50:56:AB:64:11" | maclookup

In these instances, shouldn't the script return something like "Unknown Vendor"?

Regards,
Mark.

0 Karma

nickhills
Ultra Champion

Hello, I added the tag for "Add-On for MAC lookup" to you question. This means that the author of the app should be notified of your question.

If my comment helps, please give it a thumbs up!
0 Karma

lakshman239
Influencer

You could also address this issue, by adding something like the below on your local/props.conf to force unknown to vendor field, so your command [assuming depends on vendor] may work.

[sourcetypeof_the_addon]
EVAL-vendor=coalesce(vendor,"Unknown")
0 Karma

mark_wymer
Path Finder

Hi Lakshman,

Thanks for the response - I'll try it out.

I suspect, though, that it's the actual python script that can't handle an 'unknown' response from macvendors.co

If you have a number of mac addresses to look up, the 1st one that 'fails' causes the entire search string to stop.

Regards,
Mark.

0 Karma
Get Updates on the Splunk Community!

Stay Connected: Your Guide to May Tech Talks, Office Hours, and Webinars!

Take a look below to explore our upcoming Community Office Hours, Tech Talks, and Webinars this month. This ...

They're back! Join the SplunkTrust and MVP at .conf24

With our highly anticipated annual conference, .conf, comes the fez-wearers you can trust! The SplunkTrust, as ...

Enterprise Security Content Update (ESCU) | New Releases

Last month, the Splunk Threat Research Team had two releases of new security content via the Enterprise ...