{"description": "The sudo <tt>NOEXEC</tt> tag, when specified, prevents user executed\ncommands from executing other commands, like a shell for example.\nThis should be enabled by making sure that the <tt>NOEXEC</tt> tag exists in\n<tt>/etc/sudoers</tt> configuration file or any sudo configuration snippets\nin <tt>/etc/sudoers.d/</tt>.", "rationale": "Restricting the capability of sudo allowed commands to execute sub-commands\nprevents users from running programs with privileges they wouldn't have otherwise.", "severity": "high", "references": {"anssi": ["R39"]}, "control_references": {"anssi": ["R39"]}, "components": [], "identifiers": {}, "ocil_clause": "noexec is not enabled in sudo", "ocil": "To determine if <tt>NOEXEC</tt> has been configured for sudo, run the following command:\n<pre>$ sudo grep -ri \"^[\\s]*Defaults.*\\bnoexec\\b.*\" /etc/sudoers /etc/sudoers.d/</pre>\nThe command should return a matching output.", "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": "Ensure Privileged Escalated Commands Cannot Execute Other Commands - sudo NOEXEC", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/software/sudo/sudo_add_noexec/rule.yml", "template": {"name": "sudo_defaults_option", "vars": {"option": "noexec"}, "backends": {}}}