2.1.3 Ensure cockpit web services are not in use

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.

Note: If the remediation steps to mask a service are followed and that package is not installed on the system, the service and/or socket will still be masked. If the package is installed due to an approved requirement to host a web server, the associated service and/or socket would need to be unmasked before it could be enabled and/or started.

See Also

https://workbench.cisecurity.org/benchmarks/23600

Item Details

Category: CONFIGURATION MANAGEMENT

References: 800-53|CM-6, 800-53|CM-7, CSCv7|9.2

Plugin: Unix

Control ID: e36e031949fbb5331eb3142b98c0d6c0be2cf7faab5658b2df029f37e6bb8d0b