{"description": "The sudo <tt>ignore_dot</tt> tag, when specified, will ignore the current directory\nin the PATH environment variable.\nThis should be enabled by making sure that the <tt>ignore_dot</tt> tag exists in\n<tt>/etc/sudoers</tt> configuration file or any sudo configuration snippets\nin <tt>/etc/sudoers.d/</tt>.", "rationale": "Ignoring the commands in the user's current directory prevents an attacker from executing commands\ndownloaded locally.", "severity": "medium", "references": {"anssi": ["R39"]}, "control_references": {"anssi": ["R39"]}, "components": [], "identifiers": {}, "ocil_clause": "ignore_dot is not enabled in sudo", "ocil": "To determine if <tt>ignore_dot</tt> has been configured for sudo, run the following command:\n<pre>$ sudo grep -ri \"^[\\s]*Defaults.*\\bignore_dot\\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 sudo Ignores Commands In Current Dir - sudo ignore_dot", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/system/software/sudo/sudo_add_ignore_dot/rule.yml", "template": {"name": "sudo_defaults_option", "vars": {"option": "ignore_dot"}, "backends": {}}}