-
Notifications
You must be signed in to change notification settings - Fork 16
/
data.yaml
48 lines (41 loc) · 1.93 KB
/
data.yaml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
metadata:
id: 882ffc80-73e9-56aa-ae72-73b39af6702f
name: Minimize the admission of containers with allowPrivilegeEscalation
profile_applicability: '* Level 1'
description: Do not generally permit containers to be run with the `allowPrivilegeEscalation`
flag set to true.
rationale: |-
A container running with the `allowPrivilegeEscalation` flag set to `true` may have processes that can gain more privileges than their parent.
There should be at least one PodSecurityPolicy (PSP) defined which does not permit containers to allow privilege escalation.
The option exists (and is defaulted to true) to permit setuid binaries to run.
If you have need to run containers which use setuid binaries or require privilege escalation, this should be defined in a separate PSP and you should carefully check RBAC controls to ensure that only limited service accounts and users are given permission to access that PSP.
audit: |-
Get the set of PSPs with the following command:
```
kubectl get psp
```
For each PSP, check whether privileged is enabled:
```
kubectl get psp <name> -o=jsonpath='{.spec.allowPrivilegeEscalation}'
```
Verify that there is at least one PSP which does not return true.
remediation: |-
Create a PSP as described in the Kubernetes documentation, ensuring that the `.spec.allowPrivilegeEscalation` field is omitted or set to false.
impact: |-
Pods defined with `spec.allowPrivilegeEscalation: true` will not be permitted unless they are run under a specific PSP.
default_value: |
By default, PodSecurityPolicies are not defined.
references: 1. https://kubernetes.io/docs/concepts/policy/pod-security-policy
section: Pod Security Policies
version: '1.0'
tags:
- CIS
- EKS
- CIS 4.2.5
- Pod Security Policies
benchmark:
name: CIS Amazon Elastic Kubernetes Service (EKS)
version: v1.0.1
id: cis_eks
rule_number: 4.2.5
posture_type: kspm