Release readiness checklist
Check whether a scoped change is ready to ship and what still needs verification.
5,509,259 AI resources indexedWorking toward the world’s largest AI resource index.
Ensure all AppArmor Profiles are enforcing
---
name: cis-ubuntu1804-v220-1-6-1-4-48a56eeabf3c
description: "Ensure all AppArmor Profiles are enforcing"
category: cis-iam
version: "2.2.0"
author: cyberstrike-official
tags: [cis, ubuntu, linux, ubuntu-18.04, apparmor, profiles, enforce]
cis_id: "1.6.1.4"
cis_benchmark: "CIS Ubuntu Linux 18.04 LTS Benchmark v2.2.0"
tech_stack: [ubuntu, linux]
cwe_ids: []
chains_with: []
prerequisites: []
severity_boost: {}
---
# 1.6.1.4 Ensure all AppArmor Profiles are enforcing (Automated)
## Profile Applicability
- Level 2 - Server
- Level 2 - Workstation
## Description
AppArmor profiles define what resources applications are able to access.
## Rationale
Security configuration requirements vary from site to site. Some sites may mandate a policy that is stricter than the default policy, which is perfectly acceptable. This item is intended to ensure that any policies that exist on the system are activated.
## Audit Procedure
### Command Line
Run the following commands and verify that profiles are loaded and are not in complain mode:
```bash
apparmor_status | grep profiles
```
Review output and ensure that profiles are loaded, and in enforce mode:
```
34 profiles are loaded.
34 profiles are in enforce mode.
0 profiles are in complain mode.
2 processes have profiles defined.
```
Run the following command and verify that no processes are unconfined:
```bash
apparmor_status | grep processes
```
## Expected Result
```
2 processes have profiles defined.
2 processes are in enforce mode.
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.
```
## Remediation
### Command Line
Run the following command to set all profiles to enforce mode:
```bash
aa-enforce /etc/apparmor.d/*
```
Note: Any unconfined processes may need to have a profile created or activated for them and then be restarted.
## References
1. NIST SP 800-53 Rev. 5: AC-3
## CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
| ---------------- | ----------------------------------------------------- | ---- | ---- | ---- |
| v8 | 3.3 Configure Data Access Control Lists | X | X | X |
| v7 | 14.6 Protect Information through Access Control Lists | X | X | X |
## MITRE ATT&CK Mappings
| Techniques / Sub-techniques | Tactics | Mitigations |
| --------------------------------------------- | ------- | ----------- |
| T1068, T1068.000, T1565, T1565.001, T1565.003 | TA0005 | M1048 |
---
name: cis-ubuntu1804-v220-1-6-1-4-48a56eeabf3c
description: "Ensure all AppArmor Profiles are enforcing"
category: cis-iam
version: "2.2.0"
author: cyberstrike-official
tags: [cis, ubuntu, linux, ubuntu-18.04, apparmor, profiles, enforce]
cis_id: "1.6.1.4"
cis_benchmark: "CIS Ubuntu Linux 18.04 LTS Benchmark v2.2.0"
tech_stack: [ubuntu, linux]
cwe_ids: []
chains_with: []
prerequisites: []
severity_boost: {}
---
# 1.6.1.4 Ensure all AppArmor Profiles are enforcing (Automated)
## Profile Applicability
- Level 2 - Server
- Level 2 - Workstation
## Description
AppArmor profiles define what resources applications are able to access.
## Rationale
Security configuration requirements vary from site to site. Some sites may mandate a policy that is stricter than the default policy, which is perfectly acceptable. This item is intended to ensure that any policies that exist on the system are activated.
## Audit Procedure
### Command Line
Run the following commands and verify that profiles are loaded and are not in complain mode:
```bash
apparmor_status | grep profiles
```
Review output and ensure that profiles are loaded, and in enforce mode:
```
34 profiles are loaded.
34 profiles are in enforce mode.
0 profiles are in complain mode.
2 processes have profiles defined.
```
Run the following command and verify that no processes are unconfined:
```bash
apparmor_status | grep processes
```
## Expected Result
```
2 processes have profiles defined.
2 processes are in enforce mode.
0 processes are in complain mode.
0 processes are unconfined but have a profile defined.
```
## Remediation
### Command Line
Run the following command to set all profiles to enforce mode:
```bash
aa-enforce /etc/apparmor.d/*
```
Note: Any unconfined processes may need to have a profile created or activated for them and then be restarted.
## References
1. NIST SP 800-53 Rev. 5: AC-3
## CIS Controls
| Controls Version | Control | IG 1 | IG 2 | IG 3 |
| ---------------- | ----------------------------------------------------- | ---- | ---- | ---- |
| v8 | 3.3 Configure Data Access Control Lists | X | X | X |
| v7 | 14.6 Protect Information through Access Control Lists | X | X | X |
## MITRE ATT&CK Mappings
| Techniques / Sub-techniques | Tactics | Mitigations |
| --------------------------------------------- | ------- | ----------- |
| T1068, T1068.000, T1565, T1565.001, T1565.003 | TA0005 | M1048 |
Imported from the listed AgentSkill.sh category. Complete supplied package files and notices are retained. Required external tools and credentials are not installed. No bundled code was executed during import. Individual agent task behavior has not been tested.