# Image Security

URL: /docs/security

Source: https://github.com/easypanel-io/monorepo/blob/main/apps/website/content/docs/security.mdx

Scan service images for known vulnerabilities and find newer image versions.















Easypanel can scan the Docker image a service runs for known vulnerabilities
(CVEs) and look up newer versions of the image in its registry. Use it to see
which services are exposed to known issues and to plan updates.

Scans run only when you start them; Easypanel does not scan in the background.
A scan or a version lookup never changes or restarts the service.

<Screenshot>
    <img alt="Security page listing services with their vulnerability counts" src="__img0" />

    <img alt="Security page listing services with their vulnerability counts" src="__img1" />
</Screenshot>

## What can be scanned [#what-can-be-scanned]

| Service                                              | Vulnerability scan              | Newer versions |
| ---------------------------------------------------- | ------------------------------- | -------------- |
| App with a **Docker Image** source                   | Yes                             | Yes            |
| App with a Git, GitHub, Upload, or Dockerfile source | Yes, after the first deployment | No             |
| Postgres, MySQL, MariaDB, Mongo, Redis               | Yes                             | No             |
| Compose, Box, WordPress                              | No                              | No             |

An App built from source shows **Built from source** instead of an image name.
Its image only exists on your server, so there are no newer versions to look up.
Update its base image in the Dockerfile or builder settings instead.

Database services can be scanned too. To fix findings, move to a newer release
of the same major version; moving to a new major version is a database upgrade,
not an image change. Each database page explains how to change its image.

## Security page [#security-page]

Open **Security** in the sidebar to see every service you have access to, with
the image it runs and the result of its latest scan. Services with the most
severe findings are listed first.

* **All**, **At risk**, and **Clean** filter the list. A service is at risk when
  its latest scan found vulnerabilities.
* **Scan** scans one service.
* **Scan all** queues a scan for every service in the list.

Scans run one at a time. A queued service shows **Queued**, then **Scanning**,
and the result appears as soon as its scan finishes. You can leave the page
while scans run; each scan also appears on the **Actions** page.

Users who are not administrators only see the services of their projects.

## Service security tab [#service-security-tab]

Each App and database service has a **Security** tab with its full report.
Select **Scan now** to scan the service, or select a service on the Security
page to open it.

<Screenshot>
    <img alt="Security tab of a service with its vulnerability report" src="__img2" />

    <img alt="Security tab of a service with its vulnerability report" src="__img3" />
</Screenshot>

The report shows:

* the number of **Critical**, **High**, **Medium**, **Low**, and **Unknown**
  findings;
* which image was scanned and when: the running image, the copy of the image on
  the server, or the image in the registry when the server has no copy;
* a warning when the image's operating system no longer gets security updates;
* the **Findings** table with each vulnerability's **ID**, the affected
  **Package**, the **Installed** version, and the version it is **Fixed in**.

**Fix available only** is on by default, so the table lists the findings you can
fix by updating. Turn it off to see every finding, including those without a fix
yet. Select an ID to read the vulnerability's details.

On App services, the Security tab also holds the service's
[Basic Auth](/docs/services/app#basic-auth) settings.

## Find newer image versions [#find-newer-image-versions]

For App services with a Docker Image source, Easypanel can look up newer tags of
the image in its registry. Select **Check for newer tags** on the Security tab,
or next to the **Image** field on the **Source** tab.

<Screenshot>
    <img alt="Newer tags of an image on the Source tab, with their vulnerability counts" src="__img4" />

    <img alt="Newer tags of an image on the Source tab, with their vulnerability counts" src="__img5" />
</Screenshot>

The lookup lists up to 20 of the newest tags that have the same format as the
one you use. For example, `nginx:1.25.3` finds `1.30.8` and `1.31.10`, but not
`1.31` or `1.31.10-alpine`. Tags that are not version numbers, such as `latest`,
have no newer versions.

The lookup also tells you when the registry has a newer build of the tag you
already use, for example after the publisher rebuilt `1.25.3` with security
fixes.
Deploy the service again to pull it.

To switch to a newer version:

1. On the **Source** tab, select **Scan** next to a tag to compare its
   vulnerabilities with the current image before switching.
2. Select **Select** next to the tag you want. The **Image** field is updated.
3. Select **Save**, then **Deploy**.

Check the image's release notes before switching to a new major or minor
version, as it may include breaking changes.

## Reading the results [#reading-the-results]

Severities come from the vulnerability databases of the operating system and
language ecosystems:

* **Critical** and **High** findings can often be exploited remotely or lead to
  full compromise. Fix these first.
* **Medium** and **Low** findings usually need special conditions to exploit.
* **Unknown** findings have not been rated yet, often because they were
  published recently.

A finding means a vulnerable package version is present in the image, not that
your service can be exploited. Many findings affect packages your application
never uses. Likewise, a clean report only means no *known* vulnerabilities were
found; it does not replace keeping images up to date and limiting what each
service exposes.

Fix findings by updating the image, not by changing the running container:

* For an image from a registry, switch to a newer tag, or redeploy to pull a
  newer build of the same tag.
* For an App built from source, update the base image and dependencies, then
  deploy.
* For an **Unsupported OS** warning, move to an image based on a supported
  operating system release. Its packages no longer receive fixes.

Vulnerability data is updated continuously, so a scan of the same image can find
new issues later. Scan again after deploying and from time to time.

## CLI, API, and MCP [#cli-api-and-mcp]

Everything on the Security page is also available from the [CLI](/docs/cli),
the API, and the [MCP server](/docs/mcp):

| CLI command                        | Purpose                                       |
| ---------------------------------- | --------------------------------------------- |
| `easypanel security list`          | List services with their vulnerability counts |
| `easypanel security scan`          | Scan a service's image                        |
| `easypanel security scan-all`      | Scan every service you have access to         |
| `easypanel security get-scan`      | Show a service's latest vulnerability report  |
| `easypanel security check-tags`    | Look up newer tags of a service's image       |
| `easypanel security get-tag-check` | Show the latest newer-tags lookup             |
| `easypanel security scan-tag`      | Scan one of the newer tags                    |

Run a command with `--help` to see its options.

## Troubleshooting [#troubleshooting]

* **Nothing to scan yet**: the service has no source. Set its source, then scan
  it.
* **The service has not been built yet**: an App built from source must be
  deployed once before its image can be scanned.
* **A scan fails**: the server needs internet access to download vulnerability
  data and images. For a private registry, check the username and password on
  the service's **Source** tab.
* **The first scan is slow**: the first scan downloads the vulnerability
  database. Later scans are faster.
* **No newer tags found**: the image uses a tag such as `latest`, or the
  registry has no newer tag in the same format.
