Skip to content

Commit

Permalink
Merge pull request #12904 from mpurg/ubuntu2404_cis_5.3.1.1_5.3.1.2
Browse files Browse the repository at this point in the history
Add rules for installing pam-runtime and pam-modules to Ubuntu 24.04
  • Loading branch information
dodys authored Jan 30, 2025
2 parents 253e95d + ede76a5 commit 7b52524
Show file tree
Hide file tree
Showing 8 changed files with 73 additions and 4 deletions.
4 changes: 4 additions & 0 deletions components/pam.yml
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ name: pam
packages:
- pam
- pam_apparmor
- libpam-runtime
- libpam-modules
rules:
- account_disable_inactivity_password_auth
- account_disable_inactivity_system_auth
Expand Down Expand Up @@ -198,7 +200,9 @@ rules:
- no_tmux_in_shells
- package_opensc_installed
- package_pam_apparmor_installed
- package_pam_modules_installed
- package_pam_pwquality_installed
- package_pam_runtime_installed
- package_pcsc-lite_installed
- package_screen_installed
- package_tmux_installed
Expand Down
13 changes: 9 additions & 4 deletions controls/cis_ubuntu2404.yml
Original file line number Diff line number Diff line change
Expand Up @@ -1833,16 +1833,21 @@ controls:
levels:
- l1_server
- l1_workstation
status: planned
notes: TODO. Rule does not seem to be implemented, nor does it map to any rules in ubuntu2204 profile.
rules:
- package_pam_runtime_installed
status: automated
notes: |
The CIS control checks that version >= 1.5.3-5 and not that
it is the latest version as the title suggests.
- id: 5.3.1.2
title: Ensure libpam-modules is installed (Automated)
levels:
- l1_server
- l1_workstation
status: planned
notes: TODO. Rule does not seem to be implemented, nor does it map to any rules in ubuntu2204 profile.
rules:
- package_pam_modules_installed
status: automated

- id: 5.3.1.3
title: Ensure libpam-pwquality is installed (Automated)
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
documentation_complete: true

title: 'Install pam-modules Package'

description: |-
{{{ describe_package_install(package="libpam-modules") }}}
rationale: |-
libpam-modules contains PAM modules that are needed
by other rules when configuring PAM options.
severity: medium

platform: package[pam]

template:
name: package_installed
vars:
pkgname: libpam-modules
evr: 0:1.5.3-5
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# platform = Not Applicable

# Override template test.
# The package shouldn't be removed as it would
# break the test environment.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# platform = Not Applicable

# Override template test.
# The package shouldn't be removed as it would
# break the test environment.
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
documentation_complete: true

title: 'Install pam-runtime Package'

description: |-
{{{ describe_package_install(package="libpam-runtime") }}}
rationale: |-
libpam-runtime contains configuration that is needed
by other rules when configuring PAM options.
severity: medium

template:
name: package_installed
vars:
pkgname: libpam-runtime
evr: 0:1.5.3-5
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
# platform = Not Applicable

# Override template test.
# The package shouldn't be removed as it would
# break the test environment.

Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# platform = Not Applicable

# Override template test.
# The package shouldn't be removed as it would
# break the test environment.

0 comments on commit 7b52524

Please sign in to comment.