{"description": "The sudo <tt>requiretty</tt> tag, when specified, will only execute sudo\ncommands from users logged in to a real tty.\nThis should be enabled by making sure that the <tt>requiretty</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 use cases in which a user is allowed to execute sudo commands\nreduces the attack surface.", "severity": "medium", "references": {"anssi": ["R39"]}, "control_references": {"anssi": ["R39"]}, "components": [], "identifiers": {}, "ocil_clause": "requiretty is not enabled in sudo", "ocil": "To determine if <tt>requiretty</tt> has been configured for sudo, run the following command:\n<pre>$ sudo grep -ri \"^[\\s]*Defaults.*\\brequiretty\\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 Only Users Logged In To Real tty Can Execute Sudo - sudo requiretty", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/software/sudo/sudo_add_requiretty/rule.yml", "template": {"name": "sudo_defaults_option", "vars": {"option": "requiretty"}, "backends": {}}}