{"description": "The SSH server service, sshd, is commonly needed.\n\nThe <code>sshd</code> service can be enabled with the following command:\n<pre>$ sudo systemctl enable sshd.service</pre>", "rationale": "Without protection of the transmitted information, confidentiality, and\nintegrity may be compromised because unprotected communications can be\nintercepted and either read or altered.\n<br /><br />\nThis checklist item applies to both internal and external networks and all types\nof information system components from which information can be transmitted (e.g., servers,\nmobile devices, notebook computers, printers, copiers, scanners, etc). Communication paths\noutside the physical protection of a controlled boundary are exposed to the possibility\nof interception and modification.", "severity": "medium", "references": {"cis-csc": ["13", "14"], "cobit5": ["APO01.06", "DSS05.02", "DSS05.04", "DSS05.07", "DSS06.02", "DSS06.06"], "cui": ["3.1.13", "3.5.4", "3.13.8"], "isa-62443-2013": ["SR 3.1", "SR 3.8", "SR 4.1", "SR 4.2", "SR 5.2"], "iso27001-2013": ["A.10.1.1", "A.11.1.4", "A.11.1.5", "A.11.2.1", "A.13.1.1", "A.13.1.3", "A.13.2.1", "A.13.2.3", "A.13.2.4", "A.14.1.2", "A.14.1.3", "A.6.1.2", "A.7.1.1", "A.7.1.2", "A.7.3.1", "A.8.2.2", "A.8.2.3", "A.9.1.1", "A.9.1.2", "A.9.2.3", "A.9.4.1", "A.9.4.4", "A.9.4.5"], "nist": ["CM-6(a)", "SC-8", "SC-8(1)", "SC-8(2)", "SC-8(3)", "SC-8(4)"], "nist-csf": ["PR.DS-2", "PR.DS-5"], "srg": ["SRG-OS-000423-GPOS-00187", "SRG-OS-000424-GPOS-00188", "SRG-OS-000425-GPOS-00189", "SRG-OS-000426-GPOS-00190"], "stigid": ["UBTU-22-255015"], "stigref": ["SV-260524r958908_rule"]}, "control_references": {"stigid": ["UBTU-22-255015"]}, "components": [], "identifiers": {}, "ocil_clause": "sshd service is disabled", "ocil": "\n\nRun the following command to determine the current status of the\n<code>sshd</code> service:\n<pre>$ sudo systemctl is-active sshd</pre>\nIf the service is running, it should return the following: <pre>active</pre>", "oval_external_content": null, "fixtext": "To enable the sshd service run the following command:\n\n$ sudo systemctl enable --now sshd", "checktext": "", "vuldiscussion": "", "srg_requirement": "The Ubuntu 22.04 service sshd must be enabled.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "All Ubuntu 22.04 networked systems must have and implement SSH to protect the confidentiality and integrity of transmitted and received information, as well as information during preparation for transmission.", "vuldiscussion": "Without protection of the transmitted information, confidentiality and integrity may be compromised because unprotected communications can be intercepted and either read or altered.\n\nThis requirement applies to both internal and external networks and all types of information system components from which information can be transmitted (e.g., servers, mobile devices, notebook computers, printers, copiers, scanners, and facsimile machines). Communication paths outside the physical protection of a controlled boundary are exposed to the possibility of interception and modification.\n\nProtecting the confidentiality and integrity of organizational information can be accomplished by physical means (e.g., employing physical distribution systems) or by logical means (e.g., employing cryptographic techniques). If physical means of protection are employed, then logical means (cryptography) do not have to be employed, and vice versa.", "checktext": "Verify that \"sshd\" is active with the following command:\n\n$ systemctl is-active sshd\n\nactive\n\nIf the \"sshd\" service is not active, this is a finding.", "fixtext": "To enable the sshd service run the following command:\n\n$ systemctl enable --now sshd"}}, "platform": "system_with_kernel", "platforms": ["system_with_kernel"], "sce_metadata": {"check-import": "stdout", "platform": ["multi_platform_all"], "environment": "any", "filename": "service_sshd_enabled.sh", "relative_path": "ubuntu2204/checks/sce/service_sshd_enabled.sh"}, "inherited_platforms": [], "cpe_platform_names": ["system_with_kernel"], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Enable the OpenSSH Service", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/services/ssh/service_sshd_enabled/rule.yml", "template": {"name": "service_enabled", "vars": {"servicename": "ssh", "packagename": "openssh-server"}, "backends": {}}}