Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions components/apparmor.yml
Original file line number Diff line number Diff line change
@@ -1,14 +1,15 @@
groups:
- apparmor

Check failure on line 2 in components/apparmor.yml

View workflow job for this annotation

GitHub Actions / Yaml Lint on Changed yaml files

2:1 [indentation] wrong indentation: expected at least 1
name: apparmor
packages:
- apparmor

Check failure on line 5 in components/apparmor.yml

View workflow job for this annotation

GitHub Actions / Yaml Lint on Changed yaml files

5:1 [indentation] wrong indentation: expected at least 1
- apparmor-parser
rules:
- all_apparmor_profiles_enforced

Check failure on line 8 in components/apparmor.yml

View workflow job for this annotation

GitHub Actions / Yaml Lint on Changed yaml files

8:1 [indentation] wrong indentation: expected at least 1
- all_apparmor_profiles_in_enforce_complain_mode
- apparmor_configured
- grub2_enable_apparmor
- package_apparmor_installed
- package_apparmor-utils_installed
- package_pam_apparmor_installed

Check warning on line 15 in components/apparmor.yml

View workflow job for this annotation

GitHub Actions / Yaml Lint on Changed yaml files

15:1 [empty-lines] too many blank lines (1 > 0)
1 change: 1 addition & 0 deletions components/kernel.yml
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
groups:
- gcc_plugin

Check failure on line 2 in components/kernel.yml

View workflow job for this annotation

GitHub Actions / Yaml Lint on Changed yaml files

2:1 [indentation] wrong indentation: expected at least 1
- kernel_build_config
- network-ipv6
- network-kernel
name: kernel
packages:
- kernel

Check failure on line 8 in components/kernel.yml

View workflow job for this annotation

GitHub Actions / Yaml Lint on Changed yaml files

8:1 [indentation] wrong indentation: expected at least 1
rules:
- audit_rules_kernel_module_loading

Check failure on line 10 in components/kernel.yml

View workflow job for this annotation

GitHub Actions / Yaml Lint on Changed yaml files

10:1 [indentation] wrong indentation: expected at least 1
- audit_rules_kernel_module_loading_create
- audit_rules_kernel_module_loading_delete
- audit_rules_kernel_module_loading_finit
Expand Down Expand Up @@ -132,6 +132,7 @@
- sysctl_fs_protected_regular
- sysctl_fs_protected_symlinks
- sysctl_fs_suid_dumpable
- sysctl_kernel_apparmor_restrict_unprivileged_unconfined
- sysctl_kernel_core_pattern
- sysctl_kernel_core_pattern_empty_string
- sysctl_kernel_core_uses_pid
Expand Down Expand Up @@ -205,6 +206,6 @@
- sysctl_user_max_user_namespaces_no_remediation
- sysctl_vm_mmap_min_addr
templates:
- kernel_build_config

Check failure on line 209 in components/kernel.yml

View workflow job for this annotation

GitHub Actions / Yaml Lint on Changed yaml files

209:1 [indentation] wrong indentation: expected at least 1
- kernel_module_disabled
- sysctl
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
documentation_complete: true

title: 'Enable kernel.apparmor_restrict_unprivileged_unconfined'

description: '{{{ describe_sysctl_option_value(sysctl="kernel.apparmor_restrict_unprivileged_unconfined", value="1") }}}'

rationale: |-
Restricting unprivileged unconfined processes with AppArmor reduces the
attack surface available to local users and helps enforce additional
kernel-level hardening.

severity: medium

{{{ complete_ocil_entry_sysctl_option_value(sysctl="kernel.apparmor_restrict_unprivileged_unconfined", value="1") }}}

fixtext: |-
Configure {{{ full_name }}} to enable AppArmor restrictions for
unprivileged unconfined processes.
{{{ fixtext_sysctl("kernel.apparmor_restrict_unprivileged_unconfined", "1") | indent(4) }}}

platform: system_with_kernel

template:
name: sysctl
vars:
sysctlvar: kernel.apparmor_restrict_unprivileged_unconfined
datatype: int
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
documentation_complete: true

title: kernel.apparmor_restrict_unprivileged_unconfined

description: |-
Prevent unprivileged and unconfined processes.

type: number

operator: equals

interactive: false

options:
default: 1
0: "0"
1: "1"
Loading