Puppet Class: cis_security_hardening::rules::iprutils

Defined in:
manifests/rules/iprutils.pp

Summary

Ensure the iprutils package has not been installed on the system.

Overview

The iprutils package must not be installed unless it is mission essential.

Rationale: It is detrimental for operating systems to provide, or install by default, functionality exceeding requirements or mission objectives. These unnecessary capabilities or services are often overlooked and therefore may remain unsecured. They increase the risk to the platform by providing additional attack vectors.

Operating systems are capable of providing a wide variety of functions and services. Some of the functions and services, provided by default, may not be necessary to support essential organizational operations (e.g., key missions, functions).

The iprutils package provides a suite of utilities to manage and configure SCSI devices supported by the ipr SCSI storage device driver.

Examples:

class { 'cis_security_hardening::rules::iprutils':
  enforce => true,
}

Parameters:

  • enforce (Boolean) (defaults to: false)

    Enforce the rule.



26
27
28
29
30
31
32
33
34
35
36
37
38
39
# File 'manifests/rules/iprutils.pp', line 26

class cis_security_hardening::rules::iprutils (
  Boolean $enforce = false,
) {
  if $enforce {
    $ensure = $facts['os']['family'].downcase() ? {
      'suse'  => 'absent',
      default => 'purged',
    }

    ensure_packages(['iprutils'], {
        ensure => $ensure,
    })
  }
}