π§Linux AppArmor Labs
π― Objective
π§° Prerequisites
Install required packages
sudo apt update
sudo apt install apparmor-utils auditdConfirm AppArmor is enabled
sudo aa-statusapparmor module is loaded.
171 profiles are loaded.
76 profiles are in enforce mode.
<...>πΉ Lab 1: View Active AppArmor Profiles
πΉ Lab 2: Put an Application in Complain Mode
Step 1: Switch a known app to complain mode
Step 2: Run the app and view logs
πΉ Lab 3: Enforce a Profile and Trigger a Denial
Step 1: Switch to enforce mode
Step 2: Trigger restricted behavior
πΉ Lab 4: Write and Load a Custom Profile
Step 1: Create a test script
Step 2: Run it once (it should succeed with sudo)
sudo)Step 3: Generate a new profile
πΉ Lab 5: View and Edit AppArmor Profiles
πΉ Lab 6: Monitor and Audit Denials
β
Wrap-Up
Last updated