For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/security/default_rules/def-000-uyo.md. A documentation index is available at /llms.txt.

Install pam Package

Description

The pam package can be installed with the following command:

$ sudo yum install pam

Rationale

The pam package provides Pluggable Authentication Modules (PAM) which is a system for authenticating users. PAM provides a flexible and centralized way to manage authentication methods for applications and services. Ensuring the latest version of pam is installed helps maintain system security by providing the latest security fixes and features.

Remediation

Shell script

The following script can be run on the host to remediate the issue.

#!/bin/bash

if ! rpm -q --quiet "pam" ; then
    yum install -y "pam"
fi

Ansible playbook

The following playbook can be run with Ansible to remediate the issue.

- name: Ensure pam is installed
  ansible.builtin.package:
    name: pam
    state: present
  tags:
  - CCE-89184-6
  - enable_strategy
  - low_complexity
  - low_disruption
  - medium_severity
  - no_reboot_needed
  - package_pam_installed