Rule ID
SV-239540r662071_rule
Version
V2R2
CCIs
CCI-000382
The SMTP EXPN function allows an attacker to determine if an account exists on a system, providing significant assistance to a brute force attack on user accounts. EXPN may also provide additional information concerning users on the system, such as the full names of account owners.
Use the following command to check if EXPN is disabled: # grep -v "^#" /etc/sendmail.cf |grep -i PrivacyOptions If "noexpn" is not returned, this is a finding.
Add "noexpn" to the "PrivacyOptions" flag in the "/etc/sendmail.cf" file.