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

Amazon Linux 2023 must force a frequent session key renegotiation for SSH connections to the server.

DISA Rule

SV-274046r1120126_rule

Vulnerability Number

V-274046

Group Title

SRG-OS-000423-GPOS-00187

Rule Version

AZLX-23-001225

Severity

CAT I

CCI(s)

Weight

10

Fix Recommendation

Configure Amazon Linux 2023 to force a frequent session key renegotiation for SSH connections to the server by adding or modifying the following line in the "/etc/ssh/sshd_config" file or in a file in "/etc/ssh/sshd_config.d":

RekeyLimit 1G 1h

Restart the SSH daemon for the settings to take effect.

$ sudo systemctl restart sshd.service

Check Contents

Verify Amazon Linux 2023 is configured so that the SSH forces frequent session key renegotiation 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*rekeylimit'
RekeyLimit 1G 1h

If "RekeyLimit" does not have a maximum data amount and maximum time defined, is missing, or is commented out, this is a finding.

Vulnerability Number

V-274046

Documentable

False

Rule Version

AZLX-23-001225

Severity Override Guidance

Verify Amazon Linux 2023 is configured so that the SSH forces frequent session key renegotiation 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*rekeylimit'
RekeyLimit 1G 1h

If "RekeyLimit" does not have a maximum data amount and maximum time defined, is missing, or is commented out, this is a finding.

Check Content Reference

M

Target Key

5700