This is separate from Malware Protection. Malware protection looks for malicious files on your server. Dependency scanning looks for packages that are out of date in a way that matters for security.
What is scanned
Cito looks through your site’s home directory for lockfiles. A lockfile is the file your package manager writes to record exactly which versions are installed. The most common ones are:composer.lock(PHP, including Laravel and Craft CMS)package-lock.json,yarn.lockandpnpm-lock.yaml(Node.js)
Gemfile.lock, poetry.lock, go.mod and Cargo.lock, are read too.
For container sites, the packages inside each service’s image are scanned as well. This works for images from private registries too, because the image is read from your server and not pulled again.
The card lists the lockfiles that were read, so you can check that the application you care about was included.
What is not scanned
- WordPress core, plugins and themes. A typical WordPress site shows ‘Nothing to scan’. Anything under
wp-content/pluginsandwp-content/themesis skipped, including a custom plugin or theme that has its own lockfile. Keep an eye on the WordPress Plugins card on the site overview for available updates instead. - Installed copies of packages. Directories such as
vendorandnode_modules, and package manager caches, are skipped. The lockfile beside them is what gets read. This also means an application that lives inside a directory calledvendoris not scanned. - Dependencies with no lockfile, such as files copied into the site by hand.
- Your own code. Only third-party packages are checked.
When sites are scanned
Each site is scanned automatically about once a day, at its own time of day. The card shows when the last scan ran and roughly when the next one is due. A new site may wait up to a day for its first automatic scan. Suspended sites are not scanned automatically. Container images are checked as part of the same daily scan: an image is scanned again when it has changed, and otherwise once a week. Click ‘Scan now’ to scan straight away, for example after updating your dependencies. The scan runs in the background and the card updates when it finishes. This usually takes a few seconds, and a little longer for container images. Scans on a server run one at a time, so yours may wait briefly for its turn. ‘Scan now’ always scans your site’s own files. A container image that has not changed is only scanned again if its last scan was more than an hour ago.Reading the results
Each finding shows the package, the version you have installed, the version that fixes the problem, where the package was found, and a link to the advisory with the full details. Findings are listed with the most serious first, and the card shows a count for each severity. Long lists show the first 25, with a ‘Show all’ button for the rest. Severity comes from the advisory’s CVSS score, the industry standard 0 to 10 rating:
Severity describes the vulnerability in general, not your site in particular. Whether it affects you depends on how your site uses the package, which the advisory will help you decide.
In the site list, a small count appears next to any site with critical or high severity findings in its own files.
Fixing a finding
For a finding in your site’s own files, update the package to a version shown under ‘Fixed in’ (or newer), deploy the change, then click ‘Scan now’ to confirm it has gone. For example:composer.json or package.json allows. If the fixed version is outside that range, change the range first. When a package is pulled in by another package, you may need to update the package that depends on it.
‘Fixed in’ can list more than one version when a fix was released for several release lines: pick the one that matches the line you are on.
If ‘Fixed in’ says ‘No fix yet’, no fixed version has been published. Check the advisory for advice on what to do in the meantime.
Cito never changes your packages for you.
Container images
Each container service is listed separately with a count of findings per severity. Click the ‘Show findings’ button under an image (it includes the number of findings) to see the list.
It is normal for an image, including official ones, to have a large number of findings. They come from the operating system packages the image ships with, and most cannot be reached through your application. The fix is usually a newer image tag: change the tag in the site’s container settings and redeploy.
An image is not scanned if it is larger than 4 GB, or if the server is too short of free disk space to examine it. The card says so when that happens.
