TMAegisBeta
More rules for apache

Apache HTTP Server

TMA-APACHE-12.1

Ensure the AppArmor Framework Is Enabled

LowLevel 2Automatedapache

Description

AppArmor is a Linux kernel security module that provides a named based mandatory access control with security policies. AppArmor can enforce rules on programs for file access and network connections and restrict actions based on defined policies. aa-status --enabled must succeed (run as root). Not applicable without /etc/apparmor.d.

How it is checked

Audit method: Shell command

shell
command -v aa-status >/dev/null || exit 1; aa-status --enabled 2>/dev/null && echo compliant || echo noncompliant
Expected output
compliant

How it is fixed

Fix method: Guidance or infrastructure patch

Install and enable AppArmor (apt install apparmor apparmor-utils; systemctl enable --now apparmor).

Properties

Operating systems
Any
Tags
apacheapparmor
Reference
CIS Apache HTTP Server 2.4 Benchmark v2.4.0 - 12.1 Ensure the AppArmor Framework Is Enabled

Check this host

Run this on a machine you are allowed to audit. The scan is read-only.

shell
tmaegis scan --target apache --level 2