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!

Splunk Search APIを使えば調査過程が残せます

   このゲストブログは、JCOM株式会社の情報セキュリティ本部・専任部長である渡辺慎太郎氏によって執筆されました。 Note: This article is published in both Japanese ...

Integrating Splunk Search API and Quarto to Create Reproducible Investigation ...

 Splunk is More Than Just the Web Console For Digital Forensics and Incident Response (DFIR) practitioners, ...

Congratulations to the 2025-2026 SplunkTrust!

Hello, Splunk Community! We are beyond thrilled to announce our newest group of SplunkTrust members!  The ...