Description of problem: The package clamav-server requires the nmap-ncat package to be installed as well. This causes a rather large concern on public web servers. Almost all remote exploits and various hack-tools, use 'nc' to bypass web server restrictions and to open direct communication to a remote command and control server (c&c). For example, the admin may try to mitigate the effects of a remote exploit, by disabling PHP functions like curl, psocket, fsocket, so on and so forth. Unfortunately, all of those protections can be by-passed by executing 'nc' which is part of the nmap-ncat package. While similar functionality is provided by other tools, they can all be removed safely from the system (like wget and curl). Unfortunately, nmap-ncat can't be removed because it is a required dependency by clamav-server. I do not know the how clamav-server uses the nmap-ncat package, maybe they are integrated together to the point that they can't be split. I would appreciate your comments on this issue. Thank you. Version-Release number of selected component (if applicable): nmap-ncat-6.40-7.el7.x86_64 How reproducible: n/a
and what you suggest to do ? remove Requires: nc ? from [1] Unfortunately, netcat (or simply nc) is required to install ClamAV. I hope they remove that requirement at some point in the future as having netcat on a system just adds another vector of attack. But, netcat is easily found and installed from the CentOS/RedHat install media or the default repos. Inspecting clamav-0.99.2+dfsg from Debian , don'thave it as dependency I found out that nc is used in unit_tests/check_common.sh 64: while nc -z localhost $port 2>/dev/null [1] http://www.yumtechnology.com/2016/11/08/install-clamav-on-centos-7/
My personal preference, would be to remove the requirement/dependency to 'nc', if that was possible with a reasonable amount of work. On a compromised server, if we remove 'nc' then the attacker suddenly looses a major tool of communication, his options become very limited. Because most exploit kits depend on 'nc', if we remove it entirely from the server, then we immediately make those exploit tools obsolete. I think there are very few tools that have alternatives to 'nc' and those usually inject their own tools remotely. Eventually exploit tools will adapt to this change, but I personally believe it is better to keep ncat away from live/production servers as much as possible.
If netcat is used only in unit_tests and only during compile time, then may be it's better to change Requires: nc to Build-requires: nc.
clamav-0.99.2-14.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-5c735626b3
clamav-0.99.2-14.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-84398a7cff
wow that was quick, thank you for the quick response!
clamav-0.99.2-14.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-713df7476e
clamav-0.99.2-14.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-84398a7cff
clamav-0.99.2-14.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-5c735626b3
clamav-0.99.2-14.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-713df7476e
clamav-0.99.2-15.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-546d6f3abc
clamav-0.99.2-15.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-546d6f3abc
clamav-0.99.2-16.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-546d6f3abc
clamav-0.99.2-16.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-546d6f3abc
clamav-0.99.2-17.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-e5e5ec6ca2
clamav-0.99.2-17.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-107dd0492c
clamav-0.99.2-17.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-1713497ca1
clamav-0.99.2-17.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-1713497ca1
clamav-0.99.2-17.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-107dd0492c
clamav-0.99.2-17.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-e5e5ec6ca2
clamav-0.99.2-18.fc27 has been submitted as an update to Fedora 27. https://bodhi.fedoraproject.org/updates/FEDORA-2018-2a1f469c85
clamav-0.99.2-18.fc26 has been submitted as an update to Fedora 26. https://bodhi.fedoraproject.org/updates/FEDORA-2018-a86bad9689
clamav-0.99.2-18.el7 has been submitted as an update to Fedora EPEL 7. https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-11ba3bced1
clamav-0.99.2-18.el7 has been pushed to the Fedora EPEL 7 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-EPEL-2018-11ba3bced1
clamav-0.99.2-18.fc26 has been pushed to the Fedora 26 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-a86bad9689
clamav-0.99.2-18.fc27 has been pushed to the Fedora 27 testing repository. If problems still persist, please make note of it in this bug report. See https://fedoraproject.org/wiki/QA:Updates_Testing for instructions on how to install test updates. You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2018-2a1f469c85
clamav-0.99.2-18.fc27 has been pushed to the Fedora 27 stable repository. If problems still persist, please make note of it in this bug report.
So the actual dependency comes from the Fedora provided clamav-notify-servers which is run by freshclam-sleep: /usr/bin/freshclam --quiet && { test -x /usr/sbin/clamav-notify-servers && \ exec /usr/sbin/clamav-notify-servers || \ : I'm actually not sure the best way to proceed here. But I'm leaning towards removing clamav-notify-servers. freshclam.conf can be configured to notify a clamd server, and failing that clamd servers will check periodically for updates - so I don't think we're going to break anything.
clamav-0.99.2-18.fc26 has been pushed to the Fedora 26 stable repository. If problems still persist, please make note of it in this bug report.
clamav-notify-servers [1] is from our sources ... [1] https://src.fedoraproject.org/rpms/clamav/blob/master/f/clamav-notify-servers
yeah, that's what I meant by "Ffedora provided", and why I think it will be okay to remove it. I'm hoping no one is using it in any custom scripts, although that would be easy to fix by the user.
OK I see that clamav-notify-servers was removed, so we can close this bug report as fixed ?
Yes please. Thank you for the quick fix. I've managed to remove nmap-ncat from all my servers without any dependency problems.