Information
cockpit Web services provide the ability to remotely administer the system via a web browser.
Unless there is a local site approved requirement for remote web based administration on the system, cockpit web server packages should be removed to reduce the potential attack surface.
Solution
Run the following commands to stop cockpit.socket, and cockpit.service, and remove the cockpit-ws package:
# systemctl stop cockpit.socket cockpit.service
# dnf remove cockpit-ws
- OR -
- IF - a package is installed and is required for dependencies:
Run the following commands to stop and mask cockpit.socket, and cockpit.service :
# systemctl stop cockpit.socket cockpit.service
# systemctl mask cockpit.socket cockpit.service
Impact:
Removal of cockpit web service packages will remove the ability for remote web administration of that system.
- IF - the cockpit web services package is required for a dependency, any related service or socket should be stopped and masked.