Disable vsftpd Service
An XCCDF Rule
Description
The vsftpd
service can be disabled with the following command:
$ sudo systemctl mask --now vsftpd.service
Rationale
Running FTP server software provides a network-based avenue of attack, and should be disabled if not needed. Furthermore, the FTP protocol is unencrypted and creates a risk of compromising sensitive information.
- ID
- xccdf_org.ssgproject.content_rule_service_vsftpd_disabled
- Severity
- Medium
- References
- Updated
Remediation - OS Build Blueprint
[customizations.services]
disabled = ["vsftpd"]
Remediation - Ansible
- name: Block Disable service vsftpd
block:
- name: Disable service vsftpd
block:
Remediation - Puppet
include disable_vsftpd
class disable_vsftpd {
service {'vsftpd':
enable => false,
ensure => 'stopped',