Disable rpcbind Service
An XCCDF Rule
Description
The rpcbind utility maps RPC services to the ports on which they listen. RPC processes notify rpcbind when they start, registering the ports they are listening on and the RPC program numbers they expect to serve. The rpcbind service redirects the client to the proper port number so it can communicate with the requested service. If the system does not require RPC (such as for NFS servers) then this service should be disabled. Therpcbind
service can be disabled with the following command:
$ sudo systemctl mask --now rpcbind.service
Rationale
If the system does not require rpc based services, it is recommended that rpcbind be disabled to reduce the attack surface.
- ID
- xccdf_org.ssgproject.content_rule_service_rpcbind_disabled
- Severity
- Low
- Updated
Remediation Templates
A Puppet Snippet
include disable_rpcbind
class disable_rpcbind {
service {'rpcbind':
enable => false,
ensure => 'stopped',
}
}
OS Build Blueprint
[customizations.services]
masked = ["rpcbind"]
An Ansible Snippet
- name: Gather the package facts
package_facts:
manager: auto
tags:
- PCI-DSSv4-2.2
- PCI-DSSv4-2.2.4