You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In this commit I changed to add Safe and Unsafe code
in all rules of the k8s. Reference from issue #630 and #1020.
Signed-off-by: Wilian Gabriel <[email protected]>
Copy file name to clipboardexpand all lines: internal/services/engines/kubernetes/rules.go
+63-45
Original file line number
Diff line number
Diff line change
@@ -26,11 +26,13 @@ import (
26
26
funcNewAllowPrivilegeEscalation() *text.Rule {
27
27
return&text.Rule{
28
28
Metadata: engine.Metadata{
29
-
ID: "HS-KUBERNETES-1",
30
-
Name: "Allow Privilege Escalation",
31
-
Description: "Privileged containers share namespaces with the host system, eschew cgroup restrictions, and do not offer any security. They should be used exclusively as a bundling and distribution mechanism for the code in the container, and not for isolation.",
32
-
Severity: severities.Medium.ToString(),
33
-
Confidence: confidence.High.ToString(),
29
+
ID: "HS-KUBERNETES-1",
30
+
Name: "Allow Privilege Escalation",
31
+
Description: "Privileged containers share namespaces with the host system, eschew cgroup restrictions, and do not offer any security. They should be used exclusively as a bundling and distribution mechanism for the code in the container, and not for isolation.",
Description: "Managing /etc/hosts aliases can prevent the container from modifying the file after a pod's containers have already been started. DNS should be managed by the orchestrator.",
50
-
Severity: severities.Low.ToString(),
51
-
Confidence: confidence.Medium.ToString(),
49
+
ID: "HS-KUBERNETES-2",
50
+
Name: "Host Aliases",
51
+
Description: "Managing /etc/hosts aliases can prevent the container from modifying the file after a pod's containers have already been started. DNS should be managed by the orchestrator.",
Description: "Sharing the host's PID namespace allows visibility of processes on the host, potentially leaking information such as environment variables and configuration.",
157
-
Severity: severities.Medium.ToString(),
158
-
Confidence: confidence.Low.ToString(),
168
+
ID: "HS-KUBERNETES-8",
169
+
Name: "Host PID",
170
+
Description: "Sharing the host's PID namespace allows visibility of processes on the host, potentially leaking information such as environment variables and configuration.",
0 commit comments