2.5 Ensure SNMP is configured properly - 'community name private does not exist'

Information

Simple Network Management Protocol (SNMP) can be used to help manage hosts. Many organizations have other means in place of managing hosts and do not need SNMP enabled. If SNMP is needed, it should be configured properly to reduce the risk of misuse or compromise. For example, ESXi supports SNMPv3, which provides stronger security than SNMPv1 or SNMPv2, including key authentication and encryption. It is also important to configure the destination for SNMP traps.

Rationale:

If SNMP is not properly configured, monitoring data containing sensitive information can be sent to a malicious host and used to help exploit the host.

Solution

To correct the SNMP configuration, perform the following from the ESXi Shell or vCLI:

If SNMP is not needed, disable it by running:

esxcli system snmp set --enable false

If SNMP is needed, refer to the vSphere Monitoring and Performance guide, chapter 8 for steps to configure it.

Additionally, the following PowerCLI command may be used to implement the configuration:

# Update the host SNMP Configuration (single host connection required)
Get-VmHostSNMP | Set-VMHostSNMP -Enabled:$true -ReadOnlyCommunity '<secret>'

Notes:

SNMP must be configured on each ESXi host

SNMP settings can be configured using Host Profiles

See Also

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

Item Details

Category: CONFIGURATION MANAGEMENT, SYSTEM AND COMMUNICATIONS PROTECTION

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

Plugin: VMware

Control ID: c0a86b9dea993421eabf665866f999acd50ab9bec6b5e572cc50deff3fc3a5dd