{"description": "To configure Audit daemon to include local events in Audit logs, set\n<tt>local_events</tt> to <tt>yes</tt> in <tt>/etc/audit/auditd.conf</tt>.\nThis is the default setting.", "rationale": "If option <tt>local_events</tt> isn't set to <tt>yes</tt> only events from\nnetwork will be aggregated.", "severity": "medium", "references": {"nist": ["CM-6"], "srg": ["SRG-OS-000062-GPOS-00031", "SRG-OS-000480-GPOS-00227"], "ism": ["0582"]}, "control_references": {"ism": ["0582"]}, "components": [], "identifiers": {}, "ocil_clause": "local_events isn't set to yes", "ocil": "To verify that Audit Daemon is configured to include local events, run the\nfollowing command:\n<pre>$ sudo grep local_events /etc/audit/auditd.conf</pre>\nThe output should return the following:\n<pre>local_events = yes</pre>", "oval_external_content": null, "fixtext": "Edit the file \"/etc/audit/auditd.conf\" and add or edit the following line:\nlocal_events = yes", "checktext": "", "vuldiscussion": "", "srg_requirement": "The Ubuntu 22.04 must audit local events.", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 audit system must audit local events.", "vuldiscussion": "Without establishing what type of events occurred, the source of events, where events occurred, and the outcome of events, it would be difficult to establish, correlate, and investigate the events leading up to an outage or attack.\n\nIf option \"local_events\" isn't set to \"yes\" only events from network will be aggregated.", "checktext": "Verify that the Ubuntu 22.04 audit system is configured to audit local events with the following command:\n\n$ sudo grep local_events /etc/audit/auditd.conf\n\nlocal_events = yes\n\nIf \"local_events\" isn't set to \"yes\", if the command does not return a line, or the line is commented out, this is a finding.", "fixtext": "Configure Ubuntu 22.04 to generate audit records for local events by adding or updating the following line in \"/etc/audit/auditd.conf\":\n\nlocal_events = yes\n\nThe audit daemon must be restarted for the changes to take effect."}}, "platform": null, "platforms": [], "sce_metadata": {}, "inherited_platforms": ["system_with_kernel", "package[audit]"], "cpe_platform_names": [], "inherited_cpe_platform_names": ["system_with_kernel", "package_audit"], "bash_conditional": null, "fixes": {}, "title": "Include Local Events in Audit Logs", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/auditing/configure_auditd_data_retention/auditd_local_events/rule.yml", "template": {"name": "auditd_lineinfile", "vars": {"missing_parameter_pass": "false", "parameter": "local_events", "rule_id": "auditd_local_events", "value": "yes"}, "backends": {}}}