{"description": "This rule verifies that that the SSH login confirmation banner is set \ncorrectly.\n\nThe DoD required text is:\n<br /><br />\n<tt>if [ -n \"$SSH_CLIENT\" ] || [ -n \"$SSH_TTY\" ]; then<br/>\n        while true; do<br/>\n            read -p \"<br/>\nYou are accessing a U.S. Government (USG) Information System (IS) that is provided for\nUSG-authorized use only.<br/>\nBy using this IS (which includes any device attached to this IS), you consent to the\nfollowing conditions:<br/>\n-The USG routinely intercepts and monitors communications on this IS for purposes\nincluding, but not limited to, penetration testing, COMSEC monitoring, network\noperations and defense, personnel misconduct (PM), law enforcement (LE), and\ncounterintelligence (CI) investigations.<br/>\n-At any time, the USG may inspect and seize data stored on this IS.<br/>\n-Communications using, or data stored on, this IS are not private, are subject to routine\nmonitoring, interception, and search, and may be disclosed or used for any USG-\nauthorized purpose.<br/>\n-This IS includes security measures (e.g., authentication and access controls) to protect\nUSG interests--not for your personal benefit or privacy.<br/>\n-Notwithstanding the above, using this IS does not constitute consent to PM, LE or CI\ninvestigative searching or monitoring of the content of privileged communications, or\nwork product, related to personal representation or services by attorneys,\npsychotherapists, or clergy, and their assistants. Such communications and work product\nare private and confidential. See User Agreement for details.<br/>\nDo you agree? [y/N] \" yn<br/>\n            case $yn in\n                [Yy]* ) break ;;<br/>\n                [Nn]* ) exit 1 ;;<br/>\n            esac<br/>\n        done<br/>\n    fi<br/>\n</tt>", "rationale": "Display of a standardized and approved use notification before granting\naccess to the operating system ensures privacy and security notification\nverbiage used is consistent with applicable federal laws, Executive Orders,\ndirectives, policies, regulations, standards, and guidance.", "severity": "medium", "references": {}, "control_references": {}, "components": [], "identifiers": {}, "ocil_clause": "it does not display the required banner", "ocil": "To check if the system motd banner is compliant,\nrun the following command:\n<pre>$ less /etc/profile.d/ssh_confirm.sh</pre>", "oval_external_content": null, "fixtext": "", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": [], "cpe_platform_names": [], "inherited_cpe_platform_names": [], "bash_conditional": null, "fixes": {}, "title": "Enable the SSH login confirmation banner", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/accounts/accounts-banners/banner_etc_profiled_ssh_confirm/rule.yml", "template": null}