All Apps and Add-ons

Error when the Hurricane Labs Add-On for Nessus runs

bbeltman
New Member

I get the following error (in splunkd.log or when trying to run $SPLUNK_HOME/bin/splunk cmd scans.sh) each time one of the scripts is run:

scans.sh" Traceback (most recent call last):
File "./scans.py", line 66, in
nessus = NessusApi(cfg["username"], cfg["password"], endpoint=cfg["endpoint"])
File "/u01/app/splunkforwarder/etc/apps/TA-nessus/bin/nessus/init.py", line 20, in init
self.login(username, password)
File "/u01/app/splunkforwarder/etc/apps/TA-nessus/bin/nessus/init.py", line 34, in login
xml = ET.fromstring(r.text)
File "/usr/lib64/python2.6/xml/etree/ElementTree.py", line 963, in XML
parser.feed(text)
File "/usr/lib64/python2.6/xml/etree/ElementTree.py", line 1245, in feed
self._parser.Parse(data, 0)
xml.parsers.expat.ExpatError: not well-formed (invalid token): line 1, column 0

It does not appear to try to make a connection to the Nessus API. Any thoughts on what is causing it? I've configured it according to https://apps.splunk.com/app/1860/#/documentation

Additional info:
Red Hat Enterprise Linux Server release 6.6 (all)

Splunk Enterprise (Distributed) and Forwarder 6.2.0

Python 2.6.6

Nessus Version 6.1.1

Add-On for Nessus 1.0.2

0 Karma

bbeltman
New Member

Finally had some time to look more into this. The error appears to because of changes to the Nessus API between version 5 and 6 (makes sense, this app was written before version 6 was released 🙂 )

I don't want to go back to version 5 of Nessus, so I guess I will wait for a new version

0 Karma

stevejfice
Path Finder

for reference, I am still on Version 5 of Nessus (5.2.7) and I am still seeing the same error as above.

My config is:
Splunk 6.2.1
Universal forwarder 6.2.1
Latest Hurricane labs app (v3.0.1) and TA (1.0.2)

I'd love to see some more answers on this.

I have a really old bash script which works to connect to the XML API but I can't do anything beyond that...

0 Karma
Career Survey
First 500 qualified respondents will receive a $20 gift card! Tell us about your professional Splunk journey.
Get Updates on the Splunk Community!

Tech Talk Recap | Mastering Threat Hunting

Mastering Threat HuntingDive into the world of threat hunting, exploring the key differences between ...

Observability for AI Applications: Troubleshooting Latency

If you’re working with proprietary company data, you’re probably going to have a locally hosted LLM or many ...

Splunk AI Assistant for SPL vs. ChatGPT: Which One is Better?

In the age of AI, every tool promises to make our lives easier. From summarizing content to writing code, ...