3.5.2.4 SNMP - disable Readwrite community access - disable Readwrite community access

Information

If snmpd is required within the environment, disable readWrite permissions for all active community strings.

Rationale:

If SNMP is required, none of the available community strings should have global readWrite permissions defined. This would allow any remote client to query and to set system configuration parameters. SNMP readWrite communities must be disabled unless absolutely necessary. If a readWrite community is enabled, then access must be granted to only trusted machines in your network. As SNMP uses community names as part of authentication, you must ensure that all community names are greater than six characters and is a mix of characters, numbers, and special characters.

Solution

Identify if there are any currently configured community strings:

grep '^community[[:blank:]]' /etc/snmpd.conf

If there are active community strings, edit the configuration file:

vi /etc/snmpd.conf

Replace all instances of:

community <community name> <IP addresses> <netmask> [ readWrite <view>]

With:

community <community name> <IP addresses> <netmask> [ readOnly <view>]

Default Value:

N/A

Additional Information:

Reversion:

Copy back the original /etc/snmpd.conf file:

cp -p /etc/snmpd.conf.pre_cis /etc/snmpd.conf

See Also

https://workbench.cisecurity.org/files/4119

Item Details

Category: CONFIGURATION MANAGEMENT

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

Plugin: Unix

Control ID: 10167b347dddb39bccfd12d58457c946cedf3b111cb22e4996dc7a25a56c5789