Skip to content

Latest commit

 

History

History
328 lines (167 loc) · 17 KB

DEFAULT.md

File metadata and controls

328 lines (167 loc) · 17 KB

Kubernetes 1.18.x Default Benchmark

Raspbernetes

Control Plane Components

Master Node Configuration Files

[INFO] 1 Master Node Security Configuration

[INFO] 1.1 Master Node Configuration Files

[PASS] 1.1.1 Ensure that the API server pod specification file permissions are set to 644 or more restrictive (Scored)

[PASS] 1.1.2 Ensure that the API server pod specification file ownership is set to root:root (Scored)

[PASS] 1.1.3 Ensure that the controller manager pod specification file permissions are set to 644 or more restrictive (Scored)

[PASS] 1.1.4 Ensure that the controller manager pod specification file ownership is set to root:root (Scored)

[PASS] 1.1.5 Ensure that the scheduler pod specification file permissions are set to 644 or more restrictive (Scored)

[PASS] 1.1.6 Ensure that the scheduler pod specification file ownership is set to root:root (Scored)

[PASS] 1.1.7 Ensure that the etcd pod specification file permissions are set to 644 or more restrictive (Scored)

[PASS] 1.1.8 Ensure that the etcd pod specification file ownership is set to root:root (Scored)

[WARN] 1.1.9 Ensure that the Container Network Interface file permissions are set to 644 or more restrictive (Not Scored)

[WARN] 1.1.10 Ensure that the Container Network Interface file ownership is set to root:root (Not Scored)

[PASS] 1.1.11 Ensure that the etcd data directory permissions are set to 700 or more restrictive (Scored)

[FAIL] 1.1.12 Ensure that the etcd data directory ownership is set to etcd:etcd (Scored)

[PASS] 1.1.13 Ensure that the admin.conf file permissions are set to 644 or more restrictive (Scored)

[PASS] 1.1.14 Ensure that the admin.conf file ownership is set to root:root (Scored)

[PASS] 1.1.15 Ensure that the scheduler.conf file permissions are set to 644 or more restrictive (Scored)

[PASS] 1.1.16 Ensure that the scheduler.conf file ownership is set to root:root (Scored)

[PASS] 1.1.17 Ensure that the controller-manager.conf file permissions are set to 644 or more restrictive (Scored)

[PASS] 1.1.18 Ensure that the controller-manager.conf file ownership is set to root:root (Scored)

[WARN] 1.1.19 Ensure that the Kubernetes PKI directory and file ownership is set to root:root (Scored)

[WARN] 1.1.20 Ensure that the Kubernetes PKI certificate file permissions are set to 644 or more restrictive (Scored)

[WARN] 1.1.21 Ensure that the Kubernetes PKI key file permissions are set to 600 (Scored)

API Server

[INFO] 1.2 API Server

[WARN] 1.2.1 Ensure that the --anonymous-auth argument is set to false (Not Scored)

[PASS] 1.2.2 Ensure that the --basic-auth-file argument is not set (Scored)

[PASS] 1.2.3 Ensure that the --token-auth-file parameter is not set (Scored)

[PASS] 1.2.4 Ensure that the --kubelet-https argument is set to true (Scored)

[PASS] 1.2.5 Ensure that the --kubelet-client-certificate and --kubelet-client-key arguments are set as appropriate (Scored)

[FAIL] 1.2.6 Ensure that the --kubelet-certificate-authority argument is set as appropriate (Scored)

[PASS] 1.2.7 Ensure that the --authorization-mode argument is not set to AlwaysAllow (Scored)

[PASS] 1.2.8 Ensure that the --authorization-mode argument includes Node (Scored)

[PASS] 1.2.9 Ensure that the --authorization-mode argument includes RBAC (Scored)

[WARN] 1.2.10 Ensure that the admission control plugin EventRateLimit is set (Not Scored)

[PASS] 1.2.11 Ensure that the admission control plugin AlwaysAdmit is not set (Scored)

[WARN] 1.2.12 Ensure that the admission control plugin AlwaysPullImages is set (Not Scored)

[WARN] 1.2.13 Ensure that the admission control plugin SecurityContextDeny is set if PodSecurityPolicy is not used (Not Scored)

[PASS] 1.2.14 Ensure that the admission control plugin ServiceAccount is set (Scored)

[PASS] 1.2.15 Ensure that the admission control plugin NamespaceLifecycle is set (Scored)

[FAIL] 1.2.16 Ensure that the admission control plugin PodSecurityPolicy is set (Scored)

[PASS] 1.2.17 Ensure that the admission control plugin NodeRestriction is set (Scored)

[PASS] 1.2.18 Ensure that the --insecure-bind-address argument is not set (Scored)

[PASS] 1.2.19 Ensure that the --insecure-port argument is set to 0 (Scored)

