Information
The rsync service can be used to synchronize files between systems over network links.
rsync.service presents a security risk as the rsync protocol is unencrypted.
The rsync package should be removed to reduce the attack area of the system.
Solution
Run the following commands to stop rsync.service and remove the rsync package:
# systemctl stop rsync.service
# apt purge rsync
- OR -
- IF - the rsync package is required as a dependency:
Run the following commands to stop and mask rsync.service :
# systemctl stop rsync.service
# systemctl mask rsync.service
Impact:
There may be packages that are dependent on the rsync package. If the rsync package is removed, these dependent packages will be removed as well. Before removing the rsync package, review any dependent packages to determine if they are required on the system.
- IF - a dependent package is required: stop and mask rsync.service leaving the rsync package installed.