fireeye/HXTool

HX Tool Dashboard Unable to Load Complete Data

Closed this issue · 21 comments

Hi,

I have been using the HX Tool and I have seen that the Antivirus Dashboard does not load any data on the Endpoints With Anti-Virus Content Version, Endpoints With Anti-Virus Engine Version and Status Of Anti-Virus On Endpoints portions.

Is this a know issue?

B0fH commented

Hi @firefox5566 -
It should load anti-virus information just fine, if you have agents with the A/V engine enabled. Are you seeing an issue with agents that have the engine enabled?

Thanks,
Elazar

Hi @B0fH,

A\V engine is enabled on our endpoints and we can confirm that on our monthly audits via scan reports. The attached image is what we are seeing on the HX Tool interface under "Antivirus Dashboard": (no data is being populated)
HXtool

Hi @B0fH,

A\V engine is enabled on our endpoints and we can confirm that on our monthly audits via scan reports. The attached image is what we are seeing on the HX Tool interface under "Antivirus Dashboard": (no data is being populated)
HXtool

B0fH commented

Hi @firefox5566 -
That is odd. How many agents do you have on the controller overall. Additionally, are there any errors in the console window that HXTool is running under and/or hxtool.log?

Thanks,
Elazar

Hi @B0fH,

We have 50k plus endpoints. In terms or error, I am not sure if this matters but I can see KeyError: 'TP' and other info like the image below:
image
image

Hi @B0fH,

I can send you the HXTool logs if you want.

B0fH commented

Hi @firefox5566 -
Yes, that'd be appreciated. It looks like we're failing to parse some data - those key errors are likely why those dashboards aren't loading.

Thanks,
Elazar

Hi @B0fH,

How do you want me to send the logs, do you want it via email or via secure file link?

B0fH commented

Hi @firefox5566 -
Thank you for sending the log file, it is much appreciated. The 'TP' key error is due to Tamper Protection missing as an alert type in alert_types.json. I've went ahead and added it. Can you replace your copy of this file with the new one and restart HXTool?

Thanks,
Elazar

Hi @B0fH,

Thank you for this.

I have now replaced the file with that and restarted HXTool however I am still not seeing any info on the Antivirus Dashboard as seen on the image below:

image

Hi @B0fH,

I have inspected on the AV Dashboard and found the info below:

For the "Latest Anti-Virus Alerts", it is showing a successful connection which would explain why the data are showing:

image
image

For the Malware Content "Endpoints With Anti-Virus Content Version", Malware Version "Endpoints With Anti-Virus Engine Version" and Malware Status "Status Of Anti-Virus On Endpoints", all are showing the same info:

image
image

It appears that the connection or the request timed-out.

Do you have any insights on this?

Kindly advise.

Hi @B0fH,

I am seeing this as well.

image

Kindly advise.

Thank you!

Hi @B0fH,

We are also seeing these errors:

image
image

We are also having these sorts of errors:
image

Hi @B0fH,

I have now figured this out.

This was related to the (ret, response_code, response_data) = hx_api_object.restListHosts(limit=100). This was originally set to (limit=100000) which I believe takes to much time to query. I have tested and changed it to (limit=100) and the dashboard is showing data as seen on the image below:

image
image
image

image

Hi @B0fH,

Is there a possible way to improve this to be able to query a lot quicker and cater higher limits? Or what would be the behavior if we do not set a limit on this? Looks like the limit that I can set in order for the info to be displayed on the dashboard is 100.

B0fH commented

Hi @firefox5566 -
Changing the limit to 100 will restrict the chart to the first 100 agents returned by the controller. That said, I posted a potential fix to my branch here: 95c5883. You can grab a raw copy here: https://raw.githubusercontent.com/fireeye/HXTool/elazar-changes/hxtool_api.py, replace you existing hxtool_api.py and restart HXTool. Let me know if that resolves the issue.

Thanks,
Elazar

Hi @B0fH,

The data is still not loading and I am getting these warnings:

image

Kindly advise.

Thank you.

Hi @B0fH,

Looks like that there are a lot of devices that do not have MalwareProtectionStatus on the sysinfo that was being pulled which is causing some errors. The code will skip these errors right and just pull the ones that have valid information// data on the response data?

B0fH commented

Hi @firefox5566 -
Please let me know if the changes in #114 resolve this issue.

Thanks,
Elazar

B0fH commented

Closing per out of band confirmation from @firefox5566 that the issue has been resolved.