[PASS] 1.2.20 Ensure that the --secure-port argument is not set to 0 (Scored)

[FAIL] 1.2.21 Ensure that the --profiling argument is set to false (Scored)

[FAIL] 1.2.22 Ensure that the --audit-log-path argument is set (Scored)

[FAIL] 1.2.23 Ensure that the --audit-log-maxage argument is set to 30 or as appropriate (Scored)

[FAIL] 1.2.24 Ensure that the --audit-log-maxbackup argument is set to 10 or as appropriate (Scored)

[FAIL] 1.2.25 Ensure that the --audit-log-maxsize argument is set to 100 or as appropriate (Scored)

[PASS] 1.2.26 Ensure that the --request-timeout argument is set as appropriate (Scored)

[PASS] 1.2.27 Ensure that the --service-account-lookup argument is set to true (Scored)

[PASS] 1.2.28 Ensure that the --service-account-key-file argument is set as appropriate (Scored)

[PASS] 1.2.29 Ensure that the --etcd-certfile and --etcd-keyfile arguments are set as appropriate (Scored)

[PASS] 1.2.30 Ensure that the --tls-cert-file and --tls-private-key-file arguments are set as appropriate (Scored)

[PASS] 1.2.31 Ensure that the --client-ca-file argument is set as appropriate (Scored)

[PASS] 1.2.32 Ensure that the --etcd-cafile argument is set as appropriate (Scored)

[FAIL] 1.2.33 Ensure that the --encryption-provider-config argument is set as appropriate (Scored)

[WARN] 1.2.34 Ensure that encryption providers are appropriately configured (Scored)

[WARN] 1.2.35 Ensure that the API Server only makes use of Strong Cryptographic Ciphers (Not Scored)

Controller Manager

[INFO] 1.3 Controller Manager

[FAIL] 1.3.1 Ensure that the --terminated-pod-gc-threshold argument is set as appropriate (Scored)

[FAIL] 1.3.2 Ensure that the --profiling argument is set to false (Scored)

[PASS] 1.3.3 Ensure that the --use-service-account-credentials argument is set to true (Scored)

[PASS] 1.3.4 Ensure that the --service-account-private-key-file argument is set as appropriate (Scored)

[PASS] 1.3.5 Ensure that the --root-ca-file argument is set as appropriate (Scored)

[FAIL] 1.3.6 Ensure that the RotateKubeletServerCertificate argument is set to true (Scored)

[PASS] 1.3.7 Ensure that the --bind-address argument is set to 127.0.0.1 (Scored)

Scheduler

[INFO] 1.4 Scheduler

[FAIL] 1.4.1 Ensure that the --profiling argument is set to false (Scored)

[PASS] 1.4.2 Ensure that the --bind-address argument is set to 127.0.0.1 (Scored)

Etcd

[INFO] 2 Etcd Node Configuration

[INFO] 2 Etcd Node Configuration Files

[PASS] 2.1 Ensure that the --cert-file and --key-file arguments are set as appropriate (Scored)

[PASS] 2.2 Ensure that the --client-cert-auth argument is set to true (Scored)

[PASS] 2.3 Ensure that the --auto-tls argument is not set to true (Scored)

[PASS] 2.4 Ensure that the --peer-cert-file and --peer-key-file arguments are set as appropriate (Scored)

[PASS] 2.5 Ensure that the --peer-client-cert-auth argument is set to true (Scored)

[PASS] 2.6 Ensure that the --peer-auto-tls argument is not set to true (Scored)

[PASS] 2.7 Ensure that a unique Certificate Authority is used for etcd (Not Scored)

Control Plane Configuration

Authentication and Authorization

[INFO] 3 Control Plane Configuration

[INFO] 3.1 Authentication and Authorization

[WARN] 3.1.1 Client certificate authentication should not be used for users (Not Scored)

Logging

[INFO] 3.2 Logging

[WARN] 3.2.1 Ensure that a minimal audit policy is created (Scored)

[WARN] 3.2.2 Ensure that the audit policy covers key security concerns (Not Scored)

Worker Nodes

Worker Node Configuration Files

[INFO] 4 Worker Node Security Configuration

[INFO] 4.1 Worker Node Configuration Files

[PASS] 4.1.1 Ensure that the kubelet service file permissions are set to 644 or more restrictive (Scored)

[PASS] 4.1.2 Ensure that the kubelet service file ownership is set to root:root (Scored)

[FAIL] 4.1.3 Ensure that the proxy kubeconfig file permissions are set to 644 or more restrictive (Scored)

[FAIL] 4.1.4 Ensure that the proxy kubeconfig file ownership is set to root:root (Scored)

[PASS] 4.1.5 Ensure that the kubelet.conf file permissions are set to 644 or more restrictive (Scored)

