Skip to content
For the complete documentation index, see llms.txt. This page is also available as Markdown.

File protection and scans

Inspecting downloads stops most threats, but packages also reach a machine in other ways: copied from a USB drive, downloaded by a tool that bypasses Shield, extracted from another archive, or already on disk before Shield was installed. Shield covers those cases with file protection, which watches package files as they are written, and on-demand scans, which look for dangerous packages already on the machine.

Both use the same checks as downloads: the Xygeni malicious packages database, your Black/White list and the minimum-age policy. Shield recognises a package by its contents, not by its file name.

File protection

File protection is on by default.

  • Linux: Shield watches /tmp, /var/tmp, /media, /mnt and /run/media, and blocks a dangerous package file when a program tries to open it.

  • Windows: Shield watches each user's Downloads and Temp folders and the package-manager caches (npm, pip, uv, poetry, Cargo, Maven, NuGet, RubyGems, Go, Composer, VS Code and JetBrains extensions). A dangerous package file is moved to quarantine right after it is written.

When a file is blocked, it is moved to the quarantine, a protected folder where it can do no harm, and you get a desktop notification and an alert. The folders watched can be changed in the agent settings.

Quarantine

Quarantined files are listed in the tray app's Quarantine tab, and with the command line:

sudo xygeni-fw fs quarantine list                       # newest first: date, package, reason, SHA-256
sudo xygeni-fw fs quarantine release <sha256>           # copy the file out for inspection
sudo xygeni-fw fs quarantine release <sha256> --dest /tmp/sample.bin
sudo xygeni-fw fs quarantine purge <sha256>             # delete one file permanently
sudo xygeni-fw fs quarantine purge --all                # empty the quarantine

Release copies the file to your Downloads folder as xygeni-released-<sha>-<name>.bin (or to --dest), so it cannot be run or installed by mistake. The quarantined copy is kept, and the released copy is not quarantined again. Only an administrator or the user who activated Shield on the machine can release or delete quarantined files.

To check a file without waiting for Shield to see it:

On-demand scans

A scan looks for dangerous packages already on the machine: installed before Shield, restored from a backup, or found malicious after they were downloaded.

Scan
What it checks
Typical duration

Quick

The usual package locations of every supported ecosystem: npm cache and global packages, Python environments and caches, Maven and Gradle caches, NuGet, RubyGems, Cargo, Go, Composer, GitHub workflows in your repositories, VS Code / Cursor / VSCodium extensions, JetBrains and Eclipse plugins, and browser extensions.

Minutes

Full

Everything Quick checks, plus the whole file system (on Windows, every fixed drive), skipping system folders.

Longer; meant for periodic checks and incident response

Start a scan from the tray app (Scans tab, or the Run quick scan / Run full scan menu entries), or from the command line:

The tray's Scans tab shows the scan in progress (phase, elapsed time, a progress bar and the counters) and the past scans. The counters are:

  • discovered, scanned, skipped and allowed: the packages found and checked,

  • alerts: the packages that would be blocked,

  • quarantined: the files actually moved to quarantine (none with --dry-run).

Scans run with low priority so they do not slow down your work, and they slow down further when the machine is busy. The command exits with an error code when it finds something, so it can also be used as a check in scripts.

Auditing GitHub Actions workflows

xygeni-fw scan-workflow checks the actions your GitHub workflows use (uses: owner/repo@ref) against the Xygeni malicious packages database, without running anything:

It accepts a workflow file, a repository or a folder with many repositories, and exits with an error when it finds a malicious action, so you can run it as a pre-commit hook.

Last updated