Ubuntu 22.04 LTS must have the "apparmor" package installed.

STIG ID: UBTU-22-431010  |  SRG: SRG-OS-000312-GPOS-00124 |  Severity: medium |  CCI: CCI-001764,CCI-001774,CCI-002165 |  Vulnerability Id: V-260556 | 

Vulnerability Discussion

Control of program execution is a mechanism used to prevent execution of unauthorized programs. Some operating systems may provide a capability that runs counter to the mission or provides users with functionality that exceeds mission requirements. This includes functions and services installed at the operating system level.

Some of the programs, installed by default, may be harmful or may not be necessary to support essential organizational operations (e.g., key missions, functions). Removal of executable programs is not always possible; therefore, establishing a method of preventing program execution is critical to maintaining a secure system baseline.

Methods for complying with this requirement include restricting execution of programs in certain environments, while preventing execution in other environments; or limiting execution of certain program functionality based on organization-defined criteria (e.g., privileges, subnets, sandboxed environments, or roles).

Satisfies: SRG-OS-000312-GPOS-00124, SRG-OS-000368-GPOS-00154, SRG-OS-000370-GPOS-00155

Check

Verify Ubuntu 22.04 LTS has the "apparmor" package installed by using the following command:

$ dpkg -l | grep apparmor
ii apparmor 3.0.4-2ubuntu2.3 amd64 user-space parser utility for AppArmor

If the "apparmor" package is not installed, this is a finding.

Fix

Install the "appArmor" package by using the following command:

$ sudo apt-get install apparmor