-
Notifications
You must be signed in to change notification settings - Fork 581
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Nessus Scanner crashes Icinga #6559
Comments
It just keeps happening Do you happen to have a log around the time of the crash? Maybe even a log from Nessus so we can see what it's doing? |
I have to ask my collegs from the security group to get it. Give us a little bit time to consolidate the logs from Icinga, Apache and Nessus. |
We also see this issue where the Nessus security scan crashes the Icinga2 service. I included the crash report and other information in #6562 (that was dupped to this issue). |
What exactly does Nessus do in this specific case? Open a Tcp Socket, or doing more than a TLS handshake? Any Wireshark dumps to see the packets? |
I want to do a little status report: How it happens? Our Problem is that there are no log files like a crash log. At the `journalctl we don't find a entry for this. `My colleagues try to reproduce this scenario whithout always start nessus. But at the Moment it doesn't work. Maybe this information helps you for the moment. |
@dnsmichi telepathy :-) |
@dnsmichi Just thinking: Is the problem just result of this issue? #6517 My colleague will check this next week if there are TLS handshakes from the nessus Server in the icinga log. |
It may be related, if the scanner doesn't close the TLS connection cleanly. That's why I want to see more logs and a tcpdump from that scanner - especially the end packets on such a connect. |
Sorry for the delay, but now we have more logs about the problem. (I am the colleague from stevie-sy) In this usecase our Windows Agent "MSLI01-036" (10.1.41.224) crashes when "NESSUS" (10.1.36.101) scans him. a short timetable: all satellites and the agent are already updated to Icinga 2.9.2 |
I forgot to click "comment" before vacation ... thanks a lot, that's exactly what I wanted to see :) It boils down that Nessus sends some crafted TCP packets which are interpreted as netstring, but actually aren't. This is forced to Disconnect() immediately when parsing fails. The majority of the scan uses HTTP requests though, whereas the requests are not authenticated.
In the end, it completely fails to disconnect the remaining connections and likely just stalls everything.
|
ok, thanks for the answer and the explanation. With this I understand why the load increases and after automatic deplyment with the director Icinga crashes. |
Not yet, but at least I know where to look like inside the code :) https://github.com/Icinga/icinga2/blob/master/lib/remote/httpserverconnection.cpp#L78 |
Maybe it is related to #6514 where connections are not properly closed upon header request. I need to analyse further what exactly is sent in the raw pcap later. |
The fix for #6517 likely improves the situation as well with a dynamic connection thread pool, instead of spawning endless threads. @stevie-sy can you test the snapshot packages by chance on such a client, with nessus scanning it? |
Thank you, we test it as soon as possible |
Please do so with 2.10.1 too :) |
Yes we will! :-) |
Did you get the chance to do so already? |
Sorry, we didn't find time because of other problems we had to fix or looking for a solution. e.g. like i comment here #6514 (comment). But at the end we have the same result. |
@Al2Klimov you've assigned this issue to me. What should we do? |
@dnsmichi after my vacation and with our new test setup we can do this for you ;-) But for the moment my colleague and I are little busy :-( |
This issue seems to have been addressed by #7005. |
Hi @stevie-sy, any chance you'll deploy the current snapshot packages on a test vm, and let your nessus scanner run against it? Cheers, |
Hi @dnsmichi ! Of course and we want to help. which version from https://packages.icinga.com/epel/ should we test on our test Environment? |
Hi, you can either use the release-rpm which allows to enable the snapshot-repo, or you'll go by the snapshot rpms located here: https://packages.icinga.com/epel/7/snapshot/x86_64/ Note: You'll need EPEL enabled, which fetches Boost 1.66+.
Outputs something like this:
Note: Snapshot-Builds run every night, when we've pushed git master during the day. Cheers, |
Our colleagues from security have scheduled the scan for the weekend. On Monday we will know more .. The tension is increasing :-) |
We did another test with todays snapshot. Everything fine during the scan. Icinga is still running. So thumbs up! Great Job! Congratulation! Bravo! |
Many thanks for the test and the kind feedback, this helps a lot and strengthens our decision to move onwards with Boost Asio, Coroutine and Beast :-) |
You're welcome. |
Thanks, I'll get back to you once everything is implemented and merged :-) |
How did you slow Nessus down, which parameters you changed? Can you let me know because we are facing similar issues and since the new version of icinga is not released yet its creating troubles for us. |
@tushyjw at the end it didn't really help. My colleague found some option while creating new scans (e.g. to do not so many scans per seconds). We are still waiting for 2.11.
|
We are seeing a similar/same problem. We are able to deal with the master by stopping before and restarting after the scan. My question is about the clients. They are running r2.10.1-1 (the master is r2.10.5-1). I have seen the suggestion that r2.8.2-1 does not have the problem. Can I simply install 2.8.2-1 replacing 2.10.1-1? thanks for any clues, |
2.8.2 has different problems. I would suggest waiting for the 2.11 release. |
Current Behavior
We use Icinga r2.9.1-1 in HA setup. When our security department scans our IT infrastructure with the Nessus Security Scanner for Vulnerabilities the icinga nodes crashes. systemctl says as status "reload" and icingaweb2 loses connection. We configured the service daemon for automatic reload like the tip in the dokumentation. But it seems, that it didn't help.
Our old setup with version r2.8.4-1 without ha-setup survives the scan.
It look likes the now closed issue for windows: #6097
At the moment my colleagues from the security department slow down Nessus a little bit, so Icinga surived the last scan. But I don't think it's not a solution to slow down a security scanner, like fewer requests per second.
Your Environment
The text was updated successfully, but these errors were encountered: