-
Notifications
You must be signed in to change notification settings - Fork 2.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
chore(deps): Bump trivy-checks #8310
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -22,7 +22,7 @@ | |
"Type": "helm", | ||
"MisconfSummary": { | ||
"Successes": 79, | ||
"Failures": 14 | ||
"Failures": 15 | ||
}, | ||
"Misconfigurations": [ | ||
{ | ||
|
@@ -805,8 +805,51 @@ | |
"CauseMetadata": { | ||
"Provider": "Kubernetes", | ||
"Service": "general", | ||
"StartLine": 19, | ||
"EndLine": 22, | ||
"Code": { | ||
"Lines": null | ||
"Lines": [ | ||
{ | ||
"Number": 19, | ||
"Content": " - name: nginx", | ||
"IsCause": true, | ||
"Annotation": "", | ||
"Truncated": false, | ||
"Highlighted": " - \u001b[38;5;33mname\u001b[0m: nginx", | ||
"FirstCause": true, | ||
"LastCause": false | ||
}, | ||
{ | ||
"Number": 20, | ||
"Content": " image: nginx:1.14.2", | ||
"IsCause": true, | ||
"Annotation": "", | ||
"Truncated": false, | ||
"Highlighted": " \u001b[38;5;33mimage\u001b[0m: nginx:1.14.2", | ||
"FirstCause": false, | ||
"LastCause": false | ||
}, | ||
{ | ||
"Number": 21, | ||
"Content": " ports:", | ||
"IsCause": true, | ||
"Annotation": "", | ||
"Truncated": false, | ||
"Highlighted": " \u001b[38;5;33mports\u001b[0m:", | ||
"FirstCause": false, | ||
"LastCause": false | ||
}, | ||
{ | ||
"Number": 22, | ||
"Content": " - containerPort: 80", | ||
"IsCause": true, | ||
"Annotation": "", | ||
"Truncated": false, | ||
"Highlighted": " - \u001b[38;5;33mcontainerPort\u001b[0m: \u001b[38;5;37m80\u001b[0m", | ||
"FirstCause": false, | ||
"LastCause": true | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
|
@@ -905,6 +948,32 @@ | |
"Lines": null | ||
} | ||
} | ||
}, | ||
{ | ||
"Type": "Helm Security Check", | ||
"ID": "KSV118", | ||
"AVDID": "AVD-KSV-0118", | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This check was not entirely correct because it triggered only when securityContext was explicitly specified and empty. However, if securityContext was missing entirely, the rule did not trigger.. Fixed in aquasecurity/trivy-checks#315 |
||
"Title": "Default security context configured", | ||
"Description": "Security context controls the allocation of security parameters for the pod/container/volume, ensuring the appropriate level of protection. Relying on default security context may expose vulnerabilities to potential attacks that rely on privileged access.", | ||
"Message": "container nginx-deployment in default namespace is using the default security context", | ||
"Namespace": "builtin.kubernetes.KSV118", | ||
"Query": "data.builtin.kubernetes.KSV118.deny", | ||
"Resolution": "To enhance security, it is strongly recommended not to rely on the default security context. Instead, it is advisable to explicitly define the required security parameters (such as runAsNonRoot, capabilities, readOnlyRootFilesystem, etc.) within the security context.", | ||
"Severity": "HIGH", | ||
"PrimaryURL": "https://avd.aquasec.com/misconfig/ksv118", | ||
"References": [ | ||
"https://kubernetes.io/docs/tasks/configure-pod-container/security-context/", | ||
"https://avd.aquasec.com/misconfig/ksv118" | ||
], | ||
"Status": "FAIL", | ||
"Layer": {}, | ||
"CauseMetadata": { | ||
"Provider": "Kubernetes", | ||
"Service": "general", | ||
"Code": { | ||
"Lines": null | ||
} | ||
} | ||
} | ||
] | ||
} | ||
|
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -21,7 +21,7 @@ | |
"Class": "config", | ||
"Type": "helm", | ||
"MisconfSummary": { | ||
"Successes": 89, | ||
"Successes": 90, | ||
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. A new check has been added aquasecurity/trivy-checks#327. Same for other similar changes. |
||
"Failures": 4 | ||
}, | ||
"Misconfigurations": [ | ||
|
@@ -302,8 +302,110 @@ | |
"CauseMetadata": { | ||
"Provider": "Kubernetes", | ||
"Service": "general", | ||
"StartLine": 28, | ||
"EndLine": 57, | ||
"Code": { | ||
"Lines": null | ||
"Lines": [ | ||
{ | ||
"Number": 28, | ||
"Content": " - name: testchart", | ||
"IsCause": true, | ||
"Annotation": "", | ||
"Truncated": false, | ||
"Highlighted": " - \u001b[38;5;33mname\u001b[0m: testchart", | ||
"FirstCause": true, | ||
"LastCause": false | ||
}, | ||
{ | ||
"Number": 29, | ||
"Content": " securityContext:", | ||
"IsCause": true, | ||
"Annotation": "", | ||
"Truncated": false, | ||
"Highlighted": " \u001b[38;5;33msecurityContext\u001b[0m:", | ||
"FirstCause": false, | ||
"LastCause": false | ||
}, | ||
{ | ||
"Number": 30, | ||
"Content": " capabilities:", | ||
"IsCause": true, | ||
"Annotation": "", | ||
"Truncated": false, | ||
"Highlighted": " \u001b[38;5;33mcapabilities\u001b[0m:", | ||
"FirstCause": false, | ||
"LastCause": false | ||
}, | ||
{ | ||
"Number": 31, | ||
"Content": " drop:", | ||
"IsCause": true, | ||
"Annotation": "", | ||
"Truncated": false, | ||
"Highlighted": " \u001b[38;5;33mdrop\u001b[0m:", | ||
"FirstCause": false, | ||
"LastCause": false | ||
}, | ||
{ | ||
"Number": 32, | ||
"Content": " - ALL", | ||
"IsCause": true, | ||
"Annotation": "", | ||
"Truncated": false, | ||
"Highlighted": " - ALL", | ||
"FirstCause": false, | ||
"LastCause": false | ||
}, | ||
{ | ||
"Number": 33, | ||
"Content": " readOnlyRootFilesystem: true", | ||
"IsCause": true, | ||
"Annotation": "", | ||
"Truncated": false, | ||
"Highlighted": " \u001b[38;5;33mreadOnlyRootFilesystem\u001b[0m: \u001b[38;5;166mtrue", | ||
"FirstCause": false, | ||
"LastCause": false | ||
}, | ||
{ | ||
"Number": 34, | ||
"Content": " runAsGroup: 10001", | ||
"IsCause": true, | ||
"Annotation": "", | ||
"Truncated": false, | ||
"Highlighted": "\u001b[0m \u001b[38;5;33mrunAsGroup\u001b[0m: \u001b[38;5;37m10001", | ||
"FirstCause": false, | ||
"LastCause": false | ||
}, | ||
{ | ||
"Number": 35, | ||
"Content": " runAsNonRoot: true", | ||
"IsCause": true, | ||
"Annotation": "", | ||
"Truncated": false, | ||
"Highlighted": "\u001b[0m \u001b[38;5;33mrunAsNonRoot\u001b[0m: \u001b[38;5;166mtrue", | ||
"FirstCause": false, | ||
"LastCause": false | ||
}, | ||
{ | ||
"Number": 36, | ||
"Content": " runAsUser: 10001", | ||
"IsCause": true, | ||
"Annotation": "", | ||
"Truncated": false, | ||
"Highlighted": "\u001b[0m \u001b[38;5;33mrunAsUser\u001b[0m: \u001b[38;5;37m10001", | ||
"FirstCause": false, | ||
"LastCause": true | ||
}, | ||
{ | ||
"Number": 37, | ||
"Content": "", | ||
"IsCause": false, | ||
"Annotation": "", | ||
"Truncated": true, | ||
"FirstCause": false, | ||
"LastCause": false | ||
} | ||
] | ||
} | ||
} | ||
}, | ||
|
@@ -341,7 +443,7 @@ | |
"Class": "config", | ||
"Type": "helm", | ||
"MisconfSummary": { | ||
"Successes": 60, | ||
"Successes": 61, | ||
"Failures": 0 | ||
} | ||
}, | ||
|
@@ -350,7 +452,7 @@ | |
"Class": "config", | ||
"Type": "helm", | ||
"MisconfSummary": { | ||
"Successes": 59, | ||
"Successes": 60, | ||
"Failures": 0 | ||
} | ||
} | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The returned object containing the location has been fixed for some checks.