{"description": "At a minimum, the audit system should collect administrator actions\nfor all users and root.\n\n\n\n\nIf the <tt>auditd</tt> daemon is configured to use the <tt>augenrules</tt>\nprogram to read audit rules during daemon startup (the default), add the\nfollowing lines to a file with suffix <tt>.rules</tt> in the\ndirectory <tt>/etc/audit/rules.d</tt>:\n\n<pre>-w /etc/cron.d/ -p wa -k cronjobs</pre>\n\nIf the <tt>auditd</tt> daemon is configured to use the <tt>auditctl</tt>\nutility to read audit rules during daemon startup, add the following lines to\n<tt>/etc/audit/audit.rules</tt>:\n\n<pre>-w /etc/cron.d/ -p wa -k cronjobs</pre>", "rationale": "The actions taken by system administrators should be audited to keep a record\nof what was executed on the system, as well as, for accountability purposes.\nEditing the sudoers file may be sign of an attacker trying to\nestablish persistent methods to a system, auditing the editing of the sudoers\nfiles mitigates this risk.", "severity": "medium", "references": {"srg": ["SRG-OS-000471-GPOS-00215"]}, "control_references": {}, "components": [], "identifiers": {}, "ocil_clause": "the command does not return a line, or the line is commented out", "ocil": "\nVerify Ubuntu 22.04 generates audit records for all events that affect \"/etc/cron.d/\" with the following command:\n\n$ sudo auditctl -l | grep /etc/cron.d/\n\n-w /etc/cron.d/ -p wa -k cronjobs", "oval_external_content": null, "fixtext": "Configure Ubuntu 22.04 to generate audit records for all account creations, modifications, disabling, and termination events that <tt>\"/etc/cron.d/\"</tt>.\nAdd or update the following file system rule to <tt>\"/etc/audit/rules.d/audit.rules\"</tt>:\n-w /etc/cron.d/ -p wa -k cronjobs\n\nThe audit daemon must be restarted for the changes to take effect. ", "checktext": "", "vuldiscussion": "", "srg_requirement": " Ubuntu 22.04 must generate audit records for all account creations, modifications, disabling, and termination events that affect /etc/cron.d/.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": ["package[audit]", "system_with_kernel"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["package_audit", "system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Ensure auditd Collects Changes to Cron Jobs - /etc/cron.d/", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/auditing/auditd_configure_rules/audit_rules_etc_cron_d/rule.yml", "template": {"name": "audit_rules_watch", "vars": {"path": "/etc/cron.d/", "key": "cronjobs"}, "backends": {}}}