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