Skip to content
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

Vulnerabilities Dashboard - Containerfile #3

Open
nullify-security-bot bot opened this issue Aug 25, 2023 · 0 comments
Open

Vulnerabilities Dashboard - Containerfile #3

nullify-security-bot bot opened this issue Aug 25, 2023 · 0 comments

Comments

@nullify-security-bot
Copy link

3 Potential vulnerability sources found in Containerfile files within this repo

⚠️ CRITICAL 🔴 HIGH 🔵 MEDIUM ⚪ LOW
0 2 1 0

Nullify SAST - Containerfile 🔴 HIGH Severity AVD-DS-0002

Image user should not be 'root'

Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.

Read more:
https://avd.aquasec.com/misconfig/ds002

https://github.com/tim-thacker-nullify/example-scenarios/blob/48bd9365141e55de5de9321707ccb02895709e8c/docker-build-postgres-sakila/Dockerfile#L0

Nullify SAST - Containerfile 🔴 HIGH Severity AVD-DS-0002

Image user should not be 'root'

Running containers with 'root' user can lead to a container escape situation. It is a best practice to run containers as non-root users, which can be done by adding a 'USER' statement to the Dockerfile.

Read more:
https://avd.aquasec.com/misconfig/ds002

https://github.com/tim-thacker-nullify/example-scenarios/blob/48bd9365141e55de5de9321707ccb02895709e8c/docker-build-security-playground/Dockerfile#L0

Nullify SAST - Containerfile 🔵 MEDIUM Severity AVD-DS-0001

':latest' tag used

When using a 'FROM' statement you should use a specific tag to avoid uncontrolled behavior when the image is updated.

Read more:
https://avd.aquasec.com/misconfig/ds001

FROM gcr.io/distroless/base-debian11

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

0 participants