Skip to content
Back to skills

Cis Apache24 12.1

BSecurity

Ensure the AppArmor Framework Is Enabled (Automated)

  • 3,723 stars
  • 0 votes
  • 0 copies
  • 2 views
  • Added September 3, 2026
securitygobashgitsecurity

Security analysis

B75/100
  • criticalModifies startup scripts or system services for persistence

Pro shows the line behind each finding and how to fix it

Scanned September 3, 2026

npx -y skills add CyberStrikeus/CyberStrike --skill cis-apache24-12.1 --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Cis Apache24 12.1?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Cis Apache24 12.1
[![Security: B — Skills Directory](https://www.skillsdirectory.com/api/skills/cyberstrikeus-cis-apache24-12-1/badge)](https://www.skillsdirectory.com/skills/cyberstrikeus-cis-apache24-12-1)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: cis-apache24-12.1
description: "Ensure the AppArmor Framework Is Enabled (Automated)"
category: cis-apache
version: "2.3.0"
author: cyberstrike-official
tags: [cis, apache, linux, apparmor, mac, mandatory-access-control]
cis_id: "12.1"
cis_benchmark: "CIS Apache HTTP Server 2.4 Benchmark v2.3.0"
tech_stack: [linux, apache]
cwe_ids: []
chains_with: []
prerequisites: []
severity_boost: {}
---

# Ensure the AppArmor Framework Is Enabled (Automated)

## Profile Applicability

- Level 2

## 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.

## Rationale

Web applications and web services continue to be one of the leading attack vectors for black-hat criminals to gain access to information and servers. The threat is high because web servers are often externally accessible and typically have the greatest share of server-side vulnerabilities. The AppArmor mandatory access controls provide a much stronger security model which can be used to implement a deny-by-default model which only allows what is explicitly permitted.

## Audit

Perform the following steps to determine if the recommended state is implemented:

Use the aa-status command with the `--enabled` option to check that AppArmor is enabled. If AppArmor is enabled the command will return a zero (0) exit code for success. The `&& echo Enabled` is added to the command below to provide positive feedback. If no text is echoed, then AppArmor is not enabled.

```bash
# aa-status --enabled && echo Enabled
Enabled
```

## Remediation

Perform the following to implement the recommended state:

- If the aa-status command is not found, then the AppArmor package is not installed and needs to be installed using the appropriate the Linux distribution package management. For example:
  - `# apt-get install apparmor`
  - `# apt-get install libapache2-mod-apparmor`
- To enable the AppArmor framework run the `init.d` script as shown below.
  - `# /etc/init.d/apparmor start`

## Default Value

AppArmor is enabled by default.

## References

1. https://help.ubuntu.com/community/AppArmor

## CIS Controls

**v8:**

- 2.5 Allowlist Authorized Software
  - Use technical controls, such as application allowlisting, to ensure that only authorized software can execute or be accessed. Reassess bi-annually, or more frequently.
- 2.6 Allowlist Authorized Libraries
  - Use technical controls to ensure that only authorized software libraries, such as specific .dll, .ocx, .so, etc., files, are allowed to load into a system process. Block unauthorized libraries from loading into a system process. Reassess bi-annually, or more frequently.
- 2.7 Allowlist Authorized Scripts
  - Use technical controls, such as digital signatures and version control, to ensure that only authorized scripts, such as specific .ps1, .py, etc., files, are allowed to execute. Block unauthorized scripts from executing. Reassess bi-annually, or more frequently.

**v7:**

- 2.7 Utilize Application Whitelisting
  - Utilize application whitelisting technology on all assets to ensure that only authorized software executes and all unauthorized software is blocked from executing on assets.

## Profile

- Level 2

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

View all in security →

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.