DEMO (do not merge): intentionally insecure examples #1
21 new alerts including 5 high severity security vulnerabilities
New alerts in code changed by this pull request
Security Alerts:
- 5 high
- 5 medium
- 11 low
See annotations below for details.
Annotations
Check failure on line 1 in examples/Dockerfile.bad
Code scanning / Trivy
Image user should not be 'root' High
Check notice on line 1 in examples/Dockerfile.bad
Code scanning / Trivy
No HEALTHCHECK defined Low
Check warning on line 2 in examples/Dockerfile.bad
Code scanning / Trivy
':latest' tag used Medium
Check failure on line 3 in examples/Dockerfile.bad
Code scanning / Trivy
'apt-get' missing '--no-install-recommends' High
Check warning on line 1 in examples/pod-insecure.yaml
Code scanning / Trivy
Seccomp policies disabled Medium
Check failure on line 14 in examples/pod-insecure.yaml
Code scanning / Trivy
Access to host network High
Check warning on line 14 in examples/pod-insecure.yaml
Code scanning / Trivy
Can elevate its own privileges Medium
Check notice on line 14 in examples/pod-insecure.yaml
Code scanning / Trivy
Default capabilities: some containers do not drop all Low
Check notice on line 14 in examples/pod-insecure.yaml
Code scanning / Trivy
CPU not limited Low
Check warning on line 14 in examples/pod-insecure.yaml
Code scanning / Trivy
Runs as root user Medium
Check warning on line 14 in examples/pod-insecure.yaml
Code scanning / Trivy
Image tag ":latest" used Medium
Check failure on line 14 in examples/pod-insecure.yaml
Code scanning / Trivy
Root file system is not read-only High
Check notice on line 14 in examples/pod-insecure.yaml
Code scanning / Trivy
CPU requests not specified Low
Check notice on line 14 in examples/pod-insecure.yaml
Code scanning / Trivy
Memory requests not specified Low
Check failure on line 14 in examples/pod-insecure.yaml
Code scanning / Trivy
Privileged High
Check notice on line 14 in examples/pod-insecure.yaml
Code scanning / Trivy
Memory not limited Low
Check notice on line 14 in examples/pod-insecure.yaml
Code scanning / Trivy
Runs with UID <= 10000 Low
Check notice on line 14 in examples/pod-insecure.yaml
Code scanning / Trivy
Runs with GID <= 10000 Low
Check notice on line 14 in examples/pod-insecure.yaml
Code scanning / Trivy
Runtime/Default Seccomp profile not set Low
Check notice on line 14 in examples/pod-insecure.yaml
Code scanning / Trivy
Container capabilities must only include NET_BIND_SERVICE Low
Check notice on line 14 in examples/pod-insecure.yaml
Code scanning / Trivy
Containers must not set runAsUser to 0 Low