Ensure all AppArmor Profiles are in enforce or complain mode
Scanned 9/3/2026
Install to Claude Code
npx -y skills add CyberStrikeus/CyberStrike --skill cis-ubuntu1804-v220-1-6-1-3 --agent claude-codeInstalls into .claude/skills of the current project.
Are you the author of Cis Ubuntu1804 V220 1 6 1 3?
Add the live security badge to your README — it updates automatically with every re-scan.
[](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-ubuntu1804-v220-1-6-1-3)More formats (shields.io, HTML) on the badges page.
---
name: cis-ubuntu1804-v220-1-6-1-3
description: "Ensure all AppArmor Profiles are in enforce or complain mode"
category: cis-iam
version: "2.2.0"
author: cyberstrike-official
tags: [cis, ubuntu, linux, ubuntu-18.04, apparmor, profiles, enforce, complain]
cis_id: "1.6.1.3"
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.3 Ensure all AppArmor Profiles are in enforce or complain mode (Automated)
## Profile Applicability
- Level 1 - Server
- Level 1 - 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 command and verify that profiles are loaded, and are in either enforce or complain mode:
```bash
apparmor_status | grep profiles
```
Review output and ensure that profiles are loaded, and in either enforce or complain mode:
```
37 profiles are loaded.
35 profiles are in enforce mode.
2 profiles are in complain mode.
4 processes have profiles defined.
```
Run the following command and verify no processes are unconfined:
```bash
apparmor_status | grep processes
```
## Expected Result
```
4 processes have profiles defined.
4 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/*
```
OR
Run the following command to set all profiles to complain mode:
```bash
aa-complain /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 |
| --------------------------- | ------- | ----------- |
| T1497 | TA0005 | |
Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.
No comments yet. Be the first to comment!