Skip to content

Commit

Permalink
Merge pull request #12618 from mpurg/cis_ubuntu2404_ptrace_scope
Browse files Browse the repository at this point in the history
Add rule sysctl_kernel_yama_ptrace_scope to Ubuntu 24.04 CIS
  • Loading branch information
dodys authored Nov 26, 2024
2 parents f940fb8 + 581e1e3 commit 3ed7d8d
Show file tree
Hide file tree
Showing 3 changed files with 32 additions and 2 deletions.
6 changes: 4 additions & 2 deletions controls/cis_ubuntu2404.yml
Original file line number Diff line number Diff line change
Expand Up @@ -440,8 +440,10 @@ controls:
levels:
- l1_server
- l1_workstation
status: planned
notes: TODO. Rule does not seem to be implemented, nor does it map to any rules in ubuntu2204 profile.
rules:
- sysctl_kernel_yama_ptrace_scope_value=1
- sysctl_kernel_yama_ptrace_scope
status: automated

- id: 1.5.3
title: Ensure core dumps are restricted (Automated)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,5 +42,13 @@ template:
name: sysctl
vars:
sysctlvar: kernel.yama.ptrace_scope
{{% if product in ['ubuntu2404'] %}}
sysctlval:
- '1'
- '2'
- '3'
wrong_sysctlval_for_testing: '0'
{{% else %}}
sysctlval: '1'
{{% endif %}}
datatype: int
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
documentation_complete: true

title: kernel.yama.ptrace_scope

description: |-
The setting yama.ptrace_scope restricts the ability of a process
to observe and control the execution of another process via ptrace.
See https://www.kernel.org/doc/Documentation/security/Yama.txt

type: number

operator: equals

interactive: false

options:
default: 1
1: 1
2: 2
3: 3

0 comments on commit 3ed7d8d

Please sign in to comment.