{"description": "The DisableForwarding parameter disables all forwarding features, including X11,\nssh-agent(1), TCP and StreamLocal. This option overrides all other forwarding-related\noptions and may simplify restricted configurations.\n<br/>\nTo explicitly disable SSHD forwarding, add or correct the following line in \n\n<tt>/etc/ssh/sshd_config.d/00-complianceascode-hardening.conf</tt>:\n\n<pre>DisableForwarding yes</pre>", "rationale": "Disable ssh forwarding unless there is an operational requirement to use it. \nLeaving port forwarding enabled can expose the organization to security risks.", "severity": "medium", "references": {"cis": ["5.1.8"]}, "control_references": {"cis": ["5.1.8"]}, "components": [], "identifiers": {}, "ocil_clause": "The DisableForwarding option doesn't exist or isn't set to yes", "ocil": "To determine how the SSH daemon's <tt>DisableForwarding</tt> option is set, run the following command:\n\n<pre>$ sudo grep -i DisableForwarding /etc/ssh/sshd_config.d/00-complianceascode-hardening.conf</pre>\n<pre>$ sudo grep -i DisableForwarding /etc/ssh/sshd_config.d/01-complianceascode-reinforce-os-defaults.conf</pre>\n\nIf a line indicating <tt>yes</tt> is returned, then the required value is set.", "oval_external_content": null, "fixtext": "", "checktext": "", "vuldiscussion": "", "srg_requirement": "", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "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": "Disable SSH Forwarding", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/services/ssh/ssh_server/sshd_disable_forwarding/rule.yml", "template": {"name": "sshd_lineinfile", "vars": {"parameter": "DisableForwarding", "value": "yes", "datatype": "string"}, "backends": {}}}