{"description": "SSHD should follow the system cryptographic policy.\nIn order to accomplish this the SSHD configuration should include the configuration file provided by the system crypto policy.\nThe following line should be present in <tt>/etc/ssh/sshd_config</tt> or in a file included by this file (a file within the <tt>/etc/ssh/sshd_config.d</tt> directory):\n<pre>Include /etc/crypto-policies/back-ends/opensshserver.config</pre>", "rationale": "Without cryptographic integrity protections, information can be altered by unauthorized users without detection.", "severity": "medium", "references": {"nist": ["AC-17 (2)"], "srg": ["SRG-OS-000250-GPOS-00093"]}, "control_references": {}, "components": [], "identifiers": {}, "ocil_clause": null, "ocil": null, "oval_external_content": null, "fixtext": "Configure the Ubuntu 22.04 SSH daemon to use systemwide crypto policies.\nReinstall OpenSSH server package contents with the following command:\n<pre>sudo dnf -y remove openssh-server && sudo dnf -y install openssh-server</pre>", "checktext": "Verify that Ubuntu 22.04 implements DOD-approved encryption ciphers for SSH connections.\nVerify that the SSH configuration files include the path to the systemwide policy with the following command:\n<pre>sudo grep -R \"Include /etc/ssh/sshd_config\"  /etc/ssh/sshd_config.d/\n\n/etc/ssh/sshd_config:Include /etc/ssh/sshd_config.d/*.conf\n/etc/ssh/sshd_config.d/50-redhat.conf:Include /etc/crypto-policies/back-ends/opensshserver.config</pre>\nIf \"Include /etc/ssh/sshd_config.d/*.conf\" or \"Include /etc/crypto-policies/back-ends/opensshserver.config\" are not included in the system sshd config or if the file \"/etc/ssh/sshd_config.d/50-redhat.conf\" is missing, this is a finding.", "vuldiscussion": "", "srg_requirement": "", "warnings": [{"general": "There is no automated remediation because recommended action could severely disrupt the system and might not be efficient in fixing the problem."}], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 must implement DOD-approved encryption ciphers to protect the confidentiality of SSH connections.", "vuldiscussion": "Without cryptographic integrity protections, information can be altered by unauthorized users without detection.\n\nRemote access (e.g., RDP) is access to DOD 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.\n\nCryptographic 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.\n\nUbuntu 22.04 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.", "checktext": "Verify that Ubuntu 22.04 implements DOD-approved encryption ciphers for SSH connections.\n\nVerify that the SSH configuration files include the path to the systemwide policy with the following command:\n\n$ sudo grep -R Include /etc/ssh/sshd_config /etc/ssh/sshd_config.d/\n\n/etc/ssh/sshd_config:Include /etc/ssh/sshd_config.d/*.conf\n/etc/ssh/sshd_config.d/50-redhat.conf:Include /etc/crypto-policies/back-ends/opensshserver.config\n\nIf \"Include /etc/ssh/sshd_config.d/*.conf\" or \"Include /etc/crypto-policies/back-ends/opensshserver.config\" are not included in the system sshd config or if the file \"/etc/ssh/sshd_config.d/50-redhat.conf\" is missing, this is a finding.", "fixtext": "Configure the Ubuntu 22.04 SSH daemon to use systemwide crypto policies.\n\nReinstall OpenSSH client package contents with the following command:\n\n$ sudo dnf -y reinstall openssh"}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": ["system_with_kernel"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "SSHD Must Include System Crypto Policy Config File", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/services/ssh/ssh_server/sshd_include_crypto_policy/rule.yml", "template": null}