{"description": "To configure USBGuard daemon to log via Linux Audit\n(as opposed directly to a file),\n<tt>AuditBackend</tt> option in <tt>/etc/usbguard/usbguard-daemon.conf</tt>\nneeds to be set to <tt>LinuxAudit</tt>.", "rationale": "Using the Linux Audit logging allows for centralized trace\nof events.", "severity": "low", "references": {"nist": ["AU-2", "CM-8(3)", "IA-3"], "ospp": ["FMT_SMF_EXT.1"], "srg": ["SRG-OS-000062-GPOS-00031", "SRG-OS-000471-GPOS-00215", "SRG-APP-000141-CTR-000315"]}, "control_references": {}, "components": [], "identifiers": {}, "ocil_clause": "AuditBackend is not set to LinuxAudit", "ocil": "To verify that Linux Audit logging is enabled for the USBGuard daemon,\nrun the following command:\n<pre>$ sudo grep AuditBackend /etc/usbguard/usbguard-daemon.conf</pre>\nThe output should be\n<pre>AuditBackend=LinuxAudit</pre>", "oval_external_content": null, "fixtext": "Configure Ubuntu 22.04 USBGuard AuditBackend to use the audit system.\n\nAdd or edit the following line in /etc/usbguard/usbguard-daemon.conf:\n\nAuditBackend=LinuxAudit", "checktext": "", "vuldiscussion": "", "srg_requirement": "Ubuntu 22.04 Must Provide Audit Record Generation Capability For Organization Defined Auditable Events For All Operating System Components", "warnings": [], "conflicts": [], "requires": [], "policy_specific_content": {"stig": {"srg_requirement": "Ubuntu 22.04 must enable Linux audit logging for the USBGuard daemon.", "vuldiscussion": "Without the capability to generate audit records, it would be difficult to establish, correlate, and investigate the events relating to an incident or identify those responsible for one.\n\nIf auditing is enabled late in the startup process, the actions of some startup processes may not be audited. Some audit systems also maintain state information only available if auditing is enabled before a given process is created.\n\nAudit records can be generated from various components within the information system (e.g., module or policy filter).\n\nThe list of audited events is the set of events for which audits are to be generated. This set of events is typically a subset of the list of all events for which the system is capable of generating audit records.\n\nDOD has defined the list of events for which Ubuntu 22.04 will provide an audit record generation capability as the following:\n\n1) Successful and unsuccessful attempts to access, modify, or delete privileges, security objects, security levels, or categories of information (e.g., classification levels);\n\n2) Access actions, such as successful and unsuccessful logon attempts, privileged activities or other system-level access, starting and ending time for user access to the system, concurrent logons from different workstations, successful and unsuccessful accesses to objects, all program initiations, and all direct access to the information system;\n\n3) All account creations, modifications, disabling, and terminations; and\n\n4) All kernel module load, unload, and restart actions.", "checktext": "To verify that Linux Audit logging is enabled for the USBGuard daemon with the following command:\n\n$ sudo grep AuditBackend /etc/usbguard/usbguard-daemon.conf\n\nAuditBackend=LinuxAudit\n\nIf \"AuditBackend\" is not set to \"LinuxAudit\", this is a finding.\n\nIf the system is virtual machine with no virtual or physical USB peripherals attached, this is not a finding.", "fixtext": "Configure Ubuntu 22.04 USBGuard AuditBackend to use the audit system.\n\nAdd or edit the following line in /etc/usbguard/usbguard-daemon.conf\n\nAuditBackend=LinuxAudit"}}, "platform": "package[usbguard]", "platforms": ["package[usbguard]"], "sce_metadata": {}, "inherited_platforms": ["not_s390x_arch and system_with_kernel"], "cpe_platform_names": ["package_usbguard"], "inherited_cpe_platform_names": ["not_s390x_arch_and_system_with_kernel"], "bash_conditional": null, "fixes": {}, "title": "Log USBGuard daemon audit events using Linux Audit", "definition_location": "/aptdata/openscap/scap-security-guide/linux_os/guide/services/usbguard/configure_usbguard_auditbackend/rule.yml", "template": {"name": "key_value_pair_in_file", "vars": {"path": "/etc/usbguard/usbguard-daemon.conf", "prefix_regex": "^[ \\\\t]*", "key": "AuditBackend", "value": "LinuxAudit", "sep": "=", "sep_regex": "=", "app": "usbguard"}, "backends": {}}}