Skip to content

Uninstall CUPS Package

An XCCDF Rule

Description

The cups package can be removed with the following command:

$ apt-get remove cups

Rationale

If the system does not need to print jobs or accept print jobs from other systems, it is recommended that CUPS be removed to reduce the potential attack surface.

ID
xccdf_org.ssgproject.content_rule_package_cups_removed
Severity
Unknown
References
Updated



Remediation - Ansible

- name: Ensure cups is removed
  package:
    name: cups
    state: absent
  tags:
  - NIST-800-53-CM-6(a)

Remediation - Puppet

include remove_cups

class remove_cups {
  package { 'cups':
    ensure => 'purged',
  }

Remediation - Shell Script


# CAUTION: This remediation script will remove cups
#	   from the system, and may remove any packages
#	   that depend on cups. Execute this
#	   remediation AFTER testing on a non-production
#	   system!