2.2.17 Ensure rsync service is either not installed or is masked

Information

The rsync service can be used to synchronize files between systems over network links.

The rsync service presents a security risk as the rsync protocol is unencrypted. The rsync package should be removed or if required for dependencies, the rsync service should be stopped and masked to reduce the attack area of the system.

Solution

Run the following command to remove rsync :

# apt purge rsync

-- OR --

Run the following commands to stop and mask rsync :

# systemctl stop rsync

# systemctl mask rsync

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT

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

Plugin: Unix

Control ID: 2be176097822d6cc2184ad0a7dc45fd58d6cfca5815ca318c65ed2cbdc7536e1