{"description": "\nTo properly set the owner of <code>/etc/ssh/sshd_config</code>, run the command:\n\n  <pre>$ sudo chown root /etc/ssh/sshd_config </pre>\n  ", "rationale": "Service configuration files enable or disable features of their respective\nservices that if configured incorrectly can lead to insecure and vulnerable\nconfigurations. Therefore, service configuration files should be owned by the\ncorrect group to prevent unauthorized changes.", "severity": "medium", "references": {"cis-csc": ["12", "13", "14", "15", "16", "18", "3", "5"], "cobit5": ["APO01.06", "DSS05.04", "DSS05.07", "DSS06.02"], "isa-62443-2009": ["4.3.3.7.3"], "isa-62443-2013": ["SR 2.1", "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"], "nerc-cip": ["CIP-003-8 R5.1.1", "CIP-003-8 R5.3", "CIP-004-6 R2.3", "CIP-007-3 R2.1", "CIP-007-3 R2.2", "CIP-007-3 R2.3", "CIP-007-3 R5.1", "CIP-007-3 R5.1.1", "CIP-007-3 R5.1.2"], "nist": ["AC-17(a)", "CM-6(a)", "AC-6(1)"], "nist-csf": ["PR.AC-4", "PR.DS-5"], "srg": ["SRG-OS-000480-GPOS-00227"], "anssi": ["R50"], "cis": ["5.1.1"]}, "control_references": {"anssi": ["R50"], "cis": ["5.1.1"]}, "components": [], "identifiers": {}, "ocil_clause": "/etc/ssh/sshd_config does not have an owner of root", "ocil": "To check the ownership of <code>/etc/ssh/sshd_config</code>,\nrun the command:\n<pre>$ ls -lL /etc/ssh/sshd_config</pre>\nIf properly configured, the output should indicate the following owner:\n<code>root</code>", "oval_external_content": null, "fixtext": " Change the owner of the file /etc/ssh/sshd_config to root by running the following command:\n$ sudo chown root /etc/ssh/sshd_config", "checktext": "", "vuldiscussion": "", "srg_requirement": " The Ubuntu 22.04 /etc/ssh/sshd_config file must be owned by root.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "The Ubuntu 22.04 SSH server configuration file must be owned by root.", "vuldiscussion": "Service configuration files enable or disable features of their respective services, which if configured incorrectly, can lead to insecure and vulnerable configurations. Therefore, service configuration files must be owned by the correct group to prevent unauthorized changes.", "checktext": "Verify the ownership of the \"/etc/ssh/sshd_config\" file and the contents of \"/etc/ssh/sshd_config.d\" with the following command:\n\n$ sudo find /etc/ssh/sshd_config /etc/ssh/sshd_config.d -exec stat -c \"%U %n\" {} \\;\n\nroot /etc/ssh/sshd_config\nroot /etc/ssh/sshd_config.d\nroot /etc/ssh/sshd_config.d/50-cloud-init.conf\nroot /etc/ssh/sshd_config.d/50-redhat.conf\n\nIf the \"/etc/ssh/sshd_config\" file or \"/etc/ssh/sshd_config.d\" or any files in the \"sshd_config.d\" directory do not have an owner of \"root\", this is a finding.", "fixtext": "Configure the \"/etc/ssh/sshd_config\" file and the contents of \"/etc/ssh/sshd_config.d\" to be owned by root with the following command:\n\n$ sudo chown -R root /etc/ssh/sshd_config /etc/ssh/sshd_config.d"}}, "platform": "system_with_kernel", "platforms": ["system_with_kernel"], "sce_metadata": {}, "inherited_platforms": [], "cpe_platform_names": ["system_with_kernel"], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Verify Owner on SSH Server config file", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/services/ssh/file_owner_sshd_config/rule.yml", "template": {"name": "file_owner", "vars": {"filepath": "/etc/ssh/sshd_config", "uid_or_name": "0"}, "backends": {}}}