Skip to content

Install usbguard Package

An XCCDF Rule

Description

The usbguard package can be installed with the following command:
$ sudo yum install usbguard

Rationale

usbguard is a software framework that helps to protect against rogue USB devices by implementing basic whitelisting/blacklisting capabilities based on USB device attributes.

ID
xccdf_org.ssgproject.content_rule_package_usbguard_installed
Severity
Medium
References
Updated

Remediation Templates

A Puppet Snippet

include install_usbguard
class install_usbguard {
  package { 'usbguard':
    ensure => 'installed',
  }
}

An Ansible Snippet

- name: Gather the package facts
  package_facts:
    manager: auto
  tags:
  - NIST-800-53-CM-8(3)
  - NIST-800-53-IA-3

OS Build Blueprint

[[packages]]
name = "usbguard"
version = "*"

Anaconda Pre-Install Instructions

package --add=usbguard

A Kubernetes Patch

apiVersion: machineconfiguration.openshift.io/v1
kind: MachineConfig
spec:
  config:
    ignition:
      version: 3.1.0

A Shell Script

# Remediation is applicable only in certain platforms
if ( ! grep -q s390x /proc/sys/kernel/osrelease && rpm --quiet -q kernel ); then
if ! rpm -q --quiet "usbguard" ; then
    yum install -y "usbguard"
fi