V1R5 changes
Amazon Linux 2023 STIG V1R5 (2026-09-30) replaced V1R4 (2026-07-01): 1 check added, 1 removed, 29 updated. It has 187 checks, against 187 in V1R4.
V1R5 checklistV1R4 checklist Compare V1R4 and V1R5 in STIG Compare
- 1 added
- 1 removed
- 29 updated
Updated fields: Discussion 22Check text 13Title 10Fix text 9
Added in V1R5 (1)
- V-288814CAT IAmazon Linux 2023 must implement DoW-approved encryption in the OpenSSL package.
Removed since V1R4 (1)
- V-274116CAT IIAmazon Linux 2023 audit logs must be group-owned by root or by a restricted logging group to prevent unauthorized read access.
Updated in V1R5 (29)
V-274001CAT IIAmazon Linux 2023 must restrict access to the kernel message buffer.Discussion
Discussion
Preventing unauthorized information transfers mitigates the risk of information, including encrypted representations of information, produced by the actions of prior users/roles (or the actions of processes acting on behalf of prior users/roles) from being available to any current users/roles (or current processes) that obtain access to shared system resources (e.g., registers, main memory, hard disks) after those resources have been released back to information systems. The control of information in shared resources is also commonly referred to as object reuse and residual information protection.
This requirement generally applies to the design of an information technology product, but it can also apply to the configuration of particular information system components that are, or use, such products. This can be verified by acceptance/validation processes in DODDoW or other government agencies.
There may be shared resources with configurable protections (e.g., files in storage) that may be assessed on specific information system components.
Restricting access to the kernel message buffer limits access to only root. This prevents attackers from gaining additional system information as a nonprivileged user.
Satisfies: SRG-OS-000132-GPOS-00067, SRG-OS-000138-GPOS-00069
V-274002CAT IIAmazon Linux 2023 must prevent kernel profiling by nonprivileged users.Discussion
Discussion
Preventing unauthorized information transfers mitigates the risk of information, including encrypted representations of information, produced by the actions of prior users/roles (or the actions of processes acting on behalf of prior users/roles) from being available to any current users/roles (or current processes) that obtain access to shared system resources (e.g., registers, main memory, hard disks) after those resources have been released back to information systems. The control of information in shared resources is also commonly referred to as object reuse and residual information protection.
This requirement generally applies to the design of an information technology product, but it can also apply to the configuration of particular information system components that are, or use, such products. This can be verified by acceptance/validation processes in DODDoW or other government agencies.
There may be shared resources with configurable protections (e.g., files in storage) that may be assessed on specific information system components.
Setting the kernel.perf_event_paranoid kernel parameter to "2" prevents attackers from gaining additional system information as a nonprivileged user.
Satisfies: SRG-OS-000132-GPOS-00067, SRG-OS-000138-GPOS-00069
V-274014CAT IIAmazon Linux 2023 must require reauthentication when using the "sudo" command.Check text, Fix text
Check text
Verify Amazon Linux 2023 requires reauthentication when using the "sudo" command to elevate privileges with the following command:
$ sudo grep -ir 'timestamp_timeout' /etc/sudoers /etc/sudoers.d/
/etc/sudoers:Defaults timestamp_timeout=0
If results are returned from more than one file location, this is a finding.
If "'timestamp_timeout"' is set to a value other than "0" (including negative numbernumbers), is commented out, or nois resultsmissing are returnedentirely, this is a finding.
Fix text
Configure Amazon Linux 2023 to reauthenticate "sudo" commands after the specified timeout: Add the following line to "/etc/sudoers" or a file in "/etc/sudoers.d": Defaults timestamp_timeout=0 Remove any duplicate definitions.
V-274032CAT IIAmazon Linux 2023 must have the libreswan package installed.Discussion
Discussion
Unapproved mechanisms that are used for authentication to the cryptographic module are not verified and therefore, cannot be relied upon to provide confidentiality or integrity, and DODDoW data may be compromised.
Operating systems utilizing encryption are required to use FIPS-compliant mechanisms for authenticating to cryptographic modules.
FIPS 140-2/140-3 is the current standard for validating that mechanisms used to access cryptographic modules utilize authentication that meets DODDoW requirements. This allows for Security Levels 1, 2, 3, or 4 for use on a general purpose computing system.
V-274035CAT IIAmazon Linux 2023 must have the packages required for encrypting off-loaded audit logs installed.Discussion
Discussion
Unapproved mechanisms used for authentication to the cryptographic module are not verified and therefore, cannot be relied upon to provide confidentiality or integrity, and DODDoW data may be compromised.
Operating systems utilizing encryption are required to use FIPS-compliant mechanisms for authenticating to cryptographic modules.
FIPS 140-2/140-3 is the current standard for validating that mechanisms used to access cryptographic modules utilize authentication that meets DODDoW requirements. This allows for Security Levels 1, 2, 3, or 4 for use on a general purpose computing system.
V-274036CAT IIAmazon Linux 2023 must have the opensc package installed.Discussion
Discussion
The use of PIV credentials facilitates standardization and reduces the risk of unauthorized access.
The DODDoW has mandated the use of the Commoncommon Accessaccess Cardcard (CAC) to support identity management and personal authentication for systems covered under Homeland Security Presidential Directive (HSPD) 12, as well as making the CAC a primary component of layered protection for national security systems.
Satisfies: SRG-OS-000375-GPOS-00160, SRG-OS-000376-GPOS-00161
V-274037CAT IIAmazon Linux 2023 must have the openssl-pkcs11 package installed.Discussion
Discussion
Without the use of multifactor authentication, the ease of access to privileged functions is greatly increased. Multifactor authentication requires using two or more factors to achieve authentication. A privileged account is defined as an information system account with authorizations of a privileged user. The DODDoW Commoncommon Accessaccess Cardcard (CAC) with DODDoW-approved PKI is an example of multifactor authentication.
Satisfies: SRG-OS-000375-GPOS-00160, SRG-OS-000376-GPOS-00161, SRG-OS-000377-GPOS-00162
V-274042CAT IAmazon Linux 2023 server must be configured to use only DoW-approved encryption ciphers employing FIPS 140-2/140-3-validated cryptographic hash algorithms to protect the confidentiality of SSH server connections.Title, Check text, Fix text, Discussion
Title
Amazon Linux 2023 server must be configured to use only DODDoW-approved encryption ciphers employing FIPS 140-2/140-3 -validated cryptographic hash algorithms to protect the confidentiality of SSH server connections.
Check text
Verify Amazon Linux 2023 SSH server is configured to use only ciphers employing FIPS 140-2/140-3 -approved algorithms with the following command:
$ sudo grep -i Ciphers /etc/crypto-policies/back-ends/opensshserver.config
Ciphers aes256-gcm@openssh.com,aes256-ctr,aes128-gcm@openssh.com,aes128-ctr
If the cipher entries in the "opensshserver.config" file have any ciphers other than "aes256-gcm@openssh.com,aes256-ctr,aes128-gcm@openssh.com,aes128-ctr", or they are missing or commented out, this is a finding.
Fix text
Configure Amazon Linux 2023 so that the SSH server uses only ciphers employing FIPS 140-2/140-3 -approved algorithms.
Reinstall crypto-policies with the following command:
$ sudo dnf -y reinstall crypto-policies
Set the crypto-policy to FIPS with the following command:
$ sudo update-crypto-policies --set FIPS
Setting system policy to FIPS
Note: Systemwide crypto policies are applied on application startup. It is recommended to restart the system for the change of policies to fully take place.
Discussion
Without cryptographic integrity protections, information can be altered by unauthorized users without detection.
Remote access (e.g., RDP) is access to DODDoW nonpublic information systems by an authorized user (or an information system) communicating through an external, nonorganization-controlled network. Remote access methods include, for example, dial-up, broadband, and wireless.
Cryptographic mechanisms used for protecting the integrity of information include, for example, signed hash functions using asymmetric cryptography enabling distribution of the public key to verify the hash information while maintaining the confidentiality of the secret key used to generate the hash.
Amazon Server 2023 incorporates systemwide crypto policies by default. The SSH configuration file has no effect on the ciphers, MACs, or algorithms unless specifically defined in the /etc/sysconfig/sshd file. The employed algorithms can be viewed in the /etc/crypto-policies/back-ends/opensshserver.config file.
V-274043CAT IAmazon Linux 2023 SSH server must be configured to use only Message Authentication Codes (MACs) employing FIPS 140-2/140-3-validated cryptographic hash algorithms to protect the confidentiality of SSH server connections.Title, Check text, Fix text, Discussion
Title
Amazon Linux 2023 SSH server must be configured to use only Message Authentication Codes (MACs) employing FIPS 140-2/140-3 -validated cryptographic hash algorithms to protect the confidentiality of SSH server connections.
Check text
Verify Amazon Linux 2023 SSH server is configured to use only MACs employing FIPS 140-2/140-3 -approved algorithms.
To verify the MACs in the systemwide SSH configuration file, use the following command:
$ sudo grep -i MACs /etc/crypto-policies/back-ends/opensshserver.config
MACs hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha2-512
If the MACs entries in the "opensshserver.config" file have any hashes other than "hmac-sha2-256-etm@openssh.com,hmac-sha2-512-etm@openssh.com,hmac-sha2-256,hmac-sha2-512", or they are missing or commented out, this is a finding.
Fix text
Configure Amazon Linux 2023 so that the SSH server uses only MACs employing FIPS 140-2/140-3 -approved algorithms.
Reinstall crypto-policies with the following command:
$ sudo dnf -y reinstall crypto-policies
Set the crypto-policy to FIPS with the following command:
$ sudo update-crypto-policies --set FIPS
Setting system policy to FIPS
Note: Systemwide crypto policies are applied on application startup. It is recommended to restart the system for the change of policies to fully take place.
Discussion
Without cryptographic integrity protections, information can be altered by unauthorized users without detection.
Remote access (e.g., RDP) is access to DODDoW nonpublic information systems by an authorized user (or an information system) communicating through an external, nonorganization-controlled network. Remote access methods include, for example, dial-up, broadband, and wireless.
Cryptographic mechanisms used for protecting the integrity of information include, for example, signed hash functions using asymmetric cryptography enabling distribution of the public key to verify the hash information while maintaining the confidentiality of the secret key used to generate the hash.
Amazon Linux 2023 incorporates systemwide crypto policies by default. The SSH configuration file has no effect on the ciphers, MACs, or algorithms unless specifically defined in the /etc/sysconfig/sshd file. The employed algorithms can be viewed in the /etc/crypto-policies/back-ends/opensshserver.config file.
V-274047CAT IIAmazon Linux 2023 SSHD must accept public key authentication.Discussion
Discussion
Without the use of multifactor authentication, the ease of access to privileged functions is greatly increased.
Multifactor authentication requires using two or more factors to achieve authentication.
Factors include:
1. Something a user knows (e.g., password/PIN);
2. Something a user has (e.g., cryptographic identification device, token); and
3. Something a user is (e.g., biometric).
A privileged account is defined as an information system account with authorizations of a privileged user.
Network access is defined as access to an information system by a user (or a process acting on behalf of a user) communicating through a network (e.g., local area network, wide area network, or the internet).
The DODDoW Commoncommon Accessaccess Cardcard (CAC) with DODDoW-approved PKI is an example of multifactor authentication.
Satisfies: SRG-OS-000105-GPOS-00052, SRG-OS-000106-GPOS-00053, SRG-OS-000107-GPOS-00054, SRG-OS-000108-GPOS-00055
V-274059CAT IIAmazon Linux 2023 must enable certificate-based smart card authentication.Discussion
Discussion
Without the use of multifactor authentication, the ease of access to privileged functions is greatly increased. Multifactor authentication requires using two or more factors to achieve authentication. A privileged account is defined as an information system account with authorizations of a privileged user. The DODDoW Commoncommon Accessaccess Cardcard (CAC) with DODDoW-approved PKI is an example of multifactor authentication.
Satisfies: SRG-OS-000375-GPOS-00160, SRG-OS-000705-GPOS-00150
V-274061CAT IIAmazon Linux 2023 must implement certificate status checking for multifactor authentication.Check text, Discussion
Check text
Note: If the system administrator (SA) demonstrates the use of an approved alternate multifactor authentication method, this requirement is not applicable.
Verify Amazon Linux 2023 implements Online Certificate Status Protocol (OCSP) and is using the proper digest value on the system with the following command:
$ sudo grep -ir certificate_verification /etc/sssd/sssd.conf /etc/sssd/conf.d/ | grep -v "^#"
certificate_verification = ocsp_dgst=sha512
If the certificate_verification line is missing from the [sssd] section, or is missing "ocsp_dgst=sha512", ask the administrator to indicate what type of multifactor authentication is being utilized and how the system implements certificate status checking.
If there is no evidence of certificate status checking being used, this is a finding.
Discussion
Using an authentication device, such as a DODDoW Commoncommon Accessaccess Cardcard (CAC) or token that is separate from the information system, ensures that even if the information system is compromised, credentials stored on the authentication device will not be affected.
Multifactor solutions that require devices separate from information systems gaining access include, for example, hardware tokens providing time-based or challenge-response authenticators and smart cards such as the U.S. Government Personal Identity Verification (PIV) card and the DODDoW CAC.
Amazon Linux 2023 includes multiple options for configuring certificate status checking, but for this requirement focuses on the System Security Services Daemon (SSSD). By default, SSSD performs Online Certificate Status Protocol (OCSP) checking and certificate verification using a sha256 digest function.
Satisfies: SRG-OS-000375-GPOS-00160, SRG-OS-000377-GPOS-00162
V-274063CAT IIAmazon Linux 2023, for PKI-based authentication, must validate certificates by constructing a certification path (which includes status information) to an accepted trust anchor.Check text, Discussion
Check text
Note: If the system administrator (SA) demonstrates the use of an approved alternate multifactor authentication method, this requirement is not applicable.
Verify Amazon Linux 2023 for PKI-based authentication has valid certificates by constructing a certification path (which includes status information) to an accepted trust anchor.
Check that the system has a valid DODDoW root CA installed with the following command:
$ sudo openssl x509 -text -in /etc/sssd/pki/sssd_auth_ca_db.pem
Certificate:
Data:
Version: 3 (0x2)
Serial Number: 1 (0x1)
Signature Algorithm: sha256WithRSAEncryption
Issuer: C = US, O = U.S. Government, OU = DODDoW, OU = PKI, CN = DOD Root CA 3
Validity
Not Before: Mar 20 18:46:41 2012 GMT
Not After : Dec 30 18:46:41 2029 GMT
Subject: C = US, O = U.S. Government, OU = DODDoW, OU = PKI, CN = DOD Root CA 3
Subject Public Key Info:
Public Key Algorithm: rsaEncryption
If the root ca file is not a DODDoW-issued certificate with a valid date and installed in the /etc/sssd/pki/sssd_auth_ca_db.pem location, this is a finding.
Discussion
Without path validation, an informed trust decision by the relying party cannot be made when presented with any certificate not already explicitly trusted.
A trust anchor is an authoritative entity represented via a public key and associated data. It is used in the context of public key infrastructures, X.509 digital certificates, and DNSSEC.
When there is a chain of trust, usually the top entity to be trusted becomes the trust anchor; it can be, for example, a Certificationcertification Authorityauthority (CA). A certification path starts with the subject certificate and proceeds through a number of intermediate certificates up to a trusted root certificate, typically issued by a trusted CA.
This requirement verifies that a certification path to an accepted trust anchor is used for certificate validation and that the path includes status information. Path validation is necessary for a relying party to make an informed trust decision when presented with any certificate not already explicitly trusted. Status information for certification paths includes certificate revocation lists or online certificate status protocol responses. Validation of the certificate status information is out of scope for this requirement.
Satisfies: SRG-OS-000066-GPOS-00034, SRG-OS-000775-GPOS-00230, SRG-OS-000384-GPOS-00167, SRG-OS-000403-GPOS-00182
V-274065CAT IIAmazon Linux 2023 must display the Standard Mandatory DoW Notice and Consent Banner before granting local or remote access to the system.Title, Check text, Fix text, Discussion
Title
Amazon Linux 2023 must display the Standard Mandatory DODoW Notice and Consent Banner before granting local or remote access to the system.
Check text
Verify Amazon Linux 2023 displays the Standard Mandatory DODDoW Notice and Consent Banner before granting access to the system over any publicly accessible connection.
View the file specified by the banner keyword to check that it matches the text of the Standard Mandatory DODDoW Notice and Consent Banner with the following command:
$ more /etc/issue
"You are accessing a U.S. Government (USG) Information System (IS) that is provided for USG-authorized use only.
By using this IS (which includes any device attached to this IS), you consent to the following conditions:
-The USG routinely intercepts and monitors communications on this IS for purposes including, but not limited to, penetration testing, COMSEC monitoring, network operations and defense, personnel misconduct (PM), law enforcement (LE), and counterintelligence (CI) investigations.
-At any time, the USG may inspect and seize data stored on this IS.
-Communications using, or data stored on, this IS are not private, are subject to routine monitoring, interception, and search, and may be disclosed or used for any USG-authorized purpose.
-This IS includes security measures (e.g., authentication and access controls) to protect USG interests--not for your personal benefit or privacy.
-Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI investigative searching or monitoring of the content of privileged communications, or work product, related to personal representation or services by attorneys, psychotherapists, or clergy, and their assistants. Such communications and work product are private and confidential. See User Agreement for details."
If the system does not display a logon banner or the banner text does not match the Standard Mandatory DODDoW Notice and Consent Banner, this is a finding.
Fix text
Configure Amazon Linux 2023 to display the Standard Mandatory DODDoW Notice and Consent Banner before granting access to the system via the ssh.
Edit the "/etc/issue" file to replace the default text with the Standard Mandatory DODDoW Notice and Consent Banner. The DODDoW-required text is:
"You are accessing a U.S. Government (USG) Information System (IS) that is provided for USG-authorized use only.
By using this IS (which includes any device attached to this IS), you consent to the following conditions:
-The USG routinely intercepts and monitors communications on this IS for purposes including, but not limited to, penetration testing, COMSEC monitoring, network operations and defense, personnel misconduct (PM), law enforcement (LE), and counterintelligence (CI) investigations.
-At any time, the USG may inspect and seize data stored on this IS.
-Communications using, or data stored on, this IS are not private, are subject to routine monitoring, interception, and search, and may be disclosed or used for any USG-authorized purpose.
-This IS includes security measures (e.g., authentication and access controls) to protect USG interests -- not for your personal benefit or privacy.
-Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI investigative searching or monitoring of the content of privileged communications, or work product, related to personal representation or services by attorneys, psychotherapists, or clergy, and their assistants. Such communications and work product are private and confidential. See User Agreement for details."
Discussion
Display of a standardized and approved use notification before granting access to Amazon Linux 2023 ensures privacy and security notification verbiage used is consistent with applicable federal laws, Executive Orders, directives, policies, regulations, standards, and guidance.
System use notifications are required only for access via logon interfaces with human users and are not required when such human interfaces do not exist.
The banner must be formatted in accordance with applicable DODDoW policy. Use the following verbiage for operating systems that can accommodate banners of 1300 characters:
"You are accessing a U.S. Government (USG) Information System (IS) that is provided for USG-authorized use only.
By using this IS (which includes any device attached to this IS), you consent to the following conditions:
-The USG routinely intercepts and monitors communications on this IS for purposes including, but not limited to, penetration testing, COMSEC monitoring, network operations and defense, personnel misconduct (PM), law enforcement (LE), and counterintelligence (CI) investigations.
-At any time, the USG may inspect and seize data stored on this IS.
-Communications using, or data stored on, this IS are not private, are subject to routine monitoring, interception, and search, and may be disclosed or used for any USG-authorized purpose.
-This IS includes security measures (e.g., authentication and access controls) to protect USG interests--not for your personal benefit or privacy.
-Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI investigative searching or monitoring of the content of privileged communications, or work product, related to personal representation or services by attorneys, psychotherapists, or clergy, and their assistants. Such communications and work product are private and confidential. See User Agreement for details."
Use the following verbiage for operating systems that have severe limitations on the number of characters that can be displayed in the banner:
"I've read & consent to terms in IS user agreem't."
V-274066CAT IIAmazon Linux 2023 must display the Standard Mandatory DoW Notice and Consent Banner before granting local or remote access to the system via a SSH logon.Title, Check text, Fix text, Discussion
Title
Amazon Linux 2023 must display the Standard Mandatory DODoW Notice and Consent Banner before granting local or remote access to the system via a SSH logon.
Check text
Verify Amazon Linux 2023 displays the Standard Mandatory DODDoW Notice and Consent Banner before granting access to the system from any SSH connection.
Check for the location of the banner file being used with the following command:
$ sudo /usr/sbin/sshd -dd 2>&1 | awk '/filename/ {print $4}' | tr -d '1r' | tr '1n' ' ' | xargs sudo grep -iH '^1s*banner'
/etc/ssh/sshd_config.d/80-bannerPointer.conf:Banner /etc/issue
This command will return the banner keyword and the name of the file that contains the SSH banner (in this case "/etc/issue").
If the line is commented out, this is a finding.
Fix text
Configure Amazon Linux 2023 to display the Standard Mandatory DODDoW Notice and Consent Banner before granting access to the system via ssh.
Edit the "etc/ssh/sshd_config" file or a file in "/etc/ssh/sshd_config.d" to uncomment the banner keyword and configure it to point to a file that will contain the logon banner (this file may be named differently or be in a different location if using a version of SSH that is provided by a third-party vendor).
An example configuration line is:
Banner /etc/issue
Discussion
Display of a standardized and approved use notification before granting access to the publicly accessible operating system ensures privacy and security notification verbiage used is consistent with applicable federal laws, Executive Orders, directives, policies, regulations, standards, and guidance.
System use notifications are required only for access via logon interfaces with human users and are not required when such human interfaces do not exist.
The banner must be formatted in accordance with applicable DODDoW policy. Use the following verbiage for operating systems that can accommodate banners of 1300 characters:
"You are accessing a U.S. Government (USG) Information System (IS) that is provided for USG-authorized use only.
By using this IS (which includes any device attached to this IS), you consent to the following conditions:
-The USG routinely intercepts and monitors communications on this IS for purposes including, but not limited to, penetration testing, COMSEC monitoring, network operations and defense, personnel misconduct (PM), law enforcement (LE), and counterintelligence (CI) investigations.
-At any time, the USG may inspect and seize data stored on this IS.
-Communications using, or data stored on, this IS are not private, are subject to routine monitoring, interception, and search, and may be disclosed or used for any USG-authorized purpose.
-This IS includes security measures (e.g., authentication and access controls) to protect USG interests--not for your personal benefit or privacy.
-Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI investigative searching or monitoring of the content of privileged communications, or work product, related to personal representation or services by attorneys, psychotherapists, or clergy, and their assistants. Such communications and work product are private and confidential. See User Agreement for details."
Use the following verbiage for operating systems that have severe limitations on the number of characters that can be displayed in the banner:
"I've read & consent to terms in IS user agreem't."
V-274111CAT IIAmazon Linux 2023 must allow only the information system security manager (ISSM) (or individuals or roles appointed by the ISSM) to select which auditable events are to be audited.Check text, Fix text
Check text
Verify Amazon Linux 2023 is configured so that the files in "the directory /etc/audit/rules.d/" and the "/etc/audit/auditd.conf" file have a mode of "0600" or less permissive bywith using the following commandscommand:
$ sudo find /etc/audit/rules.d/ /etc/audit/audit.rules /etc/audit/auditd.conf -type f -name "*.rules" -exec stat -c "%a %n" {} 1;
600 /etc/audit/rules.d/audit.rules
600
Verify that the files /etc/audit/audit.rules
600 and /etc/audit/auditd.conf
If thehave filesa inmode of 0600 or less permissive with the following command:
$sudo stat -c "%a %n" /etc/audit/audit.rules /etc/audit/auditd.dconf
600 /"etc/audit/audit.rules
600 directory or the "/etc/audit/auditd.conf"
If fileany of the audit configuration files have a mode more permissive than "0600", this is a finding.
Fix text
Configure Amazon Linux 2023 so that the rules files in "the directory /etc/audit/rules.d/", the /etc/audit/audit.rules file, and the "/etc/audit/auditd.conf" file to have a mode of "0600" or less permissive with the following commands:
$ sudo chmodfind 0600 /etc/audit/rules.d/audit -type f -name "*.rules" -exec chmod 0600 {} +
$ sudo chmod 0600 /etc/audit/rulesaudit.d/[customrulesfile].rules
$ sudo chmod 0600 /etc/audit/auditd.conf
V-274148CAT IIAmazon Linux 2023 must be able to enforce a 180-day maximum password lifetime restriction.Title, Check text, Fix text
Title
Amazon Linux 2023 must be able to enforce a 6180-day maximum password lifetime restriction.
Check text
Verify Amazon Linux 2023 enforces the maximum time period for existing passwords is restricted to 60180 days with the following commands:
$ sudo awk -F: '$5 > 60180 {print $1 " " $5}' /etc/shadow
$ sudo awk -F: '$5 <= 0 {print $1 " " $5}' /etc/shadow
If any results are returned that are not associated with a system account, this is a finding.
Fix text
Configure Amazon Linux 2023 to set noncompliant accounts to enforce a 6180-day maximum password lifetime restriction.
$ sudo chage -M 6180 [user]
V-274162CAT IIAmazon Linux 2023 password-auth must be configured to use a sufficient number of hashing rounds.Discussion
Discussion
Unapproved mechanisms, used for authentication to the cryptographic module are not verified and therefore, cannot be relied upon to provide confidentiality or integrity, and DODDoW data may be compromised.
Operating systems utilizing encryption are required to use FIPS-compliant mechanisms for authenticating to cryptographic modules.
FIPS 140-2/140-3 is the current standard for validating that mechanisms used to access cryptographic modules utilize authentication that meets DODDoW requirements. This allows for Security Levels 1, 2, 3, or 4 for use on a general purpose computing system.
Satisfies: SRG-OS-000073-GPOS-00041, SRG-OS-000120-GPOS-00061
V-274163CAT IIAmazon Linux 2023 system-auth must be configured to use a sufficient number of hashing rounds.Discussion
Discussion
Unapproved mechanisms used for authentication to the cryptographic module are not verified and therefore, cannot be relied upon to provide confidentiality or integrity, and DODDoW data may be compromised.
Operating systems utilizing encryption are required to use FIPS-compliant mechanisms for authenticating to cryptographic modules.
FIPS 140-2/140-3 is the current standard for validating that mechanisms used to access cryptographic modules utilize authentication that meets DODDoW requirements. This allows for Security Levels 1, 2, 3, or 4 for use on a general purpose computing system.
Satisfies: SRG-OS-000073-GPOS-00041, SRG-OS-000120-GPOS-00061
V-274164CAT IIAmazon Linux 2023 must ensure a sticky bit be set on all public directories.Discussion
Discussion
Preventing unauthorized information transfers mitigates the risk of information, including encrypted representations of information, produced by the actions of prior users/roles (or the actions of processes acting on behalf of prior users/roles) from being available to any current users/roles (or current processes) that obtain access to shared system resources (e.g., registers, main memory, hard disks) after those resources have been released back to information systems. The control of information in shared resources is also commonly referred to as object reuse and residual information protection.
This requirement generally applies to the design of an information technology product, but it can also apply to the configuration of particular information system components that are, or use, such products. This can be verified by acceptance/validation processes in DODDoW or other government agencies.
There may be shared resources with configurable protections (e.g., files in storage) that may be assessed on specific information system components.
V-274165CAT IIAmazon Linux 2023 must ensure all world-writable directories be owned by root, sys, bin, or an application user.Discussion
Discussion
Preventing unauthorized information transfers mitigates the risk of information, including encrypted representations of information, produced by the actions of prior users/roles (or the actions of processes acting on behalf of prior users/roles) from being available to any current users/roles (or current processes) that obtain access to shared system resources (e.g., registers, main memory, hard disks) after those resources have been released back to information systems. The control of information in shared resources is also commonly referred to as object reuse and residual information protection.
This requirement generally applies to the design of an information technology product, but it can also apply to the configuration of particular information system components that are, or use, such products. This can be verified by acceptance/validation processes in DODDoW or other government agencies.
There may be shared resources with configurable protections (e.g., files in storage) that may be assessed on specific information system components.
V-274166CAT IIAmazon Linux 2023 must terminate idle user sessions.Check text
Check text
Note: For cloud hosted systems where "ClientAliveInterval" (V-274050) is configured, this setting is not applicable. Verify Amazon Linux 2023 logs out sessions that are idle for 10 minutes with the following command: $ sudo grep -i ^StopIdleSessionSec /etc/systemd/logind.conf StopIdleSessionSec=600 If "StopIdleSessionSec" is not configured to "600" seconds, this is a finding.
V-274175CAT IIAmazon Linux 2023 must synchronize internal information system clocks to the authoritative time source at least every 24 hours.Check text, Fix text
Check text
Verify Amazon Linux 2023 chrony service specifies a maximum interval of 24 hours between requests sent to a United States Naval Observatory (USNO) server with the following command:
Note: <USNO/DODDoW Server> is used in place of a time source IP address.
$ sudo grep maxpoll /etc/chrony.conf
server <USNO/DODDoW Server> iburst maxpoll 16
If the "maxpoll" option is not configured, set to a number greater than 16, or the line is commented out, this is a finding.
Verify Amazon Linux 2023 chrony service is configured to use authoritative USNO or appropriate DODDoW time source with the following command:
$ sudo grep -i server /etc/chrony.conf
server <USNO/DODDoW Server>
If the parameter "server" is not set or is not set to an authoritative USNO/DODDoW time source, this is a finding.
Fix text
Configure Amazon Linux 2023 to compare internal information system clocks at least every 24 hours with an NTP server. Ensure the following line is added or updated in "/etc/chrony.conf":
server <USNO/DODDoW Server> iburst maxpoll 16
V-274182CAT IIAmazon Linux 2023 file system automount function must be disabled.Title, Check text
Title
Amazon Linux 2023 file system automount function must be disabled unless required.
Check text
Note: If the "autofs" service is not installed, this requirement is not applicable.
Verify Amazon Linux 2023 disables the file system automount function with the following command:
$ sudo systemctl is-enabled autofs
masked
If the returned value is not "masked", "disabled", "Failed to get unit file state for autofs.service for autofs", or "enablednot-found", and is not documented as an operational requirement with the information system security officer (ISSO), this is a finding.
V-283440CAT IAmazon Linux 2023 must implement DoW-approved encryption in the bind package.Title, Discussion
Title
Amazon Linux 2023 must implement DODoW-approved encryption in the bind package.
Discussion
Without cryptographic integrity protections, information can be altered by unauthorized users without detection.
Cryptographic mechanisms used for protecting the integrity of information include, for example, signed hash functions using asymmetric cryptography enabling distribution of the public key to verify the hash information while maintaining the confidentiality of the secret key used to generate the hash.
Amazon Linux 2023 incorporates system-widesystemwide crypto policies by default. The employed algorithms can be viewed in the /etc/crypto-policies/back-ends/ directory.
Satisfies: SRG-OS-000423-GPOS-00187, SRG-OS-000426-GPOS-00190
V-283442CAT IThe Amazon Linux 2023 SSH client must be configured to use only DoW-approved encryption ciphers employing FIPS 140-3-validated cryptographic hash algorithms to protect the confidentiality of SSH client connections.Title, Discussion
Title
The Amazon Linux 2023 SSH client must be configured to use only DODDoW-approved encryption ciphers employing FIPS 140-3-validated cryptographic hash algorithms to protect the confidentiality of SSH client connections.
Discussion
Without cryptographic integrity protections, information can be altered by unauthorized users without detection.
Remote access (e.g., RDP) is access to DODDoW nonpublic information systems by an authorized user (or an information system) communicating through an external, nonorganization-controlled network. Remote access methods include, for example, dial-up, broadband, and wireless.
Cryptographic mechanisms used for protecting the integrity of information include, for example, signed hash functions using asymmetric cryptography, enabling distribution of the public key to verify the hash information while maintaining the confidentiality of the secret key used to generate the hash.
Amazon Linux 2023 incorporates systemwide crypto policies by default. The SSH configuration file has no effect on the ciphers, MACs, or algorithms unless specifically defined in the /etc/sysconfig/sshd file. The employed algorithms can be viewed in the /etc/crypto-policies/back-ends/openssh.config file.
V-283443CAT IThe Amazon Linux 2023 SSH client must be configured to use only DoW-approved Message Authentication Codes (MACs) employing FIPS 140-3-validated cryptographic hash algorithms to protect the confidentiality of SSH client connections.Title, Discussion
Title
The Amazon Linux 2023 SSH client must be configured to use only DODDoW-approved Message Authentication Codes (MACs) employing FIPS 140-3-validated cryptographic hash algorithms to protect the confidentiality of SSH client connections.
Discussion
Without cryptographic integrity protections, information can be altered by unauthorized users without detection.
Remote access (e.g., RDP) is access to DODDoW nonpublic information systems by an authorized user (or an information system) communicating through an external, nonorganization-controlled network. Remote access methods include, for example, dial-up, broadband, and wireless.
Cryptographic mechanisms used for protecting the integrity of information include, for example, signed hash functions using asymmetric cryptography, enabling distribution of the public key to verify the hash information while maintaining the confidentiality of the secret key used to generate the hash.
Amazon Linux 2023 incorporates systemwide crypto policies by default. The SSH configuration file has no effect on the ciphers, MACs, or algorithms unless specifically defined in the /etc/sysconfig/sshd file. The employed algorithms can be viewed in the /etc/crypto-policies/back-ends/openssh.config file.
V-283452CAT IAmazon Linux 2023 must implement a FIPS 140-2/140-3-compliant systemwide cryptographic policy.Title, Check text, Fix text
Title
Amazon Linux 2023 must implement a FIPS 140-2/140-3 -compliant systemwide cryptographic policy.
Check text
Verify Amazon Linux 2023 is set to use a FIPS 140-2/140-3 -compliant systemwide cryptographic policy.
$Verify update-crypto-policies --show
FIPS
If the current systemwide crypto -policy is not set to "FIPS", this is a finding.
Inspect the contents of the REQUIRE.pmod file (if it exists) to verify only authorized modifications to the current policy are included with the following command:
$ cat /etc/update-crypto-policies/policies/modules/REQUIRE.pmod
Note: If subpolicies have been configured, they could be listed in a colon-separated list starting with FIPS as follows FIPS:<SUBPOLICY-NAME>:<SUBPOLICY-NAME>. This is not a finding.show
FIPS
If the AD-SUPPORTsystemwide subpolicy module is included (e.g., "FIPS:ADcrypto-SUPPORT"),policy and Active Directory support is not documentedset asto an operational requirement with the information system security officer (ISSO), this is a finding.
If the NO-ENFORCE-EMS subpolicy module is included (e.g., "FIPS:NO-ENFORCE-EMS"), and not enforcing EMS is not documented as an operational requirement with the ISSO, this is a finding.
Verify the current minimum crypto-policy configuration with the following commands:
$ sudo grep -E 'rsa_size|hash' /etc/crypto-policies/state/CURRENT.pol
hash = SHA2-256 SHA2-384 SHA2-512 SHA2-224 SHA3-256 SHA3-384 SHA3-512 SHAKE-256
min_rsa_size = 2048
If the "hash" values do not include at least the following FIPS 140-2/140-3 -compliant algorithms, this is a finding:
"SHA2-256 SHA2-384 SHA2-512 SHA2-224 SHA3-256 SHA3-384 SHA3-512 SHAKE-256", this is a finding.
If thereany are algorithms that include "SHA1" or a hash value less than "256224", this is a finding.
If the "min_rsa_size" is not set to a value of at least "2048", this is a finding.
If these commands do not return any output, this is a finding.
Fix text
Configure Amazon Linux 2023 to use a FIPS 140-2/140-3 -compliant systemwide cryptographic policy.
CreateSet subpolicies for enhancements to the systemwide crypto-policy with the following commands:
Create or edit the SCOPES-AND-WILDCARDS policy module in a text editor and insert options that modify the systemwide cryptographic policy as follows:
$ sudo vi /etc/crypto-policies/policies/modules/SCOPES-AND-WILDCARDS.pmod
Add the following lines to the policy:
# Disable CHACHA20-POLY1305 for the TLS protocol (OpenSSL, GnuTLS, NSS, and OpenJDK)
cipher@TLS = -CHACHA20-POLY1305
# Disable all CBC mode ciphers for the SSH protocol (libssh and OpenSSH)
cipher@SSH = -*-CBC
Create or edit the OPENSSH-SUBPOLICY module in a text editor and insert options that modify the systemwide crypto-policy as follows:
$ sudo vi /etc/crypto-policies/policies/modules/OPENSSH-SUBPOLICY.pmod
Add the following lines to the policy:
# Define ciphers for OpenSSH
cipher@SSH=AES-256-GCM AES-128-GCM AES-256-CTR AES-128-CTR
# Define MACs for OpenSSH
mac@SSH=HMAC-SHA2-512 HMAC-SHA2-256
Create or edit the REQUIRE.pmod file and add the following lines to include the subpolicies in the FIPS configuration with the following command:
$ sudo vi /etc/update-crypto-policies/policies/modules/REQUIRE.pmod
Add the following lines to REQUIRE.pmod:
@OPENSSH-SUBPOLICY
@SCOPES-AND-WILDCARDS
set FIPS
ApplySetting thesystem policy enhancements to the FIPS systemwide cryptographic policy level with the following command:
$Note: sudoSystemwide update-crypto-policies --set FIPS
Note: If additional subpolicies are beingapplied employed,on theyapplication should be added to the REQUIREstartup.pmod asIt well. REQUIRE.pmod is includedrecommended into therestart systemwide crypto-policy when it is set.
To make the cryptographicsystem settings effective for alreadythe runningchange servicesof andpolicies applications,to restartfully thetake system:
$ sudo rebootplace.
V-284944CAT IIAmazon Linux 2023 must ensure that the rsyslog service is running and persistent.Discussion
Discussion
Configuring Amazon Linux to implement organization-wideorganizationwide security implementation guides and security checklists ensures compliance with federal standards and establishes a common security baseline across the DoDDoW that reflects the most restrictive security posture consistent with operational requirements.
Configuration settings are the set of parameters that can be changed in hardware, software, or firmware components of the system that affect the security posture and/or functionality of the system. Security-related parameters are those parameters impacting the security state of the system, including the parameters required to satisfy other security control requirements. Security-related parameters include, for example: registry settings; account, file, directory permission settings; and settings for functions, ports, protocols, services, and remote connections.
How these changes are found
Checks are matched across the two releases by V-number. A check counts as updated when DISA gave it a new rule revision (the r number in its SV-…_rule id) and its title, severity, check text, fix text, discussion, CCIs or other fields changed — the same comparison STIG Compare makes. Added checks are new V-numbers; removed checks are V-numbers V1R5 no longer has.
Comparing other releases, or this one against an older release? Pick any two in STIG Compare.