[PASS] 4.1.6 Ensure that the kubelet.conf file ownership is set to root:root (Scored)

[WARN] 4.1.7 Ensure that the certificate authorities file permissions are set to 644 or more restrictive (Scored)

[PASS] 4.1.8 Ensure that the client certificate authorities file ownership is set to root:root (Scored)

[PASS] 4.1.9 Ensure that the kubelet configuration file has permissions set to 644 or more restrictive (Scored)

[PASS] 4.1.10 Ensure that the kubelet configuration file ownership is set to root:root (Scored)

Kubelet

[INFO] 4.2 Kubelet

[PASS] 4.2.1 Ensure that the --anonymous-auth argument is set to false (Scored)

[PASS] 4.2.2 Ensure that the --authorization-mode argument is not set to AlwaysAllow (Scored)

[PASS] 4.2.3 Ensure that the --client-ca-file argument is set as appropriate (Scored)

[FAIL] 4.2.4 Ensure that the --read-only-port argument is set to 0 (Scored)

[PASS] 4.2.5 Ensure that the --streaming-connection-idle-timeout argument is not set to 0 (Scored)

[FAIL] 4.2.6 Ensure that the --protect-kernel-defaults argument is set to true (Scored)

[PASS] 4.2.7 Ensure that the --make-iptables-util-chains argument is set to true (Scored)

[PASS] 4.2.8 Ensure that the --hostname-override argument is not set (Not Scored)

[WARN] 4.2.9 Ensure that the --event-qps argument is set to 0 or a level which ensures appropriate event capture (Not Scored)

[FAIL] 4.2.10 Ensure that the --tls-cert-file and --tls-private-key-file arguments are set as appropriate (Scored)

[PASS] 4.2.11 Ensure that the --rotate-certificates argument is not set to false (Scored)

[FAIL] 4.2.12 Ensure that the RotateKubeletServerCertificate argument is set to true (Scored)

[WARN] 4.2.13 Ensure that the Kubelet only makes use of Strong Cryptographic Ciphers (Not Scored)

Policies

RBAC and Service Accounts

[INFO] 5 Kubernetes Policies

[INFO] 5.1 RBAC and Service Accounts

[WARN] 5.1.1 Ensure that the cluster-admin role is only used where required (Not Scored)

[WARN] 5.1.2 Minimize access to secrets (Not Scored)

[WARN] 5.1.3 Minimize wildcard use in Roles and ClusterRoles (Not Scored)

[WARN] 5.1.4 Minimize access to create pods (Not Scored)

[WARN] 5.1.5 Ensure that default service accounts are not actively used. (Scored)

[WARN] 5.1.6 Ensure that Service Account Tokens are only mounted where necessary (Not Scored)

Pod Security Policies

[INFO] 5.2 Pod Security Policies

[WARN] 5.2.1 Minimize the admission of privileged containers (Not Scored)

[WARN] 5.2.2 Minimize the admission of containers wishing to share the host process ID namespace (Scored)

[WARN] 5.2.3 Minimize the admission of containers wishing to share the host IPC namespace (Scored)

[WARN] 5.2.4 Minimize the admission of containers wishing to share the host network namespace (Scored)

[WARN] 5.2.5 Minimize the admission of containers with allowPrivilegeEscalation (Scored)

[WARN] 5.2.6 Minimize the admission of root containers (Not Scored)

[WARN] 5.2.7 Minimize the admission of containers with the NET_RAW capability (Not Scored)

[WARN] 5.2.8 Minimize the admission of containers with added capabilities (Not Scored)

[WARN] 5.2.9 Minimize the admission of containers with capabilities assigned (Not Scored)

Network Policies and CNI

[INFO] 5.3 Network Policies and CNI

[WARN] 5.3.1 Ensure that the CNI in use supports Network Policies (Not Scored)

[WARN] 5.3.2 Ensure that all Namespaces have Network Policies defined (Scored)

Secrets Management

[INFO] 5.4 Secrets Management

[WARN] 5.4.1 Prefer using secrets as files over secrets as environment variables (Not Scored)

[WARN] 5.4.2 Consider external secret storage (Not Scored)

Extensible Admission Control

[INFO] 5.5 Extensible Admission Control

[WARN] 5.5.1 Configure Image Provenance using ImagePolicyWebhook admission controller (Not Scored)

General Policies

[INFO] 5.6 General Policies

[WARN] 5.6.1 Create administrative boundaries between resources using namespaces (Not Scored)

[WARN] 5.6.2 Ensure that the seccomp profile is set to docker/default in your pod definitions (Not Scored)

[WARN] 5.6.3 Apply Security Context to Your Pods and Containers (Not Scored)

[WARN] 5.6.4 The default namespace should not be used (Scored)