Skip to content

Install usbguard Package

An XCCDF Rule

Description

The usbguard package can be installed with the following command:

$ sudo dnf 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 - script:bootc


dnf install usbguard

Remediation - Anaconda Pre-Install Instructions


package --add=usbguard

Remediation - Puppet

include install_usbguard

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

Remediation - Ansible

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

Remediation - script:kickstart


package install usbguard

Remediation - OS Build Blueprint


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

Remediation - Kubernetes Patch

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

Remediation - 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
    dnf install -y "usbguard"
fi