{"description": "SSH server public keys, files that match the <code>/etc/ssh/*.pub</code> glob, must be owned\nby <code>root</code> user.", "rationale": "If a public host key file is modified by an unauthorized user, the SSH service\nmay be compromised.", "severity": "medium", "references": {"anssi": ["R50"]}, "control_references": {"anssi": ["R50"]}, "components": [], "identifiers": {}, "ocil_clause": "/etc/ssh/*.pub does not have an owner of root", "ocil": "To check the ownership of <code>/etc/ssh/*.pub</code>,\nrun the command:\n<pre>$ ls -lL /etc/ssh/*.pub</pre>\nIf properly configured, the output should indicate the following owner:\n<code>root</code>", "oval_external_content": null, "fixtext": "", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [{"general": "Remediation is not possible at bootable container build time because SSH host\nkeys are generated post-deployment."}], "conflicts": [], "requires": [], "policy_specific_content": {}, "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 Ownership on SSH Server Public *.pub Key Files", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/services/ssh/file_ownership_sshd_pub_key/rule.yml", "template": {"name": "file_owner", "vars": {"filepath": ["/etc/ssh/"], "file_regex": ["^.*\\.pub$"], "uid_or_name": "0"}, "backends": {}}}