Skip to content

Disable snmpd Service

An XCCDF Rule

Description

The snmpd service can be disabled with the following command:

$ sudo systemctl mask --now snmpd.service

Rationale

Running SNMP software provides a network-based avenue of attack, and should be disabled if not needed.

ID
xccdf_org.ssgproject.content_rule_service_snmpd_disabled
Severity
Low
References
Updated



Remediation - OS Build Blueprint


[customizations.services]
disabled = ["snmpd"]

Remediation - Ansible

- name: Gather the package facts
  package_facts:
    manager: auto
  tags:
  - disable_strategy
  - low_complexity

Remediation - Puppet

include disable_snmpd

class disable_snmpd {
  service {'snmpd':
    enable => false,
    ensure => 'stopped',