STIGQter STIGQter: STIG Summary: Amazon Linux 2023 Security Technical Implementation Guide Version: 1 Release: 4 Benchmark Date: 01 Jul 2026:

Amazon Linux 2023 must enable the Pluggable Authentication Module (PAM) interface for SSHD.

DISA Rule

SV-274052r1120144_rule

Vulnerability Number

V-274052

Group Title

SRG-OS-000125-GPOS-00065

Rule Version

AZLX-23-001255

Severity

CAT I

CCI(s)

Weight

10

Fix Recommendation

Configure Amazon Linux 2023 SSHD to use the UsePAM interface.

Add or modify the following line in "/etc/ssh/sshd_config":

UsePAM yes

Restart the SSH daemon for the settings to take effect:

$ sudo systemctl restart sshd.service

Check Contents

Verify Amazon Linux 2023 SSHD is configured to allow for the UsePAM interface with the following command:

$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH '^\s*usepam'
/etc/ssh/sshd_config.d/50-redhat.conf:UsePAM yes

If the "UsePAM" keyword is set to "no", is missing, or is commented out, this is a finding.

Vulnerability Number

V-274052

Documentable

False

Rule Version

AZLX-23-001255

Severity Override Guidance

Verify Amazon Linux 2023 SSHD is configured to allow for the UsePAM interface with the following command:

$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '\r' | tr '\n' ' ' | xargs sudo grep -iH '^\s*usepam'
/etc/ssh/sshd_config.d/50-redhat.conf:UsePAM yes

If the "UsePAM" keyword is set to "no", is missing, or is commented out, this is a finding.

Check Content Reference

M

Target Key

5700