# TuxCare Pulse user guide > The user guide of TuxCare Pulse: the TuxCare CLI (tuxcarectl), CI/CD, the MCP server for AI assistants, the portal, TuxCare Radar, administration, and reference. Each page starts with a line `URL:`, its path on the host that serves this file. A heading ends with `{#id}`: the anchor of the section, which the path takes after `#`. --- # TuxCare Pulse user guide URL: /guide TuxCare Pulse tells you which open-source dependencies of your projects have known vulnerabilities, how to fix each one, and when a new advisory affects code that you already ship. You run one small CLI on your computer or in CI. The portal does the rest. ## What TuxCare Pulse does {#what} **It scans** : The `tuxcarectl` CLI reads the lockfiles of your project and sends the list of packages and versions to your workspace. It does not send source code. **It matches** : The portal compares the list with the advisory data (for example CVE, GHSA, and OSV records) and keeps the scan. When a new advisory comes out, the portal checks every stored scan again. You learn about a new vulnerability without a new build. **It tells you what to fix first** : Each finding has a severity, a fix deadline, and a known-exploited flag. The fix plan names one version to move to for each package: the version that closes the most of its findings. When a TuxCare build of the same version closes all of them, the plan names that build. **It fixes** : `tuxcarectl harden` moves a project to TuxCare builds: the same versions that you use now, with the security fixes added. You do not upgrade to a new major version to close a CVE. [`tuxcarectl fix`](/guide/fix#fix-command) writes the upstream fix instead, with no TuxCare registry. **It gates** : In CI, the CLI can fail a build on a high finding, or fail a pull request only on the findings that it adds. Each organization has its own *workspace*, for example `acme.sc.tuxcare.cloud`. Nobody outside the workspace sees its repositories, scans, or findings. ## How it works {#how} Diagram: How the CLI, the portal, and the TuxCare registry work together. Four steps. 1: the CLI in your project sends the package list to the portal. 2: the portal answers with the findings and the fix plan. 3: the portal gives the CLI the registry credential. 4: your package manager downloads the TuxCare builds from the TuxCare registry. 1. **The CLI sends the package list.** `tuxcarectl sca` reads the lockfiles and sends the names and versions of the packages to your workspace. 2. **The portal answers with the findings.** The CLI prints them and can fail the CI job. The portal shows the same findings, with the fix plan, in the browser. 3. **The portal gives the CLI the registry credential.** You need only one secret: the access token of your workspace. The CLI gets the credential of the TuxCare registry with it. You need this step only for TuxCare builds. 4. **Your package manager downloads the TuxCare builds.** `tuxcarectl harden` points the project at the builds. `npm ci`, `pip install`, and the other install commands then get them from the TuxCare registry. After the first scan, the portal works without you. When a new advisory affects a package that you ship, the portal shows the new finding and sends an [alert](/guide/alerts#alerts) by email, Slack, or webhook. ## What leaves your computer {#sent} The CLI sends only these items: - The package URL (name and version) of each dependency, and how it reaches your project (direct or transitive). - The repository URL, the branch, the commit, and the path of the project in the repository. The CLI removes a user name or a password from the URL. - The version of the CLI. It never sends source code, file contents, or environment variables. To see the exact upload before you send it, run `tuxcarectl sbom --preview`. It writes the upload to the screen, sends nothing, and needs no token. ## Languages and package managers {#ecosystems} | Language | Package managers | Findings | TuxCare builds (`harden`) | | --- | --- | --- | --- | | JavaScript, TypeScript | npm, pnpm, Yarn, Bun, Deno | Yes | Yes. Deno: the `imports` of `deno.json` only. | | Python | pip, uv, Poetry, PDM, Pipenv, conda | Yes. A conda package that installs no Python distribution, for example openssl or libffi, is not assessed: the portal has no advisory data for conda packages. | Yes | | Java, Kotlin | Maven, Gradle | Yes | Yes | | Go, Rust, Ruby, .NET, PHP, Elixir, Dart, Swift, R | Go modules, Cargo, Bundler, NuGet, Composer, Mix, Pub, SwiftPM, CRAN (`renv.lock`) | Yes | No | | Haskell | Cabal, Stack | Yes. Stack: only the `extra-deps` of `stack.yaml.lock`, not the packages of the snapshot. | No | | Julia | Pkg (`Manifest.toml`) | Yes. Only a `Manifest.toml` of format 2.0. The portal compares versions as Julia does: the build counts, so `Expat_jll` 2.6.4+1 is older than 2.6.4+3. | No | The CLI also reads the lockfiles of some other package managers, for example Conan (C and C++), CocoaPods, and CPAN (Perl). A conda package that installs no Python distribution is of the same kind: the CLI sends it as a conda package, not as a Python one. The portal shows these packages as "Not assessed": it has no advisory data to check them. A package that is not assessed is not clean, and its repository gets no [grade A](/guide/repositories#grade). ## Where to start {#start-here} | You want to | Read | | --- | --- | | Scan a project from your computer | [Quickstart](/guide/start). It takes about five minutes. | | Add TuxCare Pulse to a pipeline | [GitHub Actions](/guide/ci-github), [GitLab CI](/guide/ci-gitlab), [Jenkins](/guide/ci-jenkins), or [another CI system](/guide/ci-other) | | Fail pull requests on new findings, record releases, or upload SARIF | [Gates and pull requests](/guide/ci-gates), [Releases](/guide/ci-releases), [Send the results to other tools](/guide/ci-reports) | | Let an AI assistant such as Claude Code or Cursor read the findings | [Connect an AI assistant](/guide/ai-connect) | | Read the findings, triage them, and set up alerts | [Repositories](/guide/repositories), [Findings and triage](/guide/findings), [Alerts](/guide/alerts) | | Close the findings with an upgrade or a TuxCare build | [Fix vulnerabilities](/guide/fix) | | Scan the packages of a Linux server | [Install the TuxCare Radar agent](/guide/radar) | | Invite users, set up single sign-on, or split repositories between teams | [Invite your team](/guide/invite), [Single sign-on](/guide/sso), [Departments](/guide/departments) | | Look up a command, an option, an exit code, or the API | [CLI commands](/guide/reference), [Exit codes](/guide/exit-codes), [REST API](/guide/api) | | Understand an error | [Troubleshooting](/guide/help) | --- # Quickstart URL: /guide/start Install the CLI, sign in, scan a project on your computer, and read the findings in the portal. It takes about five minutes. ## Before you start {#need} - A user in a Pulse workspace with the member or the admin role. A viewer cannot send scans. To make a workspace, see [Create a workspace](/guide/admin#start). - A project in a git repository, with the lockfile of its package manager, for example `package-lock.json`, `uv.lock`, or `go.sum`. - The remote `origin` of the git repository, with the URL of the repository (for example on GitHub or GitLab): the portal files each scan under that URL. Without it, `sca` stops with "found no repository URL for this project". Add the remote (`git remote add origin url`), or set `submit.remote_repo_url` in the project file that the message names (see [Troubleshooting](/guide/help#errors)). - For a JavaScript project, its dependencies installed (`node_modules`). ## On your computer {#computer} ### 1. Install the CLI {#install} **Linux, macOS:** ``` curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh ``` The script checks the checksum and needs no root access. It installs to `/usr/local/bin` when it can write there, else to `~/.local/bin`. When the script prints "NOTE: … is not in your PATH", the next line gives an `export PATH=…` command for the folder that the script installed to. Put that command in the start file of your shell (for example `~/.zshrc` or `~/.bashrc`), and open a new terminal. `PATH` separates its folders with colons (`:`): when the install folder has a colon in its name, the line after the NOTE tells you to install again to a folder with no colon. Set `TUXCARE_INSTALL_DIR` to such a folder, and run the script again. **Homebrew:** ``` brew install tuxcare/tap/tuxcarectl ``` **npm (also Windows):** ``` npm install --global @tuxcare/tuxcarectl ``` **pipx (also Windows):** ``` pipx install tuxcarectl ``` If you installed the old package (`@tuxcare/securechain` of npm, `securechain` of PyPI), remove it first, for example with `npm uninstall --global @tuxcare/securechain`: the old and the new package give the same commands, and npm stops with `EEXIST` otherwise. [All installation methods](/guide/install#install) include Docker, apt, dnf, Maven, Gradle, and a manual download. ### 2. Sign in {#sign-in} ``` tuxcarectl auth login ``` The CLI opens your browser. Sign in, check that the page shows the same code as the terminal, select your workspace, and select **Approve CLI access**. If an admin invited you and you did not open the workspace yet, the page lists the invitation: select **Accept the invitation** first, then approve. With no workspace and no invitation, ask an admin of your team's workspace to invite you, or create a workspace. If you did not accept the terms in that workspace yet, the next page shows them: select the box to accept them, and select **Accept**. Then select **Approve CLI access** again. The CLI keeps the token in a file in its login folder: `~/.config/securechain` on Linux (`$XDG_CONFIG_HOME/securechain` when that variable is set), `~/Library/Application Support/securechain` on macOS, and `%LocalAppData%\securechain` on Windows. When `TUXCARE_CACHE` is set, the login folder is that directory (for its old name, see [The two names of each variable](/guide/install#var-names)). On Linux and macOS the file has mode `0600`, so only your user can read it. The CLI does not use the keychain of your computer. `auth login` prints the path of the file in its line `stored in`. When your workspace uses the TuxCare registry, the CLI then writes the registry into the configuration files of the package managers of the current directory, for example `~/.npmrc` or `pip.conf`, and lists the files that it changed. `tuxcarectl auth logout` removes those lines (see [The files that auth login and registry login write](/guide/reference#auth-files)). You do this one time for each workspace. With a sign-in to more than one workspace, the CLI asks which workspace gets the scans of a repository, and saves the answer (see [More than one workspace](/guide/reference#workspaces)). Over SSH, or on a computer with no browser, open the link that the CLI prints on another device. With no terminal and nothing on standard input, for example `docker run` with no `-i` and no `-t`, the CLI does not open a browser: it prints the link and the code, and waits. Open the link in a browser on any device, and approve. With `docker run -i` and no `-t`, the CLI waits for a token on standard input: after 2 seconds it prints a line about it, and Ctrl-D in a Unix terminal starts the browser sign-in. If the CLI prints nothing, see [Troubleshooting](/guide/help#auth-no-terminal). ### 3. Scan a project {#scan} ``` cd path/to/your/project tuxcarectl sca ``` `sca` sends the package list to your workspace, waits for the match, and prints the findings. The text report ends with `this scan in the portal: `. Open that link to view the scan. The link also appears under the first line of the vulnerabilities section. The report includes a link only when the scan has a page in the portal. The `sca` command reads the project without editing it. The first scan adds the repository to the workspace. Run it on a branch, not on a detached HEAD: the portal files each scan under the repository, the branch, and the commit. A JavaScript project must be installed first: run `npm install` (or `pnpm install`, `yarn install`) before `sca`. The CLI reads the dependency tree from the package manager, not from the lockfile alone, and a fresh clone without `node_modules` stops with "node_modules is missing. Run npm install". ### 4. Open the results in the portal {#open} Open your workspace, for example `https://acme.sc.tuxcare.cloud`, select **Assets** › **Repositories**, then select your repository. The **Findings** tab lists each vulnerability. The **Fix plan** tab tells you which packages to change, and to which version. ![The page of the repository github.com/acme/web-shop, with the Findings tab open, the findings grouped by package, and one package selected for bulk triage.](/guide/img/repository.png) The page of a repository. [A repository](/guide/repositories#repository) explains each part. 1. **Watch** and the branches that your watch covers, the count of the watchers, the branch selector, **Compliance reports**, and **More**. 2. The four tiles. 3. The tabs. Each tab shows its count. 4. The filters of the findings, and the choice **By package** or **Flat list**. 5. The bar of the bulk triage. It shows when you select a finding. 6. The header row of a package: the findings, the worst severity, the upgrade, and how many findings the upgrade closes. ## Next steps {#next} - Add the scan to your pipeline: [GitHub Actions](/guide/ci-github), [GitLab CI](/guide/ci-gitlab), [Jenkins](/guide/ci-jenkins), or [another CI system](/guide/ci-other). - [Invite your team](/guide/invite) to the workspace. - [Fix the findings](/guide/fix) with an upgrade or a TuxCare build. - [Keep malicious packages out](/guide/malicious) of the install. - [Triage the findings](/guide/findings#triage) that do not affect you, and [set up alerts](/guide/alerts#alerts). - A server, not a project: install the [TuxCare Radar agent](/guide/radar#install). - If a command fails, read [Troubleshooting](/guide/help#errors). --- # Install the CLI URL: /guide/install Every way to install the CLI, the two names of its variables, when a new release reaches you, and how to upgrade and pin the CLI. This page describes the newest release of the CLI. A part that needs a recent release names it, for example "CLI 0.1.86 or later". `tuxcarectl version` prints the version that you have, and names a newer release when there is one (see [Upgrade the CLI](/guide/install#upgrade)). ## Install the CLI {#install} The CLI is one file. Select the method that fits your computer or your CI job: **Install script:** For Linux and macOS. The script finds your operating system and processor, downloads the file, checks its checksum, and installs it. It does not need root access. Since CLI 0.1.99, it first checks the TuxCare signature of `checksums.txt` with the release key that it holds, through `openssl`; when `openssl` is absent or cannot read the key, it prints a warning and checks only the checksum and the version line of the binary. A private mirror must serve `checksums.txt.sig` beside `checksums.txt`. ``` curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh ``` - The script installs to `/usr/local/bin` when it can write there, else to `~/.local/bin`. Set `TUXCARE_INSTALL_DIR` to select another directory. - When the script prints "NOTE: … is not in your PATH", the next line gives an `export PATH=…` command for the folder that the script installed to. Put that command in the start file of your shell, for example `~/.zshrc` or `~/.bashrc`, and open a new terminal. - `PATH` separates its folders with colons (`:`), so it cannot hold a folder whose name has a colon. When the install folder has a colon in its name, the line after the NOTE tells you to install again: set `TUXCARE_INSTALL_DIR` to a folder with no colon, and run the script again. - Set `TUXCARE_VERSION`, for example `TUXCARE_VERSION=v0.1.100`, to install one version. See [Pin the CLI version](/guide/install#pin). - On Windows, use **npm**, **Python**, or **Manual download**. **Homebrew:** For macOS and Linux with Homebrew: ``` brew install tuxcare/tap/tuxcarectl ``` **npm:** The package `@tuxcare/tuxcarectl` holds the file for your platform. It downloads nothing when you install it. ``` npm install --global @tuxcare/tuxcarectl ``` Or run it without an installation: ``` npx @tuxcare/tuxcarectl sca ``` **Python:** The package `tuxcarectl` on PyPI holds the file for your platform. `pipx` and `uv` keep it out of the environment of your project: ``` pipx install tuxcarectl ``` Or run it without an installation: ``` uvx tuxcarectl sca ``` **Docker:** The image `tuxcare/tuxcarectl` is on Docker Hub. Mount your project and pass the token: ``` docker run --rm -v "$PWD":/work -w /work -e TUXCARE_PORTAL_TOKEN tuxcare/tuxcarectl:latest-toolchains sca ``` | Tag | What it holds | | --- | --- | | `tuxcare/tuxcarectl:latest` | The CLI only. Use it as a base image, or where your image has the package manager. | | `tuxcare/tuxcarectl:latest-toolchains` | The CLI with `npm`, `mvn`, and `pip`, for a job that has no package manager of its own. | `latest` follows the promoted release (see [When a new release reaches you](/guide/install#promoted)). In CI, pin a version, for example `tuxcare/tuxcarectl:0.1.100-toolchains`. **apt:** For Debian and Ubuntu. The TuxCare SecureChain key signs the repository, and the CLI updates with the other packages of the system. ``` curl -fsSL https://securechain.tuxcare.com/apt/tuxcare-securechain.gpg | sudo tee /etc/apt/keyrings/tuxcare-securechain.gpg >/dev/null curl -fsSL https://securechain.tuxcare.com/apt/securechain.sources | sudo tee /etc/apt/sources.list.d/securechain.sources >/dev/null sudo apt-get update && sudo apt-get install -y tuxcarectl ``` **dnf / yum:** For RHEL, AlmaLinux, Rocky Linux, and Fedora. The TuxCare SecureChain key signs the repository. ``` sudo curl -fsSL -o /etc/yum.repos.d/securechain.repo https://securechain.tuxcare.com/yum/securechain.repo sudo dnf install -y tuxcarectl ``` On a system without `dnf`, use `yum install -y tuxcarectl`. **Maven:** A Java build needs no installation: the plugin downloads the CLI for your platform, checks its checksum, keeps it in `~/.m2`, and runs it. Add the TuxCare plugin repository to `pom.xml`: ``` tuxcare https://artifacts.tuxcare.com/repository/maven-plugin-securechain/ true false ``` Then add the plugin inside ``: ``` com.tuxcare tuxcarectl-maven-plugin X.Y.Z checkverify ``` Replace `X.Y.Z` with the version of the CLI you want the plugin to run: 0.1.94 or later for `tuxcarectl-maven-plugin`. Or run it one time, with no change to `pom.xml`: ``` mvn com.tuxcare:tuxcarectl-maven-plugin:check ``` **Gradle:** The Gradle plugin works as the Maven plugin does: it downloads the CLI for your platform, checks its checksum, keeps it, and runs it. In `settings.gradle.kts`: ``` pluginManagement { repositories { maven { url = uri("https://artifacts.tuxcare.com/repository/maven-plugin-securechain/") } gradlePluginPortal() } } ``` In `build.gradle.kts`: ``` plugins { id("com.tuxcare.tuxcarectl") version "X.Y.Z" } ``` Replace `X.Y.Z` with the version of the CLI you want the plugin to run: 0.1.94 or later for `com.tuxcare.tuxcarectl`. Then run: ``` ./gradlew tuxcarectlCheck ``` `tuxcarectlCheck` shows the CLI findings and fixes in Gradle's normal console output, including when the build uses a daemon (Gradle plugin 0.1.94 or later). **Manual download:** Each release is at `https://securechain.tuxcare.com/get//`, with `checksums.txt`, a signature for each file, and the public key `securechain.pub`. `https://securechain.tuxcare.com/get/latest/` always has the files of the promoted release (see [When a new release reaches you](/guide/install#promoted)). | Platform | File | | --- | --- | | Linux x86-64 | `tuxcarectl-linux-amd64` | | Linux ARM64 | `tuxcarectl-linux-arm64` | | macOS Intel | `tuxcarectl-darwin-amd64` | | macOS Apple silicon | `tuxcarectl-darwin-arm64` | | Windows x86-64 | `tuxcarectl-windows-amd64.exe` | | Windows ARM64 | `tuxcarectl-windows-arm64.exe` | For example, on Linux x86-64: ``` curl -fsSLO https://securechain.tuxcare.com/get/latest/tuxcarectl-linux-amd64 curl -fsSLO https://securechain.tuxcare.com/get/latest/checksums.txt sha256sum --check --ignore-missing checksums.txt install -m 0755 tuxcarectl-linux-amd64 /usr/local/bin/tuxcarectl ``` On Windows, download the `.exe` file, rename it to `tuxcarectl.exe`, and put it in a directory of your `PATH`. **macOS: download with curl** macOS quarantines a file that a web browser downloads, and blocks it at the first start. Download the file with `curl`, as above. Each package gives both commands, `tuxcarectl` and `securechain`: the install script, a Linux package, and the Windows installer make `securechain` a hard link to `tuxcarectl` (a copy where the file system has no hard links), so a CI cache of `bin/securechain` alone works, and each npm package (`@tuxcare/tuxcarectl`, `@tuxcare/securechain`) and each PyPI project (`tuxcarectl`, `securechain`) gives both commands too. To move a global npm install, or a pip, pipx, or uv install, from `securechain` to `tuxcarectl`, remove the old package first (for example `npm uninstall --global @tuxcare/securechain`): the two give the same commands, and npm stops with `EEXIST` otherwise. ### The two names of each variable {#var-names} Each variable of the CLI has a new name under `TUXCARE_` and an old name under `SECURECHAIN_` (`TUXCARE_PORTAL_URL`/`SECURECHAIN_PORTAL_URL`, `TUXCARE_PORTAL_TOKEN`/`SECURECHAIN_PORTAL_TOKEN`, `TUXCARE_ID_TOKEN`/`SECURECHAIN_ID_TOKEN`, `TUXCARE_CI_SIGN_IN`/`SECURECHAIN_CI_SIGN_IN`, `TUXCARE_TENANT`/`SECURECHAIN_TENANT`, `TUXCARE_CONFIG`/`SECURECHAIN_CONFIG`, `TUXCARE_CACHE`/`SECURECHAIN_CACHE`). The CLI reads the `TUXCARE_` name first. When the two names hold different values, the CLI warns "TUXCARE_*X* and SECURECHAIN_*X* hold different values. tuxcarectl reads TUXCARE_*X* and ignores SECURECHAIN_*X*. Remove one of the two, or give both the same value", naming no value. The token and the portal URL of a run must come from one family of names: both `TUXCARE_`, both `SECURECHAIN_`, or a tie — the token holds the same value under the name of the URL's family, or a URL under the name of the token's family names the same origin. With no tie (for example `SECURECHAIN_PORTAL_TOKEN` of the job with a `TUXCARE_PORTAL_URL` that a CI group added for another host), the run stops with exit code 5 before it sends anything. The fix: set the URL under the name of the token's family as well, or move the token to the URL's family. A URL that no variable holds (the default portal, the portal of a stored login, or `--portal-url` alone) is no mix. With `TUXCARE_CI_SIGN_IN=off`, an OIDC token of the other family is no mix either: the CLI sends no OIDC token. `version`, `help`, and `completion` send nothing: they warn and do not stop. Then check the installation: ``` tuxcarectl version ``` `tuxcarectl --version` prints the same line. A CLI of version 0.1.74 or earlier does not know the option, and exits with code 2. After a command that connects to Pulse, a person at a terminal — not in CI — also gets a notice when the answer of the portal in that run names a newer promoted `tuxcarectl` release (a release in its soak gives none), below the 75-release warning. The notice names both versions and the upgrade command of your installation. For a channel with one command — the install script on Linux and macOS (`tuxcarectl upgrade`), brew, npm, pipx, and uv — the command stands alone on its own line; Docker, the system packages, Maven, Gradle, pip, and a script install on Windows get their step text at the end of the notice line. It comes at most once in 24 hours, on stderr only, and changes no exit code, no stdout, and no warning. `TUXCARE_NO_UPDATE_NOTICE=1` turns it off. The rule of the warning at 75 releases does not change. ### When a new release reaches you {#promoted} Since release 0.1.86, a new release of the CLI comes out in two steps. When TuxCare publishes the release, it is out under its version number. A tag alone does not publish a release: TuxCare can build and test a tag and not publish it, and only a published release is in the channels below. After a wait, TuxCare promotes the release, and the channels with no version move to it. The wait is 48 hours after the publish, or 18 hours while TuxCare uses the shorter wait of its release process. TuxCare can promote a release earlier, for example a security fix, or hold it longer. Each release has its own wait: an older release can be promoted while a newer one still waits. - These channels follow the promoted release: the Docker tags `latest` and `latest-toolchains`, the GitHub Action `@v0`, npm (`npm install @tuxcare/tuxcarectl` and `npx`), Homebrew, PyPI, apt, dnf and yum, the install script with no `TUXCARE_VERSION`, and `https://securechain.tuxcare.com/get/latest/`. `tuxcarectl upgrade` also moves to the promoted release. - The GitLab CI/CD component gets a new version when the release is promoted, not at its tag (since release 0.1.87): `@0` and `@~latest` follow the promoted release, and `@vX.Y.Z` of the component exists only for a promoted release. To run a newer CLI release before that, set the input `version` of the component. - A pinned version gets the new release when TuxCare publishes it: the Docker tag `tuxcare/tuxcarectl:X.Y.Z`, the GitHub Action `@vX.Y.Z`, `TUXCARE_VERSION=vX.Y.Z` of the install script, `npm install @tuxcare/tuxcarectl@X.Y.Z`, and the Maven and Gradle plugins, whose version names the CLI. ### Upgrade the CLI {#upgrade} When the CLI is 75 or more releases behind the newest release, it prints a warning on each run that connects to your workspace. The warning does not change the exit code. `tuxcarectl version` names a newer release at any distance. When the CLI is older than the oldest version that the portal accepts, the CLI stops and tells you to upgrade. To upgrade, run: ``` tuxcarectl upgrade ``` - `upgrade` finds the method that installed the CLI. It needs no token and no project. - For Homebrew, npm, pipx, uv, the install script, and a manual download on Linux or macOS, it prints the step and runs it. - For apt, dnf, Docker, Maven, and Gradle, it prints the step only. Do the step yourself: apt and dnf need root, a Docker image needs a new pull or a new tag, and the Maven and Gradle plugins use the version that your build file names. With CLI 0.1.99 or later, where `openssl` can read the key, an upgrade of an install-script installation on Linux or macOS runs the install script only after it checks the TuxCare signature of `checksums.txt` of the release with the release key of the CLI and the sha256 of `install.sh` against that list. A missing or invalid signature, or a script whose sha256 the checksum list does not name, does not run, and the old CLI stays. When `openssl` is absent or cannot read the key, the upgrade prints a warning and the sum alone gates. A private mirror (`TUXCARE_DOWNLOAD_BASE`) must serve `install.sh` and `checksums.txt.sig` in each release folder. When the checksum list of the target release names no `install.sh` (a release before CLI 0.1.99), the upgrade downloads no script: it prints the manual step, exits with code 0, and the old CLI stays. | Installation method | Upgrade step | | --- | --- | | Install script | Run the script again. If you set `TUXCARE_VERSION`, set the new version. | | Homebrew | `brew upgrade tuxcare/tap/tuxcarectl` | | npm | `npm install --global @tuxcare/tuxcarectl`. With `npx`, run `npx @tuxcare/tuxcarectl@latest`. | | Python | `pipx upgrade tuxcarectl`, or `uv tool upgrade tuxcarectl`. With `uvx`, run `uvx tuxcarectl@latest`. | | Docker | Pull the image again, for example `docker pull tuxcare/tuxcarectl:latest-toolchains`. For a pinned tag, set a newer version in the CI job. | | apt | `sudo apt-get update && sudo apt-get install --only-upgrade tuxcarectl` | | dnf / yum | `sudo dnf upgrade --refresh tuxcarectl`, or `sudo yum update tuxcarectl` | | Maven, Gradle | Set a newer version of the plugin in the build file. The plugin downloads the CLI of that version. | | Manual download | Download the file again from `https://securechain.tuxcare.com/get/latest/`, check it against `checksums.txt`, and replace the old file. | | GitHub Action, GitLab CI/CD component | The major tag (`@v0`, `@0`) follows the promoted release (see [When a new release reaches you](/guide/install#promoted)). A pinned tag, or the input `version`, keeps one release: set a newer one. | ### Pin the CLI version {#pin} The install script with no `TUXCARE_VERSION` installs the promoted release: a new release reaches it after the wait of the promotion, 48 hours after its publish or 18 hours with the shorter wait (since release 0.1.86; see [When a new release reaches you](/guide/install#promoted)). To run a new release at once, or the same release in each job, pin it: | Install method | How to pin | | --- | --- | | Install script | Set `TUXCARE_VERSION=v0.1.100` before the script. | | GitHub Action | Pin the action tag, or set the input `version`. | | GitLab CI/CD component | Pin the component version, or set the input `version`. | | Docker | Use a version tag, for example `tuxcare/tuxcarectl:0.1.100`, not `latest`. | Pin a current release. An older release does not know each option of this guide: a part that needs a recent release names it. `tuxcarectl version` names a newer release when there is one. When the CLI is 75 or more releases behind the newest release, it prints a warning. The warning does not change the exit code. A CI job that updates the CLI each month sees no warning. When it is older than the portal accepts, it stops and tells you to upgrade. See [Upgrade the CLI](/guide/install#upgrade). --- # Invite your team URL: /guide/invite Bring the people of your team into the workspace: invite each person with a role, or let each person of your company's email domain join. ## Invite a person {#invite} You need the admin role. Open [**Settings** › **People**](/settings/people). The list **Users** is at the top. Each user has one role for the whole workspace: admin, member, or viewer. A viewer reads the findings, and a member also sends scans. [Roles](/guide/invite#roles) lists what each role can do. - **Invite:** type the email address, the name, and the role, then select **Invite**. The person signs in at [sc.tuxcare.cloud](https://sc.tuxcare.cloud/) with that email address. The user is "Pending" until the first sign-in. **Resend invitation** sends the email again. - **Accept with another address:** the invitation email of the hosted service has a link that works once, for 7 days. The person who opens it signs in with any account and accepts the invitation, also when that account has another email address than the invitation: for example the main address of a mailbox whose alias you invited. The page names both addresses. The audit log records `user.invite_claim` with both addresses, and the admin who invited (else each admin) gets an email that names both. If you do not expect the claim, disable the user and invite the right address. A resend ends the link of the older email. - **Access that ends by itself:** to give a person access for a short time, for example a consultant, select a value in **Access ends** of the invitation form: **Never** (the default), after 7, 14, 30, or 90 days, or **On a date** (at most one year ahead; the access ends at the end of that day, UTC). The invitation email states the end. The list shows "ends", "pending · ends", or "ended" with the day. At that time the portal disables the user: the user cannot sign in, the sessions end, and the tokens of the user stop. Within an hour, Pulse also starts the delete of the [registry tokens](/guide/registry#registry-tokens) of the user at CLN. Seven days before the end, the user and the admins get one email. **Extend** sets a new end, and **Make permanent** removes the end. On a user whose access ended, both also enable the user again; **Enable** alone does not. **Set end date** gives an end to a user that has none. The workspace must keep one admin whose access does not end, so the portal refuses an end date on the last such admin. A user whose access ended does not count in the `users` limit. The audit log records `user.access.extend`, `user.access.permanent`, and `user.access.end`. To change a role, to give a user a name, or to disable a user, see [Users](/guide/admin#users). ## Let your company join by email domain {#join-domain} - **Join by email domain:** under [**Settings** › **Access**](/settings/access) › **Sign-in**, select **Edit** under **Join by email domain**, type the domains of your company, and select the role (member or viewer). Everyone with a Google Workspace account in those domains can then join with no invitation. You can add a domain only after a person of the workspace signed in once with an address at that domain. Free-mail domains such as gmail.com are refused. ## Roles {#roles} Each user has one role for the whole workspace. | Action | Admin | Member | Viewer | | --- | --- | --- | --- | | Read repositories, scans, and findings | Yes | Yes | Yes | | Send scans | Yes | Yes | No | | Triage findings, set the default branch, mark releases, record a CRA decision | Yes | Yes | No | | Make and revoke their own tokens | Yes | Yes | Yes | | Make scoped tokens and tokens for other users | Yes | No | No | | Register, rename, and delete repositories; manage products and product releases | Yes | No | No | | Manage one repository as its [owner](/guide/repositories#owners): the README badge and its grants, the name, and the owners | Yes | An owner only | No | | Manage users, departments, notifications, fix deadlines, and settings; read the audit log | Yes | No | No | A member or a viewer with a seat in a [department](/guide/departments#departments) sees only the repositories of that department. A user with no seat sees every repository. Every number in the portal counts only the repositories that you can see. --- # Find your way in the portal URL: /guide/portal-tour Open your workspace, move between workspaces, find a page, a setting, or an item with the search, and read the overview of the workspace. ## Open your workspace {#sign-in} Go to your workspace address, for example `https://name.sc.tuxcare.cloud`, and select the button of your sign-in provider. If an admin added a single sign-on provider, the page shows its button too. You can also sign in at [sc.tuxcare.cloud](https://sc.tuxcare.cloud/) and open the workspace from **Your workspaces**. This guide is also at [sc.tuxcare.cloud/guide](https://sc.tuxcare.cloud/guide). There, a link to a page of the portal, for example [**Settings** › **Access**](/settings/access), opens **Your workspaces** first. Sign in if the page asks you to, and select the workspace: the page that the link names opens in that workspace. If you have one workspace, the page opens in it at once. After a sign-in at the workspace address, sc.tuxcare.cloud can ask **Continue as** your email address: select it to sign in to sc.tuxcare.cloud too, or select **Not now** to go on to the workspace. Select **Continue as** only if you started the sign-in yourself. A person who has not accepted the terms sees the terms page after the first sign-in. On this page, you accept the [TuxCare Pulse Terms of Use](https://tuxcare.com/legal/securechain-portal-terms-of-use/), the [TuxCare Pulse License Agreement](https://tuxcare.com/legal/securechain-portal-license-agreement/), and the [TuxCare Pulse Data Processing Addendum](https://tuxcare.com/legal/securechain-portal-data-processing-addendum/) for the organization of the workspace, and you acknowledge the [TuxCare Pulse Privacy Policy](https://tuxcare.com/legal/securechain-portal-privacy-policy/). Read them, select the box to accept them, and select **Continue**. If the workspace has no legal name, an admin also types it in **Legal name of your organization**. The portal asks one time for each workspace, and again only when TuxCare publishes new versions of the documents. The acceptance covers the TuxCare CLI for this workspace. An admin sees the date of each person in the **Terms accepted** column of [**Settings** › **People**](/settings/people), and each acceptance under [**Settings** › **Workspace**](/settings/workspace) › [Organization](/guide/admin#organization). The account menu is the button at the right of the header. It shows the workspace, and your role on a wide window; the menu always names both. It holds your own pages: [**My profile**](/profile) (your name, which the lists of the workspace show next to your email), [**My alerts**](/my-alerts), [**My tokens**](/tokens), **Help** (the section of this guide about the page that you are on), the theme control, **Switch workspace**, and **Sign out**. The pages that manage the workspace are in [**Settings**](/settings), the item with the gear left of the account menu (see [Settings](/guide/portal-tour#settings)). A sign-in to a workspace lasts 14 days. If you do not use the workspace for 3 days, it asks you to sign in again. Select **Sign out** to end the session at once. ![The header of the portal with the account menu open: the workspace, the email address and the role, My alerts, My tokens, Help, Search pages and guide, the theme control, and Sign out. The Setup pill is left of the bell.](/guide/img/workspace-menu.png) The account menu, open. 1. The button of the menu. It shows the name of the workspace and your role, and on a wide screen your email address. 2. Your own pages: **My alerts** holds your watches, **My tokens** your access tokens, and **Help** opens the section of this guide about the page that you are on. A **?** next to the title of a setup page or of a section of **Settings** opens its section of this guide too. The line above them names the workspace and your address. Under them, **Search pages and guide** opens the [search of the pages and the guide](/guide/portal-tour#palette). 3. **Sign out** ends the session. 4. The theme control: **System**, **Light**, or **Dark**. To end a session on another device, open [**My tokens**](/tokens) in the account menu and select **Sign out** on the row of the session in **Browser sessions**. When you ask TuxCare for help, a TuxCare engineer can open a read-only view of your workspace. A banner shows "TuxCare staff — read only" during that view. When an admin shares the workspace with TuxCare sales with the stack report and a read-only view, a person of TuxCare sales can open a read-only view of the shared repositories and hosts. A banner shows "TuxCare sales — read only" during that view. That view does not show the users, the audit log, the tokens, the notifications, or the settings. It reads and does not download: it cannot save an export, an SBOM, a VEX, or a report as a file. It ends when the share ends, and at the latest after one hour. ## Workspaces {#workspaces} A workspace is one organization. Everybody in the workspace sees its repositories, except the repositories that a [department](/guide/departments#departments) hides from them. The button at the top right of the header names the workspace that you are in. It also shows your role. Open the button (the account menu) to see **Workspace:** and the name on the first line of the menu. If you belong to more than one workspace, select **Switch workspace** in the menu and choose another one. Select **Create workspace** to start a new workspace for another organization. Check the name in the button before you triage a finding or make a token: the change applies to the workspace that the button names. ## Find your way {#find} The top bar has six items. Each one answers one question. **Assets** and **Compliance** open a list of pages: | Item | The question | | --- | --- | | [Overview](/guide/portal-tour#overview) | How is the workspace now, and does it get better or worse? | | [Assets](/guide/repositories#repositories) | Which assets need work, and what is wrong in one of them? [**Repositories**](/repos), [**Images**](/images), [**Hosts**](/hosts), and **Protected Apps** when the workspace has the add-on. | | [Vulnerabilities](/guide/findings#vulnerabilities) | Which advisories affect us, and where? Are we affected by a given CVE? | | [Packages](/guide/findings#packages) | Where do we use a package, and at which versions? What do the TuxCare builds cover? | | [Remediation](/guide/findings#remediation) | Do the teams fix the findings before the fix deadline? | | [Compliance](/guide/releases#compliance) | Which findings start a CRA clock, and which reports does an auditor need? [**CRA and products**](/compliance), [**Reports and exports**](/compliance/reports), and [**CIS benchmarks**](/cis). | The item of the page that you are on is marked, and the first link of the trail above the title of a page names the same item. A repository page is under **Assets** › **Repositories** (`/repos/…`), an image page under **Assets** › **Images** (`/images/…`), and a host page under **Assets** › **Hosts** (`/hosts/…`). An older link of the form `/repos/…` to an image or a host opens the same page. Right of the search, **+ Add** brings a new asset into the workspace: [**Set up CI**](/setup-ci), [**Register repository**](/repos?add=register) (an admin or a member), **Add a host** (the steps of [Scan a host](/guide/radar#install)), and [**Import scans**](/hosts?add=import) (an admin or a member). Then come [**Settings**](/settings), the [Setup](/guide/portal-tour#setup) pill while the setup of the workspace is not complete, the [What's new](/guide/portal-tour#whats-new) bell, and the account menu. On a smaller window, the search is a magnifier that widens when you select it or press `/`, and **+ Add** shows only the plus sign. On a narrow screen, select **Menu** to see the same items, **Add**, **Settings**, and the search field. ### What's new {#whats-new} The bell in the top bar opens the What's new panel: the changes of the service that you can see, the newest first. A dot on the bell shows that the panel holds an entry that you have not opened yet; open the panel and the dot goes away. An entry that is new since your last visit has a **New** mark, and an entry that has a section in this guide links to it. ### Setup steps {#setup} Until the setup of the workspace is complete, the top bar shows the pill **Setup · 2 of 5** on every page. On a smaller window, and in TuxCare Radar, it shows the count only, for example **2/5**. Select it to open the setup panel at the right of the page. The panel lists the steps that count: 1. [Install the CLI](/guide/start#install), and sign in to the workspace with it. The step is done when the CLI used its token, or when a repository has a scan. 2. [Run the first scan](/guide/start#scan). The step is done when a repository or an image has a complete scan. 3. [Add the scan to CI/CD](/guide/ci-other#cicd). The step is done when the CI token of one repository sent a scan, or when an admin added a [CI sign-in rule](/guide/tokens#ci-sign-in). 4. [Invite your team](/guide/invite#invite) (an admin only). The step is done when the workspace has a second user. 5. [Choose the alerts](/guide/alerts#watch). The step is done when you choose a delivery or watch something, or when an admin saves the notifications of the workspace. Two more steps are optional, and do not count: [Connect an AI assistant](/guide/ai-connect#mcp) (done when a token with the right MCP was used) and [Add a host](/guide/radar#install) (done when a host has a scan). In TuxCare Radar the steps that count are Add a host, Invite your team, and Choose the alerts. A member has no invite step. The panel opens the next step that is not done. The step shows the commands to copy, a link to the page of the app where you do it, and its section of this guide. For Add the scan to CI/CD, select your CI system: the step shows the job for that system and where the token goes. [**Set up CI**](/setup-ci) makes the token. Two buttons at the bottom of the panel end the pill for you: - **Hide setup for now** hides the pill for 7 days. After that, it shows again while a step is not done. - **I am done with setup** hides the pill until you open the steps again. To open the steps again, select **Show the setup steps** or **Open the setup panel** on the [Overview](/guide/portal-tour#overview). Your browser keeps these choices for you only: each person who signs in on the same browser keeps their own, and another browser shows the pill again (the cookie notice lists this storage). Some pages where you make a choice show a hint the first time that you open them. For example, [Access tokens](/tokens) says which rights to pick for a CI pipeline, the REST API, and an AI assistant. Select **Got it** to close the hint. It does not show again for you. ### Settings {#settings} [**Settings**](/settings) has a list of sections at the left. Each section has its own address, for example [`/settings/triage`](/settings/triage), so a link or a reload keeps the section. Every role has Settings: a member and a viewer see the sections that they can read. | Section | What it holds | Who sees it | | --- | --- | --- | | [Workspace](/settings/workspace) | The [organization](/guide/admin#organization), the [fix deadlines](/guide/findings#deadlines), and the host criticality rules | Every role; an admin changes them | | [People](/settings/people) | The [users](/guide/admin#users) and the [departments](/guide/departments#departments) | Admin | | [Triage rules](/settings/triage) | The [suppression rules](/guide/findings#suppress-list), the requests, the [reports to TuxCare](/guide/findings#report-switch), and the customer cases | Every role; a member makes requests | | [Alerts](/settings/alerts) | The [notifications](/guide/alerts#alerts), the webhooks, and the watchers | Admin | | [Access](/settings/access) | The [sign-in](/guide/sso#sso), the [session time](/guide/sso#session-policy), every token, [API and MCP access](/guide/ai-connect#api-mcp-on), and the [CI sign-in rules](/guide/tokens#ci-sign-in) | Admin | | [Registry and CLI](/settings/registry) | The [use of the TuxCare registry](/guide/registry#registry-use), the [registry token](/guide/registry#registry-token), and the [CLI report](/guide/admin#cli-coverage-sections) | Admin | | [Protected Apps](/settings/apps) | The [restart policy](/guide/protected-apps#restart-policy) of the apps | Admin, with the add-on | | [Plan and limits](/settings/limits) | Each limit of the workspace and its use: repositories, users, tokens, webhooks, scans a day, host scans a day, releases, and the time that a scan is kept. A row near its limit says so. | Every role | | [Audit log](/settings/audit) | Who changed what, and when | Admin | ### Search {#search} The search field in the header finds an asset, a Protected App, a package, or an advisory by its name. Press `/` to go to it, and type two letters or more. The list under the field shows the results, for example the host `a11y-alma9`, the repository `web-shop`, or the app `shop-api`. A result with the exact name comes first. Press `Enter` to open the first result. Under the results, the list offers the pages that search the text: - An advisory id, for example `CVE-2021-23337` or `GHSA-35jh-r3h4-6jhm`, searches [Vulnerabilities](/guide/findings#vulnerabilities) first. - A name and a version range, for example `lodash@<4.17.21`, searches [Packages](/guide/findings#packages) first. - A path, for example `acme/web-shop`, searches [Repositories](/guide/repositories#repositories) first. With no result, `Enter` opens the first of these pages. ### Search the pages and the guide {#palette} Press `⌘` `K` on a Mac, or `Ctrl` `K` on another computer, on any page of the workspace. You can also select **Search pages and guide** in the account menu. A search box opens over the page. Type a word, for example `tokens` or `github actions`: - **Pages** lists the pages of the app that the menus show you, for example **My tokens** or **Set up CI**. - **User guide** lists the sections of this guide, ranked as the search box of the guide ranks them. The search runs in your browser on the host of the workspace, so it also works on an on-prem install with no internet access. Press `↓` and `↑` to move through the results, and `Enter` to open one. Press `Esc` to close the search. The search box finds pages and guide sections; the [search field](/guide/portal-tour#search) of the header finds assets, packages, and advisories by their name. Most pages keep their filters in the page address. Copy the address to share a filtered view. Select the **?** button next to a label to read what the label means. ### Filter by asset kind {#asset-kind} The [Overview](/guide/portal-tour#overview), [Vulnerabilities](/guide/findings#vulnerabilities), [Packages](/guide/findings#packages), and [Remediation](/guide/findings#remediation) pages have the buttons **All**, **Repositories**, **Images**, and **Hosts**. Select a button to show the findings and the packages of that kind of asset only. **All** shows every kind. The selected button has a check mark. The page address keeps the choice, and the links from the Overview to the other pages keep it too. ## Overview {#overview} The **Overview** is the first page. It shows the security state of the workspace for a department and a period (the last 30, 90, or 180 days). A new workspace has no scan yet, so its tiles would all read 0. Until the first scan, the **Overview** shows the steps of **Set up your workspace** in place of the tiles and the charts. They are the steps of the [setup panel](/guide/portal-tour#setup): **Install the CLI**, **Run the first scan**, **Add the scan to CI/CD**, **Invite your team** (an admin only; with no sign-in provider, the step starts with the sign-in), and **Choose the alerts**, then the optional steps **Connect an AI assistant** and **Add a host** (a token with the rights **Upload only**, and the agent). The portal ticks a step when it is done. A TuxCare Radar workspace starts with the host step and has no step of the CLI. **Open the setup panel** opens the panel, where each step shows its commands. After the first scan the page shows the tiles. While a step is open, **Show the setup steps** above the tiles shows the steps again, and **Back to the overview** goes back. A list with no row and no filter, on the pages Repositories, Hosts, Vulnerabilities, Packages, and Protected Apps, shows one sentence and one link to the next step, for example **Set up CI**, in place of tiles of 0. Remediation does the same when no finding opened or closed in its period: its period and its report stay, because an older finding can exist. ![The Overview page, with five tiles, two charts of the open findings, and the Fix first table of five packages.](/guide/img/overview.png) The **Overview** page. 1. The department, the period, and **Export**. 2. The five tiles. Select a tile to open the page that explains it. 3. The two charts. **Table** shows the same numbers as a table. 4. **Fix first**: the package upgrades that close the most risk. **Open findings** : The open findings of every repository, the change in the period, and a bar of the severities. **Critical and Known exploited** : Two values in one tile: the open critical findings, and the open [known-exploited](/guide/glossary#terms) findings. The line under them counts the open [CRA clocks](/guide/releases#cra-clocks). **Past fix deadline** : The open findings that are older than their [fix deadline](/guide/findings#deadlines), and the share of findings that closed in time. **Fixable now** : The open findings that have a fix: an upstream version or a TuxCare build. **Scan coverage** : The repositories that sent a scan in the last 7 days. It also counts the stale repositories (no scan for 14 days), the repositories with no scan, and the repositories that are not evaluated: a [release that is not evaluated](/guide/releases#release-not-evaluated), an operating-system release with no advisory data, or a [package that the portal did not check](/guide/repositories#grade). - **Open findings by severity** shows the open findings of each day. The portal counts them once a day, from the first day of the count. - **New and resolved findings** shows, for each week, the new findings above the line and the resolved findings below it. An upgrade to a version that has the same advisory does not resolve the finding. - **Fix first** lists five package upgrades: the package, the repositories, the findings that the upgrade closes, the version to move to, and the source of the fix ("upstream", "TuxCare ELS", or "TuxCare SecureChain"). The package with the worst severity comes first; inside one severity, a package with a known-exploited finding comes first. "major version" marks an upgrade to a new major version. - **Repositories that need attention** lists the repositories with the worst [grade](/guide/repositories#badge-grade). **New in the last 7 days** lists the repositories with new open findings. --- # GitHub Actions URL: /guide/ci-github Scan each push and each pull request of a GitHub repository, and fail the job when a high or critical finding is open. ## Before you start {#before} - A token for the pipeline. In your workspace, [**+ Add** › **Set up CI**](/setup-ci) mints the token of one repository and shows this job, with buttons that copy them. Or make the token yourself: see [Make a token for the pipeline](/guide/tokens#cicd-token). Does one CI template or one CI server build many repositories of your team? Then ask an admin for a department token (see [Pick a token for the pipeline](/guide/tokens#tokens)). - The install step of your project, before the scan. The examples use `npm ci`. See [what the job needs before the scan](/guide/package-managers#job-needs). - The job also keeps malicious packages out of the install (CLI 0.1.94 or later): `tuxcarectl guard check` and `tuxcarectl guard setup --ci` before the install step. See [Malicious packages](/guide/malicious#ci). ## Add the job {#cicd-github} Store the token in the secret store of GitHub with the name `TUXCARE_PORTAL_TOKEN`. The CLI reads it from that variable and writes it nowhere. Add the token under **Settings** › **Secrets and variables** › **Actions** › **New repository secret**. Then add `.github/workflows/tuxcarectl.yml`: ``` name: tuxcarectl on: push: branches: [main] pull_request: jobs: tuxcarectl: runs-on: ubuntu-latest env: TUXCARE_PORTAL_TOKEN: ${{ secrets.TUXCARE_PORTAL_TOKEN }} steps: - uses: actions/checkout@v4 - run: | curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh echo "$HOME/.local/bin" >> "$GITHUB_PATH" - run: tuxcarectl guard check - run: tuxcarectl guard setup --ci - run: npm ci # the install step of your project, through the guard - run: tuxcarectl sca --fail-on high ``` GitHub gives no secret to a pull request from a fork, so that job stops with exit code 3. ## Fail a pull request only on new findings {#pull-requests} `compare --fail-on-new` fails a pull request only on the findings that it adds, not on the old findings of the base branch. The job scans the base branch on each push, and compares each pull request with it. See [Pull and merge requests](/guide/ci-gates#pull-requests). ``` name: tuxcarectl on: push: branches: [main] pull_request: jobs: tuxcarectl: runs-on: ubuntu-latest steps: - uses: actions/checkout@v4 - run: npm ci # the install step of your project - name: Scan the branch if: github.event_name == 'push' uses: TuxCare/tuxcarectl-action@v0 with: command: sca args: --fail-on high portal-token: ${{ secrets.TUXCARE_PORTAL_TOKEN }} registry-login: none - name: Fail on new findings if: github.event_name == 'pull_request' uses: TuxCare/tuxcarectl-action@v0 with: command: compare args: --base ${{ github.base_ref }} --fail-on-new portal-token: ${{ secrets.TUXCARE_PORTAL_TOKEN }} registry-login: none ``` ## Sign in with no stored token {#ci-sign-in} GitHub Actions gives each job a signed OIDC token. With a trust rule of an admin ([CI sign-in](/guide/tokens#ci-sign-in)), the job trades it for a portal token of one hour, and the repository stores no portal token. Change the job as below. `PORTAL_URL` is the address of your workspace, with no slash at the end. The audience of the OIDC token must be this address. ``` permissions: id-token: write contents: read steps: - name: Sign in to the portal env: PORTAL_URL: https://acme.example.com run: | oidc=$(curl -sS -H "Authorization: Bearer $ACTIONS_ID_TOKEN_REQUEST_TOKEN" \ "$ACTIONS_ID_TOKEN_REQUEST_URL&audience=$PORTAL_URL" | jq -r .value) token=$(jq -n --arg t "$oidc" '{token: $t}' | curl -sS --fail-with-body -X POST \ --data-binary @- "$PORTAL_URL/securechain/v1/ci-token" | jq -r .access_token) echo "::add-mask::$token" echo "TUXCARE_PORTAL_TOKEN=$token" >> "$GITHUB_ENV" ``` ## More {#more} - [Record a release](/guide/ci-releases) from the job of a tag: `tuxcarectl sca --release "$GITHUB_REF_NAME"`. - [Upload the findings to GitHub code scanning](/guide/ci-reports#reports) as a SARIF file. - [Choose the gate](/guide/ci-gates#gate) of each branch. --- # GitLab CI URL: /guide/ci-gitlab Scan each pipeline of a GitLab project, fail a merge request only on the findings that it adds, and keep the token safe. ## Before you start {#before} - A token for the pipeline. In your workspace, [**+ Add** › **Set up CI**](/setup-ci) mints the token of one repository and shows this job, with buttons that copy them. Or make the token yourself: see [Make a token for the pipeline](/guide/tokens#cicd-token). Does one CI template or one CI server build many repositories of your team? Then ask an admin for a department token (see [Pick a token for the pipeline](/guide/tokens#tokens)). - The install step of your project, before the scan. The examples use `npm ci`. See [what the job needs before the scan](/guide/package-managers#job-needs). - The job also keeps malicious packages out of the install (CLI 0.1.94 or later): `tuxcarectl guard check` and `tuxcarectl guard setup --ci` before the install step. See [Malicious packages](/guide/malicious#ci). ## Add the job {#cicd-gitlab} Store the token as a CI/CD variable with the name `TUXCARE_PORTAL_TOKEN`. The CLI reads it from that variable and writes it nowhere. Add the token under **Settings** › **CI/CD** › **Variables**, with the visibility **Masked**. Then add a job to `.gitlab-ci.yml`: ``` tuxcarectl: image: node:22 # the image that builds your project script: - curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh - tuxcarectl guard check - guard_path="$(tuxcarectl guard setup --ci)" - eval "$guard_path" - npm ci # the install step of your project, through the guard - tuxcarectl sca --fail-on high ``` A **Protected** variable goes to the pipelines of protected branches only. In other pipelines, the job stops with exit code 3. ## Fail a merge request only on new findings {#merge-requests} `compare --fail-on-new` fails a merge request only on the findings that it adds. The default branch needs a scan of its own, so the first job scans it on each push. See [Pull and merge requests](/guide/ci-gates#pull-requests). ``` tuxcarectl: image: node:22 rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH script: - npm ci # the install step of your project - curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh - tuxcarectl sca --fail-on high tuxcarectl-new-findings: image: node:22 rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" script: - npm ci - curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh - tuxcarectl compare --base "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" --fail-on-new ``` The merge request job runs on the source branch. If `TUXCARE_PORTAL_TOKEN` is **Protected**, GitLab gives it to protected branches only, and the job stops with exit code 3. Keep **Protected** on that variable when its token has wider rights than one repository, or when an admin saved a registry token in the workspace (see below): every branch could then read it. Choose one of these two ways. 1. **A second token for the merge request job (recommended when the workspace has no registry token).** Mint the **CI token (one repository)** preset for this repository ([pick a token](/guide/tokens#tokens)). Save it in a variable `TUXCARE_MR_TOKEN`: **Masked**, not **Protected**. Only the merge request job reads it. The protected token stays for the default branch. 2. **Run the merge request job for protected source branches only.** The protected token then works, but a merge request from an ordinary feature branch gets no check. Use this rule: `- if: $CI_PIPELINE_SOURCE == "merge_request_event" && $CI_COMMIT_REF_PROTECTED == "true"`. In a merge request pipeline, `CI_COMMIT_REF_PROTECTED` tests the source branch. Here is the job for the first way: ``` tuxcarectl-new-findings: image: node:22 variables: TUXCARE_PORTAL_TOKEN: $TUXCARE_MR_TOKEN rules: - if: $CI_PIPELINE_SOURCE == "merge_request_event" script: - npm ci - curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh - tuxcarectl compare --base "$CI_MERGE_REQUEST_TARGET_BRANCH_NAME" --fail-on-new ``` The risk: every branch of the project can read an unprotected variable. Anyone who can push a branch can print the token. The token can upload scans and read the findings of this one repository only. It cannot read other repositories, and it expires in 90 days at most. Mint a new one before it expires. The token can also get the [registry token](/guide/registry#registry-token) of the workspace. Every token with the `submit` permission can get it, also a token of one repository. So anyone who can push a branch to the project can get the registry token from this variable. When an admin saved a registry token in the workspace, use the second way, or ask an admin before you use the first way. The **Audit log** records the reads of the registry token through the CLI: one row a day for each token and network. ## Sign in with no stored token {#ci-sign-in} GitLab CI gives each job a signed OIDC token. With a trust rule of an admin ([CI sign-in](/guide/tokens#ci-sign-in)), the job trades it for a portal token of one hour, and the project stores no portal token. Change the job as below. `PORTAL_URL` is the address of your workspace, with no slash at the end. The audience of the OIDC token must be this address. ``` scan: variables: PORTAL_URL: https://acme.example.com id_tokens: PORTAL_ID_TOKEN: aud: https://acme.example.com script: - export TUXCARE_PORTAL_TOKEN=$(jq -n --arg t "$PORTAL_ID_TOKEN" '{token: $t}' | curl -sS --fail-with-body -X POST --data-binary @- "$PORTAL_URL/securechain/v1/ci-token" | jq -r .access_token) ``` ## More {#more} - [Let the job report findings and not stop the pipeline](/guide/ci-gates#exit): `allow_failure: exit_codes: [1]`. - [Record a release](/guide/ci-releases) from the job of a tag: `tuxcarectl sca --release "$CI_COMMIT_TAG"`. - [Send the results to other tools](/guide/ci-reports#reports), for example the JUnit test report of GitLab. --- # Jenkins URL: /guide/ci-jenkins Scan each build of a Jenkins pipeline, and fail a pull request build only on the findings that it adds. ## Before you start {#before} - A token for the pipeline. In your workspace, [**+ Add** › **Set up CI**](/setup-ci) mints the token of one repository and shows this job, with buttons that copy them. Or make the token yourself: see [Make a token for the pipeline](/guide/tokens#cicd-token). Does one CI template or one CI server build many repositories of your team? Then ask an admin for a department token (see [Pick a token for the pipeline](/guide/tokens#tokens)). - The install step of your project, before the scan. The examples use `npm ci`. See [what the job needs before the scan](/guide/package-managers#job-needs). - The job also keeps malicious packages out of the install (CLI 0.1.94 or later): `tuxcarectl guard check` and `tuxcarectl guard setup --ci` before the install step. See [Malicious packages](/guide/malicious#ci). ## Add the stage {#cicd-jenkins} Add the token under **Manage Jenkins** › **Credentials** as **Secret text**, with the ID `tuxcarectl-portal-token`. Then add a stage to the `Jenkinsfile`: ``` stage('tuxcarectl') { environment { TUXCARE_PORTAL_TOKEN = credentials('tuxcarectl-portal-token') } steps { sh ''' set -e curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh export PATH="$HOME/.local/bin:$PATH" tuxcarectl guard check guard_path="$(tuxcarectl guard setup --ci)" eval "$guard_path" npm ci # the install step of your project, through the guard tuxcarectl sca --fail-on high ''' } } ``` ## Fail a pull request only on new findings {#pull-requests} `compare --fail-on-new` fails a pull request build only on the findings that it adds. The base branch needs a scan of its own, so scan it on each build. See [Pull and merge requests](/guide/ci-gates#pull-requests). In a multibranch pipeline, `CHANGE_TARGET` is set for a pull request build. ``` sh ''' npm ci # the install step of your project curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh export PATH="$HOME/.local/bin:$PATH" if [ -n "$CHANGE_TARGET" ]; then tuxcarectl compare --base "$CHANGE_TARGET" --fail-on-new else tuxcarectl sca --fail-on high fi ''' ``` ## More {#more} - [Record a release](/guide/ci-releases) from a tag build (with tag discovery on): `tuxcarectl sca --release "$TAG_NAME"`. - [Send the results to other tools](/guide/ci-reports#reports), for example the JUnit test report of Jenkins. --- # Other CI systems URL: /guide/ci-other Add the scan to Bitbucket Pipelines, Azure Pipelines, CircleCI, or any other CI system that runs a shell. ## How the job works {#cicd} A scan from each build keeps the portal current. The job installs the CLI, reads a token from a secret variable, scans, and fails when a high or critical finding is open. Before the install step, the job also keeps malicious packages out (CLI 0.1.94 or later). `tuxcarectl guard check` fails the job when the lockfile locks a known malicious version. `tuxcarectl guard setup --ci` puts the guard in front of the package managers, so the `npm ci` of the next step runs as `tuxcarectl guard npm ci`. Outside GitHub Actions, keep the guard lines and the install in one shell of the job, as in the examples: a later step or job does not get the guard. On a Windows runner, run each tool as `tuxcarectl guard `. See [Malicious packages](/guide/malicious#ci). Run the scan after the install step of the project: see [what the job needs before the scan](/guide/package-managers#job-needs). The page [**Set up CI**](/setup-ci) of your workspace (**+ Add** › **Set up CI**, or a button of **Repositories**) does steps 1 to 3 for one repository: it mints the token and shows the job for your CI system, with buttons that copy them. To find the repository, type a part of its name in the **Repository** box: the list shows only the repositories that match. ### Keep the token as a secret {#cicd-secret} Make a token for the pipeline (see [Make a token for the pipeline](/guide/tokens#cicd-token)). Store it in the secret store of your CI system with the name `TUXCARE_PORTAL_TOKEN`. The CLI reads it from that variable and writes it nowhere. The steps for each system follow. On GitHub Actions and GitLab CI, a job can sign in with no stored token: see [CI sign-in](/guide/tokens#ci-sign-in). ## Bitbucket Pipelines {#cicd-bitbucket} Add the token under **Repository settings** › **Pipelines** › **Repository variables**. Select **Secured**, then **Add**. Then add `bitbucket-pipelines.yml`: ``` image: node:22 # the image that builds your project pipelines: default: - step: name: tuxcarectl script: - curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh - tuxcarectl guard check - guard_path="$(tuxcarectl guard setup --ci)" - eval "$guard_path" - npm ci # the install step of your project, through the guard - tuxcarectl sca --fail-on high ``` Bitbucket gives no secured variable to a pull request from a fork. ## Azure Pipelines {#cicd-azure} Add the token under **Pipelines** › your pipeline › **Edit** › **Variables** › **New variable**, and select **Keep this value secret**. Then add `azure-pipelines.yml`: ``` trigger: - main pool: vmImage: ubuntu-latest steps: - script: | set -e curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh export PATH="$HOME/.local/bin:$PATH" tuxcarectl guard check guard_path="$(tuxcarectl guard setup --ci)" eval "$guard_path" npm ci # the install step of your project, through the guard tuxcarectl sca --fail-on high displayName: tuxcarectl env: TUXCARE_PORTAL_TOKEN: $(TUXCARE_PORTAL_TOKEN) ``` Azure Pipelines gives a secret variable to a step only through `env`, as in the job. Keep the install in this step: a later step does not get the guard. ## CircleCI {#cicd-circleci} Add the token under **Project Settings** › **Environment Variables** › **Add Environment Variable**. Then add `.circleci/config.yml`: ``` version: 2.1 jobs: tuxcarectl: docker: - image: cimg/node:lts # the image that builds your project steps: - checkout - run: name: tuxcarectl command: | curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh export PATH="$HOME/.local/bin:$PATH" tuxcarectl guard check guard_path="$(tuxcarectl guard setup --ci)" eval "$guard_path" npm ci # the install step of your project, through the guard tuxcarectl sca --fail-on high workflows: tuxcarectl: jobs: - tuxcarectl ``` CircleCI gives no environment variable to a pull request from a fork. Keep the install in this run step: a later step does not get the guard. ## Any other CI system {#cicd-other} Set `TUXCARE_PORTAL_TOKEN` from the secret store. Then run these commands in one shell of the job, after the checkout. `set -e` stops the job at the first command that fails: ``` set -e curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh export PATH="$HOME/.local/bin:$PATH" tuxcarectl guard check guard_path="$(tuxcarectl guard setup --ci)" eval "$guard_path" npm ci # the install step of your project, through the guard tuxcarectl sca --fail-on high ``` When the portal does not answer, the guard stops the job by default only in a CI run: the CLI reads `CI=true` and the variables of the common CI systems. Elsewhere it warns, and the install goes on with no filter. If your CI system does not set `CI=true`, add `export CI=true` before the guard lines. See [When the portal does not answer](/guide/malicious#portal-down). The CLI reads the repository, the branch, and the commit from the variables of GitHub, GitLab, Azure Pipelines, Jenkins, CircleCI, and Bitbucket Pipelines (the last two: CLI 0.1.46 or later), else from git. On Windows, install the CLI with npm or pipx. Name the job and its file `tuxcarectl`, as in the examples. The name then tells the people who read the pipeline what the job does. --- # Gates and pull requests URL: /guide/ci-gates Choose when a CI job fails: on the severity of a finding, on a known-exploited or malicious package, or only on the findings that a pull request adds; and read the exit codes of the CLI. ## Choose the gate {#gate} | Command | The job fails when | Use it on | | --- | --- | --- | | `tuxcarectl sca` | Never. It only reports. | Any branch, to keep the portal current. | | `tuxcarectl sca --fail-on high` | An open finding is high or critical. The other levels are `critical`, `medium`, and `low`. | The default branch and the release branches. | | `tuxcarectl sca --fail-on-exploited` | An open finding is known exploited, at any severity. It combines with `--fail-on`: either gate fails the job. CLI 0.1.80 or later. | The default branch and the release branches. | | `tuxcarectl compare --base main --fail-on-new` | The branch has an open finding that the latest scan of `main` does not have. | Pull requests and merge requests. See [Pull and merge requests](/guide/ci-gates#pull-requests). | | `tuxcarectl check` | A project that uses TuxCare builds is not in the state that `harden` made. | Projects that use TuxCare builds. See [Fix vulnerabilities](/guide/fix#builds-ci). | - **Skip what your team ignored.** `--baseline-portal` makes `sca` skip the findings that your team [ignored](/guide/findings#triage) in the portal. To turn it on for every run, set `baseline.portal: true` in [`.tuxcare.yaml`](/guide/config#config). - **The gate on known-exploited findings.** A finding is known exploited when the portal has a claim for it from CISA KEV, CVE ADP, or EUVD. A finding that your team [ignored](/guide/findings#triage) in the portal under `--baseline-portal`, a finding that a TuxCare build fixes, a finding with no fix planned or a live-patched finding (a CLI release after 0.1.84), and a dev finding under `--ignore-dev` do not fail this gate. When no finding that can fail the gate is known exploited and the run did not read a part of the project, `sca --fail-on-exploited` alone fails the job, as `--fail-on` does (CLI 0.1.86 or later): exit code 5 with the fix of each part, or exit code 2 when the part is a gap of tuxcarectl (see [A part of the project that the run did not read](/guide/ci-gates#gate-unread)). CLI 0.1.82 to 0.1.85 printed a warning and exited with code 0. `compare` has no `--fail-on-exploited`: the summary of the portal does not count the new known-exploited findings. Run `sca --fail-on-exploited` beside `compare --fail-on-new`. `image submit` has no `--fail-on-exploited` either: its gates are `--fail-on` and [the malicious gate](/guide/ci-gates#gate-malicious). To turn the gate on for every run, set `fail_on_exploited: true` in [`.tuxcare.yaml`](/guide/config#config). - **The gate on malicious packages.** With CLI 0.1.94 or later, an open finding of a [malicious package](/guide/malicious) fails `sca` with exit code 1, with or without `--fail-on`, at any severity. `--ignore-dev` does not leave it out, and a suppression rule of the portal does not excuse it. With CLI 0.1.100 or later, a failed pull of the portal baseline under `baseline.on_fetch_error: closed` does not hide it either. When the run read all the findings, it then judges only the malicious gate: it exits with code 1 for an open malicious finding. With no such finding, the failed pull gives the exit code, as before: for example 4 for a portal that did not answer, or 3 for a refused token. `--fail-on` and `--fail-on-exploited` do not judge their findings without the baseline. After a signal, the end of `--timeout`, `--fix`, a toolchain that did not resolve, or a read of the findings that ended short, the malicious finding does not decide the exit code. Starting with the release that adds the malicious package gate to image scans, `image submit` also exits with code 1 on an open malicious package finding in the image at any severity, with or without `--fail-on`. Earlier releases of `image submit` gate findings only when you set `--fail-on`. Only the ignore of an admin of the workspace in the portal excuses it: see [Allow a version](/guide/malicious#allow). An older CLI gates a malicious finding only by its severity. - **A part of the project that the run did not read.** From CLI 0.1.86, `sca --fail-on` fails the job when no finding reached the level and the run could not read a part of the project. The job exits with code 5 when you can fix the part: the message names each part and its fix, for example a lockfile that does not parse. It exits with code 2 when the part is a gap of tuxcarectl, for example a file that tuxcarectl does not support: report it to [TuxCare](/guide/help#help). A finding at the level still gives exit code 1. From CLI 0.1.97, such a part also comes before a portal that did not answer: under `--on-portal-error fail` the run then exits 5 or 2 for the part, not 4. To keep exit code 0 until 2027-12-01, give `--accept-unread all`, or set `accept_unread: all` in [`.tuxcare.yaml`](/guide/config#config). Each run that uses it prints a deprecation warning. Fix each part that the report names before that date. Plain `sca` with no gate does not change: it exits with code 0. - **A part of a container image that the run did not read.** `tuxcarectl image submit --fail-on` follows the same rule as `sca --fail-on`. A package reader that did not read a part of the image, for example an rpm database that does not parse, is a refusal with `not_read`. CLI 0.1.93 introduced the warning, which its replacement 0.1.94 also prints. Releases that only warn about unread parts exit with code 0 when no finding fails a gate. With CLI 0.1.96 or later, `--fail-on` stops the build there, for example "--fail-on high: no finding reached the bar, but tuxcarectl did not read 1 part(s) of this image, so this build does not pass": it exits with code 5 and names the repair when the reader diagnoses a damaged file, else it exits with code 2 and directs you to [TuxCare support](/guide/help#help). A finding at the level still gives exit code 1. From CLI 0.1.97, an unread part takes precedence over a portal that did not answer under `--on-portal-error fail`. `--accept-unread all` skips the unread-part exit until 2027-12-01 and emits one deprecation warning per run; `image submit` reads no `accept_unread` key. Fix the image, or report the reader to [TuxCare](/guide/help#help). Plain `image submit` with no `--fail-on` reports unread parts. Starting with the release that adds [the malicious package gate to image scans](/guide/ci-gates#gate-malicious), an open malicious finding still fails the job with exit code 1. - **A portal that does not answer.** The job then exits with code 4. `--on-portal-error warn` makes it go on with a warning. Use it when a build must never wait for the portal. From CLI 0.1.97, under the default `--on-portal-error fail`, an outage of the portal at the upload, at the release call, or at the read of the findings does not hide a part of the project or the image that the run did not read: `sca --fail-on` (also `sca --fail-on-exploited`) and `image submit --fail-on` then exit with code 1 for a finding at a gate, else with code 5 (the message names the fix) or 2 (a gap of tuxcarectl), not with code 4. When the run read the whole project or image, an outage of the upload or of the read of the findings gives exit code 4, also beside a finding. With CLI 0.1.100 or later, after a complete read of the findings, a finding at a gate also wins over a failure of the release call — an outage, or a refusal named or unnamed: the job exits with code 1, and the output says that the release is not recorded and why. After a signal, at the end of the `--timeout` limit, with `--fix`, or beside a toolchain that did not resolve, the finding does not win over the release failure. When an outage at the upload, at the release call, or at the read of the findings gives way to a part not read, a toolchain that did not resolve takes precedence with exit code 5, before a finding or the unread-part exit. A refusal of the release call never gives way to a part not read: with no finding at a gate it keeps its own exit code under each policy. An unnamed refusal of the upload or of the read of the findings (a `4xx` that the contract does not name, or a document over a cap) and a signal keep exit code 4 under each policy. Under `fail`, the end of the `--timeout` limit and `--fix` keep exit code 4 for an outage at the upload, at the release call, or at the read of the findings. - **A CVE that TuxCare has not evaluated.** The portal marks a CVE as not evaluated when TuxCare has not assessed it on the installed TuxCare build (see [The vulnerabilities of a host](/guide/radar-hosts#not-evaluated)). With CLI 0.1.99 or later, such a CVE fails no gate: `sca`, `sbom --vulns`, and `image submit --fail-on` keep their exit code. `sca` and `image submit` print one warning with the count of these CVEs and of their packages, and `--output json` lists each package and CVE in `vulnerabilities.source.not_evaluated_findings`. The markdown format prints no warning: with `--output markdown`, the vulnerabilities section opens with a "Not evaluated" paragraph. `sca --output sarif` carries each one as a notification (`securechain-not-evaluated`), never as an alert of code scanning; `image submit` has no SARIF output. `sbom --vulns` writes the warning into the SBOM document. A run whose only CVEs are not evaluated is not reported clean. ## Pull and merge requests {#pull-requests} A pull request often inherits old findings from the base branch. `compare --fail-on-new` fails it only on the findings that it adds. The base branch needs a scan of its own, so scan the base branch on each push too. A finding that is **Not evaluated** on the base branch (TuxCare has not assessed the build, see [Servers](/guide/radar-hosts#findings)) and open on your branch counts as new, so `compare --fail-on-new` fails on it. **A Gradle or Maven project runs its build.** Each command that reads a Gradle or Maven project runs the build of the project, `registry check` too: its build scripts and `./gradlew`, or the files and extensions of `.mvn/` of Maven. This holds with and without `--run-project-hooks`, and no option turns it off. So a scan of a merge request from a fork, or of other code that you do not trust yet, runs that code. Run such a scan in a sandbox job that holds no secret that the code must not read. The jobs for each CI system: [GitHub Actions](/guide/ci-github#pull-requests), [GitLab CI](/guide/ci-gitlab#merge-requests), and [Jenkins](/guide/ci-jenkins#pull-requests). The portal files the scan of a pull request under the branch that it comes from. The portal sends [alerts](/guide/alerts#alerts) for the default branch and the supported releases only, so a feature branch sends none. ## Exit codes in CI {#exit} | Code | Meaning | What to do | | --- | --- | --- | | 0 | The run finished. No finding failed the gate. | Nothing. | | 1 | A finding failed the gate. | Read the findings in the job log or in the portal. | | 2 | A wrong option, a configuration file that the CLI cannot read, no package manager that it knows, or an `--ecosystem` or `ecosystems` name that it does not know (from version 0.1.71; the message lists the names). | Read the message. | | 3 | No token, or the portal refused it. | Check the secret variable. See [Troubleshooting](/guide/help#errors). | | 4 | The portal did not answer in time, or its answer failed a check. | Run the job again, or use `--on-portal-error warn`. | | 5 | A tool on your side failed: the install command of your package manager, a project environment that the CLI cannot find, or a file that the CLI cannot write. Starting with the release that adds [shared configuration locking](/guide/fix#shared-configuration), a wait for the lock also exits 5 if it reaches the timeout or the command cancels the wait after a signal. The two names of the portal URL (`TUXCARE_PORTAL_URL` and `SECURECHAIN_PORTAL_URL`) for two portals while a token is set stop with this code and send nothing; a refused global flag still exits 2 first. | Read the job log. If the CLI was waiting for the lock, the error names the `--timeout` limit or the signal that ended the wait. | | 6 | `harden`, `update`, `unharden`, or `fix` changed the project, but the installed packages are not the planned ones. The CLI put your files back. | Read the message. [Contact TuxCare](/guide/help#help) if the error stays. | | 7 | An error in the CLI. The CLI prints "internal error: *what the run was doing*: *error*; please report this to TuxCare support" and writes no report file. | Run `tuxcarectl doctor --bundle file`, and send the archive to [TuxCare](/guide/help#help). | **The install script never exits 1** (from version 0.1.71). It exits 5 when you must fix something on your side: the operating system or the CPU type, a directory that it cannot write, no answer from the server, or a download that failed. It exits 7 when the TuxCare release is wrong: no version, no checksum line, a checksum that does not match, a missing or invalid TuxCare signature of `checksums.txt`, or a downloaded binary that reports another version than the one that the script installs (install scripts since CLI 0.1.99). So `exit_codes: [1]` below lets only findings through, and a failed install fails the job. An older install script exits 1 when it fails: pin version 0.1.71 or later, or end the install line with `|| exit 5`. To let a job report findings and not stop the pipeline, allow exit code 1 only. In GitLab, write `allow_failure: exit_codes: [1]`. Do not write `allow_failure: true`: it also hides the codes 2 to 7, where the CLI could not do its job, and the pipeline then shows green for a scan that did not run. **The install command of your project also exits 1 when it fails**, for example `npm ci` or `pip install`. With `exit_codes: [1]`, the job then shows amber for a scan that did not run. End each install line with `|| exit 5`, as in the example below. The CI/CD component does this for its `install` input from the CLI release after version 0.1.72: it prints the code of the install and exits 5. GitLab Runner 19.0 and earlier can report exit code 1 in place of the real code, so `exit_codes: [1]` also lets a code from 2 to 7 pass. Set the variable `FF_USE_NEW_BASH_EVAL_STRATEGY: "true"` in the job: the runner then reports the real code. Runner 19.1 and later always reports the real code and ignores the variable. ``` tuxcarectl: image: node:22 variables: FF_USE_NEW_BASH_EVAL_STRATEGY: "true" # GitLab Runner 19.0 and earlier allow_failure: exit_codes: [1] script: - npm ci || exit 5 # the install step of your project - curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh - tuxcarectl sca --fail-on high ``` [Exit codes](/guide/exit-codes#exit-codes) lists every code. --- # Record a release URL: /guide/ci-releases Record the package list of each build that you ship, so that the portal checks it against each new advisory and can export its VEX file. ## Record a release {#release} A release is the list of packages of a build that you ship. The portal keeps it, checks it against each new advisory, and can export it as a [VEX file](/guide/releases#vex). Record it from the job that builds the release: ``` tuxcarectl sca --release "$CI_COMMIT_TAG" # GitLab tuxcarectl sca --release "$GITHUB_REF_NAME" # GitHub, on a tag push tuxcarectl sca --release "$TAG_NAME" # Jenkins, with tag discovery on ``` - Scan the same commit and the same lockfile that you ship. - An empty name stops the job with exit code 2. So a tag variable that is not set cannot make a release with no name. - A release does not change. The same name from another commit stops the job with exit code 2. With CLI 0.1.100 or later, after a complete read of the findings, a finding that fails a gate (`--fail-on`, or a malicious package) is exit code 1 instead, and the job output still says that the release is not recorded and why. `--force-release` replaces the release, and the portal records the replacement. - `--product-release "Acme 3.2"` also adds the release to a [product release](/guide/releases#product-releases). The repository must be in exactly one product, else the job stops with exit code 2. With CLI 0.1.100 or later, after a complete read of the findings, a finding that fails a gate is exit code 1 instead, and the job output says that the release is not recorded and why. The same holds for each other refusal of the release call. A signal, the end of the `--timeout` limit, `--fix`, or a toolchain that did not resolve keeps the exit of the release call. With the GitHub action, pass the name in `args`, for example `args: --release ${{ github.ref_name }}`. The action gives `args` to the CLI as a list of words, with no shell. Use the action of release `0.1.19` or later. --- # Send the results to other tools URL: /guide/ci-reports Write the findings of a scan as SARIF, JSON, Markdown, or JUnit, and upload them to GitHub code scanning or the test report of your CI system. ## Send the results to other tools {#reports} | Format | Command | For | | --- | --- | --- | | SARIF | `tuxcarectl sca --output sarif > tuxcarectl.sarif` | GitHub code scanning and other code-scanning tools. | | JSON | `tuxcarectl sca --output json > findings.json` | Your own scripts. The JSON format is stable and has a `schema_version`. | | Markdown | `tuxcarectl sca --output markdown > findings.md` | A comment on a pull request, or a job summary. | | JUnit | `tuxcarectl check --output junit > report.xml` | The test report of GitLab and Jenkins. | To upload the SARIF file to GitHub code scanning, add this step after the scan. The job needs the permission `security-events: write`: ``` - uses: github/codeql-action/upload-sarif@v3 if: always() with: sarif_file: tuxcarectl.sarif ``` From CLI version 0.1.90, the SARIF file links each alert to the portal when the run uploaded its scan to the portal. Each advisory rule links to the advisory page of the workspace (the `helpUri` of the rule), and the help text of the rule names the same link and the scan page. Each result has the scan page in the property `securechain.scan_url`. A run with no data URL or with no portal scan, for example a run whose findings do not come from the portal, writes no links. To read the findings from a dashboard, use the [REST API](/guide/api#api-rest). --- # Connect an AI assistant URL: /guide/ai-connect Let an AI assistant such as Claude Code or Cursor read the findings of your workspace through the MCP server, and triage them when you allow it. ## API and MCP {#api-mcp} Programs can use your workspace in two more ways: - **The REST API** at `/api/v1`, for scripts, dashboards, and other tools. - **The MCP server** at `/mcp`, for AI assistants such as Claude Code and Cursor. MCP is the Model Context Protocol. Both are off in a new workspace. Each one needs a switch that an admin turns on, and a token with that channel in its [rights](/guide/tokens#token-rights). ## Turn the API or MCP on {#api-mcp-on} 1. As an admin, open [**Settings** › **Access**](/settings/access) › **API and MCP access**. 2. Select the switch of **API access** or **MCP access**. It changes from "Off" to "On", and the page shows "Saved". 3. Copy the **API base URL** or the **MCP URL** from the same section. 4. On the **Access tokens** page, make a token with a preset for that channel. ![The section API and MCP access of the Settings page, with both switches on.](/guide/img/api-mcp.png) **Settings** › **Access** › **API and MCP access**. 1. The switches. Each one shows its state. 2. The base URL of the REST API. 3. The URL of the MCP server. Under the switches, **Allowed addresses** holds the networks from which a token can use the API and the MCP server, one per line. Leave it empty to allow every address. The section shows **Your address**, and warns when the list leaves it out. The list also holds for a sign-in with a token. It does not hold for a person who signs in with a sign-in provider, so you cannot lock yourself out of the page. It does not hold for the CLI or the agent. Each token can also have [a list of its own](/guide/tokens#token-addresses). - When you turn a switch off, every token stops on that channel at once. The other channels continue to work. - The CLI and the browser work with both switches off. - If the section has no switch for a channel, the channel is not available for your workspace. [Contact TuxCare](/guide/help#help). ## Connect the assistant {#mcp} The MCP URL is `https://name.sc.tuxcare.cloud/mcp`. Use a token with the **AI assistant** preset, or **AI assistant with triage** if the assistant may triage findings. Each person uses a token of their own user. **Claude Code:** ``` claude mcp add --transport http securechain https://name.sc.tuxcare.cloud/mcp \ --header "Authorization: Bearer " ``` **Cursor:** add the server to `~/.cursor/mcp.json`, or to `.cursor/mcp.json` in your project: ``` { "mcpServers": { "securechain": { "url": "https://name.sc.tuxcare.cloud/mcp", "headers": { "Authorization": "Bearer " } } } } ``` **Another assistant:** each assistant that can use a remote MCP server over HTTP works. Give it the MCP URL, and the token in the header `Authorization: Bearer `, as in the examples above. Do not commit a file that holds a token. Then ask the assistant, for example, "Which critical findings are open on the default branch of web-shop?". [The MCP tools](/guide/mcp-tools) lists what it can do, and [Recipes](/guide/ai-recipes) gives more tasks. ## When the assistant cannot connect {#refusals} An AI assistant shows a 401, 403, or 404 as a connection error. Check that MCP access is on, that the token has the **AI assistant** preset, and that the address of the assistant is allowed. [When the portal refuses a request](/guide/api#api-mcp-refusals) lists each answer. --- # The MCP tools URL: /guide/mcp-tools The tools that the MCP server of the portal gives an AI assistant, what each tool does, and the permission that it needs. ## The tools {#mcp-tools} The MCP server gives an AI assistant these tools. A tool works only within the role, the scope, and the rights of the token of the assistant. | Tool | What it does | Permission | | --- | --- | --- | | `whoami` | Tells the workspace, the scope, and the rights of the token. | none | | `search_docs` | Searches this guide, and returns the best sections with their links and their text: see [Docs for agents](/guide/ai-docs#search-docs). | none | | `list_repos` | Lists the repositories with the finding counts of the default branch. | read | | `get_repo` | Shows one repository: the tracked branch, the recent branches, the newest scan of each slot, and the finding counts. | read | | `list_findings` | Lists the findings of a branch. Filters: minimum severity, known exploited, triage state. | read | | `get_finding` | Shows one finding, as the finding page does. | read | | `get_advisory` | Shows an advisory and its other names. | read | | `diff_ref` | Shows the new and the fixed findings of a branch against an earlier scan or another branch. | read | | `fix_plan` | Shows the fix plan of a branch, as the [Fix plan](/guide/repositories#fix-plan) tab does. | read | | `get_base_advice` | Shows the base image of an image scan, how many open findings come from the base, and the base upgrades that remove findings. | read | | `list_releases`, `get_release` | List the releases of a repository, and show one release. | read | | `list_malicious_sightings` | List the [malicious sightings](/guide/malicious#sightings): each malicious package version that a scan held, with its state and its review. | read | | `list_protected_apps`, `get_protected_app` | List the running Node.js apps of TuxCare Node.js LivePatch with the findings counts of each, and show one app: its findings, patches, loaded packages, instances, and restart policy. The assistant sees these two tools only when the workspace uses Node.js LivePatch: the add-on is on, or an app reported. | read | | `triage_finding` | Sets the triage state of a finding. It also needs the member or admin role. The audit log shows your email, then "via MCP". | write | - A slot is one project path and one set of ecosystems. A branch of a monorepo can have many slots. `get_repo` lists the scan id of each slot, and the other tools take a scan id to select a slot. - A list tool returns 50 rows by default and 100 at most. The assistant asks for the next rows when it needs them. - When a tool fails, for example because a finding is outside the scope of the token, the assistant gets one sentence that tells why. ## Code mode {#code-mode} In code mode, the assistant gets two tools in place of the tools above. It writes a short program that calls the operations of the Pulse SDK, and it gets only the result of the program, not the data of each call. Code mode suits a question that needs many calls, for example a count over all repositories. For a question of one or two calls, the classic tools use fewer tokens. 1. Open **Settings**, then **API and MCP access**. You need the admin role. 2. Under **MCP tools**, select **Code mode**, or **Both** to keep the classic tools too. **Classic tools** is the default. 3. The assistant sees the new tools at its next request. Some assistants read the tool list only at their start: start a new session. | Tool | What it does | | --- | --- | | `search` | Finds the operations of the SDK that the token can call, by words. The first 3 results come with their TypeScript signature and the types of their answers. | | `execute` | Runs JavaScript that calls the operations, for example `await pulse.listRepos()`, in a sandbox with no network and no files. It returns what the program logs and returns. | - The limits of one run of `execute`: 10 s, 32 MiB of memory, 50 calls of the SDK, 4 MiB for the answer of one call, and 64 KiB of output. A run that passes a limit fails with one sentence that names the limit. - Each call of the SDK has the rights of the token, as a classic tool has. The only write is the triage of a finding, with the rules of `triage_finding`. The audit log shows your email, then "via MCP code mode". When a run fails after a write, nothing of the run is saved. - `whoami` and `search_docs` stay in each mode. --- # Docs for agents URL: /guide/ai-docs Let an AI assistant read this guide: the files `llms.txt` and `llms-full.txt`, the MCP tool `search_docs`, and the search index. ## llms.txt and llms-full.txt {#llms-txt} Two text files give the guide to an AI assistant in a form that it reads easily. They follow the [llms.txt](https://llmstxt.org/) format. | File | What it holds | | --- | --- | | [`/guide/llms.txt`](/guide/llms.txt) | The index: one line for each page of the guide, with its link and what the page tells, under the name of its group. | | [`/guide/llms-full.txt`](/guide/llms-full.txt) | Each page of the guide as Markdown, in one file. Each page starts with a line `URL:`, and each heading ends with the anchor of its section, for example `{#token-rights}`. | Give the assistant the link of the index, for example: "Read https://name.sc.tuxcare.cloud/guide/llms.txt, and tell me how to scan in GitLab CI." To read the index in a terminal: ``` curl -fsS https://name.sc.tuxcare.cloud/guide/llms.txt ``` - The files need no token and no sign-in. They hold the guide only, no data of your workspace. - Each link is a path, for example `/guide/tokens`. The assistant adds the host of the file. - A portal that you run yourself serves the same files on its own host, with no network access: use `https://your portal/guide/llms.txt`. ## Search the guide from an assistant {#search-docs} An assistant that is connected to the MCP server of your workspace (see [Connect an AI assistant](/guide/ai-connect)) can search the guide with the tool `search_docs`. It searches the same index as the search box of the guide. 1. Ask a question about the portal, for example: "Search the TuxCare Pulse docs: which token rights does an MCP token need?" 2. The assistant calls `search_docs` with a query, for example `token rights`. 3. The tool returns the best sections, best first. Each one has the page, the anchor, the full link on your workspace host, the headings, and the text of the section. - The tool needs no permission: each token with the MCP channel can call it. - It returns 5 sections by default and 10 at most (the input `limit`). - It first returns the sections that hold each word of the query. When no section holds them all, it returns the sections that hold one of them. A word can be the start of a longer word, and a word of 4 letters or more can have a typo. - A portal that you run yourself answers it with the guide of its own version, with no network access. ## The search index {#search-json} A program can also read the search index of the guide at `/guide/search.json`, with no token. It holds one record for the top of each page and one for each section: the page, the anchor, the link, the group, the headings, and the text. The search box of the guide and `search_docs` read the same index. For the data of your workspace, use the [MCP tools](/guide/mcp-tools) or the [REST API](/guide/api). --- # Recipes for an AI assistant URL: /guide/ai-recipes Tasks that an AI assistant does with the MCP server of the portal: find what to fix first, check what a branch adds, and triage findings with your approval. ## Before you start {#before} Connect the assistant first: see [Connect an AI assistant](/guide/ai-connect). Each recipe names the [MCP tools](/guide/mcp-tools) that the assistant uses. The assistant can make mistakes: read what it proposes before you act on it. ## Find what to fix first {#what-first} Ask: "Which repositories have open critical findings, and which upgrade closes the most of them?" The assistant lists the repositories with `list_repos`, reads the findings of a branch with `list_findings`, and reads the upgrades with `fix_plan`, as the [Fix plan](/guide/repositories#fix-plan) tab shows them. To change the project, see [Fix vulnerabilities](/guide/fix). ## Check what a branch adds {#branch} Ask: "Which findings does the branch feature/login add against main?" The assistant compares the two with `diff_ref`, and shows each new finding with `get_finding` and `get_advisory`. A CI job does the same check with `tuxcarectl compare --base main --fail-on-new`: see [Pull and merge requests](/guide/ci-gates#pull-requests). ## Triage findings with Claude {#triage} The assistant sets the triage state of a finding only with a token that has the write permission, for example a token of the **AI assistant with triage** preset, and only when your user has the member role on the repository of the finding. It cannot ignore a malicious finding: only an admin who signs in to the portal ignores one (see [Allow a version](/guide/malicious#allow)). 1. Ask: "List the open findings of web-shop on main that are not triaged yet, and tell me for each one whether the code can reach the vulnerable function." The assistant uses `list_findings` and `get_finding`, and can read your code to answer. 2. Read its answer. For each finding that does not affect you, tell it the reason, for example "Ignore the finding of lodash: the code never calls template." 3. The assistant sets the state with `triage_finding`. The audit log shows your email, then "via MCP". Triage in the portal works the same way: see [Triage findings](/guide/findings#triage). --- # Repositories URL: /guide/repositories Read the repositories of the workspace and their grades, open one repository with its findings, fix plan, scans, and owners, and show its grade in a README badge. ## The list of repositories {#repositories} The [**Repositories**](/repos) page (**Assets** › **Repositories**) lists each repository and image of the workspace; [**Images**](/images) lists the images only. A repository appears when its first scan arrives. An admin or a member can also add one before the first scan with [**Register repository**](/repos?add=register), here or on [**Set up CI**](/setup-ci): the member's repository goes where the member's first scan would put it. **Set up CI**, beside it, mints the CI token of one repository and shows the job for your CI system, with buttons that copy them. An admin and a member see it. ![The Repositories page, with the filters and a table of repositories, each with a grade, its open findings, a trend line, and its last scan.](/guide/img/repositories.png) The **Repositories** page. 1. **Register repository** adds a repository before its first scan. An admin and a member see it. Paste the address of the repository, for example `https://github.com/acme/web-shop`. The portal keeps the address that the CLI sends, so the first scan lands on the repository. **Set up CI** mints the CI token of one repository and shows its job; an admin and a member see it. 2. The search field, the lists, the quick filters, and the sort order. 3. Each row is a repository. Select its name to open it. 4. The rule of the grade. Each row shows the [grade](/guide/repositories#grade), the open findings by severity (for example "1 C · 4 H · 7 M · 0 L"), the fixable findings, a 6-week trend, the branch that the row counts, and the age of the last scan. A last scan older than 14 days shows in an amber chip: check the CI job of that repository. When the newest scan is on another branch than the one the row counts, the cell names that branch and its time instead ("feature-x · today 17:39"); when the counted branch is stale, its amber chip and date show under that line. A run that repeats a scan of the same commit and the same dependencies moves the time of that scan; it does not add a scan. The quick filters keep the rows of one kind: **Has critical**, **Known exploited**, **Stale scan**, or **Never scanned**. **Sort** sorts by **Risk**, **Last scan**, or **Name**. ### The grade {#grade} Each repository gets a grade from A (good) to F (bad), from the open findings of its tracked refs. The worst rule that applies sets the grade. | Grade | Rule | | --- | --- | | A | No open critical or high finding, and at most 10 open medium findings. | | B | One or more open high findings, all within the fix deadline. | | C | An open high finding is past the fix deadline, or more than 10 medium findings are open. | | D | One or more open critical findings. | | F | An open critical finding is past the fix deadline, an open finding is known to be exploited, or an open finding is a malicious package. | A repository with no complete, matched scan has no grade. A repository with a release whose match failed, with an operating-system release that has no advisory data, or with a package that the portal did not check, never gets grade A: when no other rule of the table applies, it has no grade, and the page shows "—". The portal does not check a package of a type with no advisory data, for example a conda package that installs no Python distribution, or a package of Conan, CocoaPods, or CPAN (see [Languages and package managers](/guide#ecosystems)). One such package in a tracked scan is enough: the row names its type under "Not evaluated", for example "conan packages (not checked)". The portal does not check an operating-system package whose package URL names no release (it has no `distro` qualifier), for example in an SBOM that you wrote by hand. When the scan also holds a package of the same type whose release the portal checks, the row shows "rpm packages with no release (not checked)". Add the `distro` qualifier to the package URLs of the SBOM to have them checked. A GitHub Action that the portal could not check, and a dependency on a git repository, do not count here: the action has its own [check](/guide/repositories#github-actions), and the scans of that repository grade it. The rules use the [fix deadlines](/guide/findings#deadlines) of your workspace. The page of a repository shows the same grade as the list. When you open a branch, a project of a branch, or an older scan, the grade reads the scan that the page shows, by the same rules. A scan that is clean but cannot prove it has no grade: its release has no advisory data, it holds a package that the portal did not check, or a later scan of that project failed its match, and no later scan of it matched. The page names the cause under "Not evaluated". ### The Hosts page {#hosts-page} The **Hosts** page lists the machines scanned with `tuxcare-radar3` ([Getting started](/guide/radar#install) tells you how), one row each: the operating system and its release, the TuxCare support of the host (**TuxCare ESU**, **TuxCare Essential Support**, or **TuxCare ELS**; [Read a host](/guide/radar-hosts#facts) tells how the portal tells ESU from Essential Support) or, with none, how long the vendor's own security support runs, the kernel the host was running, the open vulnerabilities by severity, and the time of the last scan. The cards at the top count the hosts, those under TuxCare support, those past the end of their vendor's support, and the open and the known-exploited vulnerabilities across them. Search by host name, or filter by department. A host that the TuxCare Radar agent scans can send tags: each row shows them. To show only some hosts, select an operating system or a tag; with two or more tags, the page keeps the hosts that hold every tag. The page address keeps these filters. Select a host to open its page, which opens with the host's facts: the operating system, the tags, the support, the kernel, the address the scan came from, the agent or the CLI version, and the last scan. A host that the TuxCare Radar agent scans shows "Agent: tuxcare-radar 1.2.3"; a host last scanned with `securechain-host`, the earlier name of the agent, shows its version as the CLI version. It has the same tabs as a repository. On both lists, the **Last scan** date turns amber after 14 days without a scan and red after 30, with the age written beside it. A host is a repository of kind "host" underneath, so departments, tokens scoped to one asset, alerts and the export treat it as one. The **Repositories** page shows repositories and images only. The TuxCare Radar agent also sends the machine ID of the host. The portal then keeps one host for each machine: a host that changes its name stays the same host and shows its new name. Two machines with the same name are two hosts, and the second shows its name with the first eight characters of its machine ID, for example "web#fedcba98". The agent sends every installed kernel, and the kernel that runs. The **Findings** tab of a host hides the findings of the kernels that do not run. To see them, select **Show findings of kernels that are not running**; the number in the label is the count of their vulnerabilities. Such a finding has the status "kernel not running". It is not open, so it does not count in the grade, the totals, the trend, or the alerts. When the host boots one of those kernels, the next scan makes its findings open again. A host last scanned with `securechain-host` sent no running kernel, and the tab shows all its findings. ## A repository {#repository} Select a repository to open its page. The header shows the grade, the name, the departments, the count of components, the last scan, and the commit. It also names the token and the CLI version that sent the scan, for example "sent by ci-main (tux_…ab12), CLI 0.1.18". ![The page of the repository github.com/acme/web-shop, with the Findings tab open, the findings grouped by package, and one package selected for bulk triage.](/guide/img/repository.png) The page of a repository, with the **Findings** tab open and one package selected. 1. **Watch** and the branches that your watch covers, the count of the watchers, the branch selector, **Compliance reports**, and **More**. 2. The four tiles. 3. The tabs. Each tab shows its count. 4. The filters of the findings, and the choice **By package** or **Flat list**. 5. The bar of the bulk triage. It shows when you select a finding. 6. The header row of a package: the findings, the worst severity, the upgrade, and how many findings the upgrade closes. **Branch** : Selects a branch or a tag. **All refs (tracked branch)** shows the tracked branch: the default branch, else `main`, else `master`, else the newest complete scan. The default branch shows "· default". When the CLI names a default branch that has no scan yet, the page says "No scan of that branch yet" and links to the branch with the newest scan. **Slot** : A slot is one project path and one set of ecosystems. A monorepo branch can have one slot for each CI job that scans it. When a branch has two or more slots, the page shows a **Slot** list. See [More than one project in a repository](/guide/package-managers#monorepo). **Retired slot** : A slot retires when a newer slot of the same project path replaced it and it sent no scan for 14 days, for example after a CLI upgrade gave the same job a new set of package managers. A retired slot does not count: the repository list, the Overview, the grade, the fix deadlines, and the alerts leave out its findings. Its open findings do not count as fixed in **Remediation**, the mean time to fix, or the **New and resolved findings** chart, and they do not keep a finding open: when the slot that replaced it fixes the finding, the fix counts. The **Slot** list still shows it, marked **Retired: no scan since** and the date, and you can select it to read its findings. A new scan of the slot brings it back. A malicious package that a retired slot held stays on the security record until an admin reviews it (see [Malicious packages](/guide/malicious)). **More** : Opens the [export](/guide/releases#export) and the download of the SBOM of the scan. A member or an admin can make the selected branch the default branch. It also lists the [owners](/guide/repositories#owners) of the repository. An admin can rename the repository, set its departments, or delete it; an owner can rename it. A delete removes all scans, findings, and repository tokens of the repository, and cannot be undone. Right after a scan, the page says that the scan is being matched and shows the last matched scan. The page updates by itself when the match is done. The tiles show the open findings, the changes since the previous scan (see [Changes](/guide/repositories#changes)), the findings that you can fix now, and the findings past their fix deadline. An *open finding* is a finding that is not fixed and not ignored, on the default branch or an active release of the asset. The tile **Open findings** counts them, and the repository list gives the same number. On a view of one branch, slot, or older scan, the tile is **Open findings in this scan** and counts that scan only. ### The owners of a repository {#owners} An *owner* of a repository is a member who manages that repository with no admin. An owner can: - turn the [README badge](/guide/repositories) on, make a new link, and turn it off; - grant the badge to a member of the repository, and revoke the grant; - rename the repository (**More**, then **Manage repository**, then **Rename**); - add another owner, and remove an owner. The default branch, the criticality, and the releases need the member role on the repository, so an owner can change them too, as each member can. The departments of the repository and its delete stay with an admin of the workspace: the departments decide who sees the repository, and a delete cannot be undone. Each person who sees the repository sees its owners: select **More**, and read the list under **Owners**. A viewer sees the name of each owner and no email. A TuxCare sales session sees neither. A user becomes an owner in one of three ways: 1. An admin of the workspace adds the owner: select **More**, type a part of the name or of the email of the member in **Add an owner**, select the member, and select **Add**. To take the role away, select **Remove** next to the owner. 2. An owner adds or removes another owner in the same way. 3. The first scan of a new repository makes its sender an owner: the scan must come with a token of that person (a token bound to the user), and the person must have the role member and see the new repository with the member role. A token of the workspace, a department token, and a token that is scoped to the repository make no owner. A scan of a repository that exists makes no owner, so nobody can take a repository by naming its address. A repository that you register before its first scan has no owner until an admin names one. Only a user with the role member can be an owner, and only while that user sees the repository with the member role. The role gives nothing while the owner does not have the member role on the repository any more: for example, when the owner gets the role viewer, when an admin removes the department seat, when the repository leaves the department, or when an admin disables the user. It works again when the access comes back. An admin manages each repository already, so an admin is no owner. The [audit log](/guide/admin) records each owner added (`repo.owner_add`) and removed (`repo.owner_remove`), with the user who did it, or "first submit" for the first scan. Each change of an owner names the owner. With the [REST API](/guide/reference), `GET /api/v1/repos/{repo_id}/owners` lists the owners, `POST` with `{"user_id": N}` adds one, and `DELETE /api/v1/repos/{repo_id}/owners/{user_id}` removes one: an admin, or an owner with a token that has the write permission. ### The Findings tab {#findings-tab} The tab lists each known vulnerability in the scan, the worst first. - Filter by text (a CVE, a package, or a title), by severity, by **Exploited**, **New in this scan**, or **Past deadline**, and by triage state: **Not triaged**, **Acknowledged**, or **Ignored**. The default triage filter is **Not ignored**. - The pages name a package by its full path: a Go module of major version 2 or more shows as `github.com/corazawaf/coraza/v3@v3.0.0`, not `v3@v3.0.0`, and an npm package of a scope as `@babel/core`. An operating-system package shows its name alone, for example `openssl`. The same name is in the fix plan, the page of the finding, the report, and the export. - **By package** groups the findings under one header row for each package. A finding on a host or an image can list several packages of one source or one kernel build: it sits under its first package, and the page of the finding lists the others. The header row shows the open findings and the closed ones apart, and the upgrade, with "closes all" when the upgrade closes every open finding of the package. Else the row shows how many open findings the upgrade closes, for example "closes 2 of 3": a finding with no known fix stays open. A package whose every finding the TuxCare build you ship already closes reads "Closed by the TuxCare build you are on"; it comes last and starts collapsed. **Flat list** shows one row for each finding. - A package that only a development or test dependency reaches, as the SBOM of the scan says, has the mark **dev**. Its findings still count as open. Select **Hide dev** to leave them out of the list. The chip shows only when the scan has a dev finding. - Select an advisory to open the [page of the finding](/guide/findings#finding). A member or an admin sees check boxes for [bulk triage](/guide/findings#triage-bulk). ### The Fix plan tab {#fix-plan} The fix plan has one row for each package to change: the current version, the version to move to, the source of the fix (a TuxCare build or upstream), the findings that the change closes, and the worst severity. The packages with the worst severity come first: critical, high, medium, low, then no rating. Inside one severity, a package with a known-exploited finding comes first. A known-exploited medium never comes above a critical or a high. A finding that lists several packages counts for each of them. The version to move to is the one version that closes the most findings of the package. Each finding has its own fix, and the plan takes the highest of them. The plan names a TuxCare build only when that build closes every finding of the package. To apply the plan, see [Fix vulnerabilities](/guide/fix). ![The Fix plan tab, with one row for each package: the current version, the version to move to, and the source of the fix.](/guide/img/fix-plan.png) The **Fix plan** tab: one row for each package to change. The **Dependencies** tab lists each package of the scan with its version, its ecosystem, its scope ("direct" or "transitive", with the packages that pull it in; "scope unknown" when the scan could not tell), its open findings, and its TuxCare status: "TuxCare build", "TuxCare build available", "No TuxCare build", or "Not assessed". A package that your lockfile fetches from a git repository has no advisory source, so the portal does not evaluate it. When this workspace also scans that repository, the row says so: "Scanned in this workspace: *repository* at *commit*: *N* open findings". Select the link to see the findings of that scan. When the workspace has no scan of that commit, the row names the newest scan of the repository and says "another commit". When the repository has more than one project at that commit, the count covers each project and says how many: "*N* open findings in 2 projects". These findings stay in the scan of that repository: they are not in the counts or the CI gate of the scan that lists the package. The component export has the same link in its `workspace_scan_*` columns, and the compliance report counts these packages. A GitHub Action of your workflows (`uses: owner/repo@ref`) is a package of the scan too. Its row says "Pinned to a commit" when the ref is a full commit hash of 40 characters, else "Not pinned": a tag, a branch, or a short hash can move to other code between the check and the run. A warning above the table counts the actions that are not pinned, and each such row gives the advice: pin the action to a full commit hash and keep the tag in a comment (`uses: owner/repo@ # v4.2.2`), and turn on the GitHub policy that requires SHA pinning for the organization or the repository. This is a warning, not a vulnerability: it does not change the counts or the grade. The portal checks each action against the GitHub Actions advisories: the ref goes to the commit that it named when the portal received the scan, the commit to its release version, and the version through the ranges of the advisories. A commit that an advisory names as malicious is vulnerable whatever its version. A checked action says "Checked at version 4.2.2", and a vulnerable one has its finding in the Findings tab, with the upstream fix. An action that the portal cannot check says "Not checked" with the reason: the tag data has not reached the workspace yet, the ref is a branch, the ref is not a known tag or commit, the commit has no version tag, or the scan is older than the tag history. An action that is not checked is never counted as clean. An action of a repository that no advisory names has nothing to check. The component export has the same state in its `action_*` columns. A tag of an action can point at a malicious commit for a short time and then move back, as the tags of `tj-actions/changed-files` did on 14 and 15 March 2025. A check after that time reads clean, but a build in that time ran the bad code. When the advisories name such a commit, the **Overview** and the page of each repository that used the action show the card **GitHub Actions: past exposure**. A branch of a repository is "Possibly exposed" when the scan in force at a time in the window (the newest scan at or before that time) holds the action at a tag that pointed at the bad commit, or pins the bad commit. When the branch has no scan before the window and its first scan holds the tag, the card says so. When your jobs run the gate step of the CLI, the card also lists each run in the window: "Exposed" when the runner downloaded the bad commit and the job went on, "Blocked by the gate" when the gate stopped it, and "Not exposed" when the run got another commit. The card gives the days to review (UTC), and the advice: review the runs of the workflow in those days, and rotate the repository and organization secrets that the jobs with the action can read, and the tokens that those jobs wrote. The export **GitHub Actions: past exposure** holds the same list. The link shows only a repository that you, or the token, can read. A CI token of one repository reads that repository only, so it gets no link to the scan of another repository. The CLI then says that the scan exists in this workspace, but the token cannot read it. A department token whose department holds both repositories, or a personal login that can read both, shows the link. ![The Dependencies tab of a repository, with seven packages. The TuxCare column names the TuxCare build of each package.](/guide/img/dependencies.png) The **Dependencies** tab. The **TuxCare** column names the build that each package can move to. ### Changes since the last scan {#changes} The tile **Since scan #N** compares the scan with the previous scan of the same branch: for example "+3" new and "−3" resolved findings. On an older scan of another branch, for example the page that the link of `tuxcarectl sca` opens for a pull request, the tile is **Against main** (the name of the tracked branch): what the branch adds against the newest scan of the tracked branch. Select **Show the changes** to see the lists: the new findings first, then the resolved ones. The filter **New in this scan**, or **New against main** on such a scan, keeps the new findings of the tile and shows the same count. When a new advisory comes out, the portal checks the stored scans again, so a new finding can show with no new scan. A finding that goes from **Not evaluated** to open shows as new. A finding that goes from open to **Not evaluated** shows as resolved, and the findings list shows it as **Not evaluated**. ### The Scans tab {#scans} The tab lists each scan of the repository, with its branch, commit, path, status, and dates. Select a scan number to see its findings, dependencies, and fix plan. This is also the page that the link of `tuxcarectl sca` opens. The header says "scan #N of \, \", and you can triage its findings: the triage of a finding applies to the same finding on each scan, as on the newest scan. Select **Back to the newest scan** to leave that view. Select **Compare with…** on a row, or on the view of a scan, to compare two scans of the repository. The compare starts with the newest scan of the tracked branch; choose another scan in **Compare with**. The page address keeps the two scans (`?compare=1..4`), so a link opens the same compare. Select **SBOM** to download the scan as a CycloneDX file. A member or an admin can select **Mark as release** on a complete scan. See [Releases](/guide/releases#releases). Only a "complete" scan feeds the findings and the comparisons. A "partial", "empty", or "failed" scan is not a clean result, and the page shows a warning for it. A scan of a container image is partial when a package reader of `tuxcarectl image submit` did not read the whole image, for example an rpm database that does not parse: the status says "not read: os/rpm", and the warning names the reader. Fix the cause in the image and scan it again. ### The base image of a container image {#base-image} The page of a container image shows the **Base image** panel above the tabs. The panel shows: - The base image that the portal found, for example `node:20-bookworm`, and the start of its digest. **Outdated build** shows when the tag now points at a newer build. - How many open findings come from the base, for example "2 of 8 open findings come from the base image". The other findings come from the layers that your Dockerfile adds. - A table of the base images that you can move to, and the findings that each one removes and adds. ![The Base image panel: the base node:20-bookworm, an outdated build, 2 of 8 open findings from the base, and three upgrade rows: Rebuild with the same tag, Next major version, and Smaller variant.](/guide/img/base-image.png) The **Base image** panel of an image with an outdated `node:20-bookworm` base. TuxCare keeps a list of known base images: the official Docker images, with the layers and the packages of each build. The portal finds the base of your image in two ways: 1. **By the layers.** The portal compares the layers of your image with the layers of each known base image. The base image whose layers start your image, with the most layers, is the base. A match needs two layers or more. 2. **By the declared base.** When no layers match, the portal reads the base that the image declares: the annotations `org.opencontainers.image.base.name` and `org.opencontainers.image.base.digest`. A digest must be the digest of a known build. A name alone selects the build that the tag points at now. A finding comes from the base when its package is in the base image. With a match by the layers, a finding also comes from the base when its package is in a layer of the base. The other findings with a known layer come from your layers. Each row of the table is one kind of upgrade. A row shows only when it removes a finding, except **Rebuild with the same tag**. When two rows name the same image, the image shows once. **Rebuild with the same tag** : The newest build of your tag. It shows when your image uses an older build. Often a rebuild of your image is enough. **Newest in the same line** : The newest version with the same major version and variant, for example `node:20.18.0-bookworm` for `node:20-bookworm`. **Next major version** : The newest build of the highest major version above yours, with the same variant, for example `node:22.11.0-bookworm`. A major version can change how your application runs: test it. **Smaller variant** : A `slim` or `alpine` variant of the same major version. It has fewer packages, so it can have fewer findings. **Keep this base with TuxCare ELS** : Shows when the operating system of the base is past its end of life and TuxCare Endless Lifecycle Support covers it. The count is the base findings that have an ELS fix. The row links to the ELS page. **Removes** counts the open findings of the base that the upgrade does not have. **Adds** counts the findings of the upgrade that the base of your image does not have now. **Critical** and **High** count the removed findings of that severity. The counts compare the advisory and the package, not the version. An ignored finding does not count. Select **Copy** to copy the `FROM` line of the upgrade, for example `FROM node:22.11.0-bookworm`. When the portal cannot give advice, the panel tells you why: | The panel says | Why | What to do | | --- | --- | --- | | "This scan has no layer data." | The scan does not list the layers of the image. | Scan the image again with a current scan-worker or CLI. | | "The base image is not in the list of known base images." | No known base image matches the layers, and the declared base, if any, is not in the list. | Nothing in the portal. The findings of the image still show, with the origin "Unknown". | | "The scan does not say which layer holds each package." | The portal found the base, but the scan does not give the layer of each package, and no package with a finding is in the base image. The portal cannot split the findings. | Scan the image again with a current scan-worker or syft. | | "Base-image advice is not set up for this workspace." | The portal does not read the list of known base images. | The list is not published yet, or the portal does not read the TuxCare feed. On your own install, the operator sets `sync.feed_url`, or imports a feed bundle on an air-gapped install. | | "The portal could not match this scan." | The match of the scan failed. | Scan the image again. If the error stays, [get help](/guide/help#help). | When the list of known base images is more than 3 days old, the panel says that the advice may be out of date. On the page of an image, the **Findings** tab has an **Origin** filter: **All**, **Base image**, **Your layers**, and **Unknown**. **Unknown** is a finding whose package is not in the base image and whose layer the scan does not give, or a finding of an image with no known base. ## README badge {#badge} The README badge shows the grade of one repository in its README, as a coverage badge does. The picture holds the word `securechain` and the grade of the repository: A, B, C, D, F, or **no grade**. It is off for each repository until an admin of the workspace, an [owner of the repository](/guide/repositories#owners), or a member with a grant of the badge, turns it on. ![Example badge showing a SecureChain grade of A.](/guide/img/badge-example.svg) ![Example badge showing a SecureChain grade of B.](/guide/img/badge-example-b.svg) ![Example badge showing a SecureChain grade of C.](/guide/img/badge-example-c.svg) ![Example badge showing a SecureChain grade of D.](/guide/img/badge-example-d.svg) ![Example badge showing a SecureChain grade of F.](/guide/img/badge-example-f.svg) ![Example badge showing no SecureChain grade.](/guide/img/badge-example-no-grade.svg) ### Before you turn it on {#risk} The link of the badge works with no sign-in, because GitHub and GitLab fetch a README picture through their own image proxy. So each person who has the link sees the grade. For a public repository, the README is public, and so is the grade. **A grade of D or F in a public README tells each reader that the code has a serious open finding:** an open critical vulnerability, one that is past its fix deadline, one that is known to be exploited, or a malicious package. Turn the badge on for a public repository only when you accept that risk. The picture holds nothing more than the word and the grade: no counts, no vulnerability ids, no package names, and no name of the repository. The link holds a long random token and no id of the repository or of the workspace, so nobody can guess the link of another repository. ### Turn the badge on {#turn-on} 1. [Sign in to your workspace](/guide/portal-tour#sign-in). Under **Assets**, select [**Repositories**](/guide/repositories#repositories). Open your repository and select **More**. 2. Under **README badge**, select **Turn the badge on**. 3. Copy the **Markdown for the README** and put it in the README of the repository, for example under the title. ![The More panel of a demo repository for its owner: the owners, the README badge with the Markdown for the README field and its Copy button, and the members who can change the badge.](/guide/img/badge-setup.png) After you turn the badge on, copy the Markdown. The screenshot shows the panel of an owner of the repository, and uses an example link. The portal shows the link only once, when it makes it: it keeps only a hash of the token. When you lose the link, make a new link (below). An admin of the workspace can turn the badge on, make a new link, or turn it off. So can an [owner of the repository](/guide/repositories#owners), on that repository only. An admin or an owner can also grant one member the right to do the same on one repository (below). Each other person sees on the page whether the badge is on, and the grade that it shows. A token scoped to one repository or to one department cannot change the badge. ### Let a member manage the badge {#grant} An admin of the workspace, or an owner of the repository, chooses the members who can manage its badge. A member with a grant can turn the badge on, make a new link, and turn it off on that repository only. 1. Open the repository and select **More**. 2. Under **Members who can change the badge**, type a part of the name or of the email of the member in **Grant to a member**, for example "smith" or "@acme". The filter ignores upper case and lower case. Select the member with the mouse, or with the arrow keys and `Enter`, and select **Grant**. The list shows at most 50 members at a time, and says how many more match: type more to find them. The grant does not turn the badge on: the badge stays as it is until the member, an owner, or an admin turns it on. Only a user with the role member can get a grant, and only when that user sees the repository with the member role. A user who has a department seat sees only the repositories of the department. The grant gives nothing while the member does not have the member role on the repository any more: for example, when the member gets the role viewer, when an admin removes the department seat, when the repository leaves the department, or when an admin disables the user. It works again when the access comes back. To take the right away, select **Revoke** next to the member. A revoke leaves the badge as it is: when the member must not keep the link, make a new link or turn the badge off. ### The grade on the badge {#badge-grade} The badge shows the grade of the column **Grade** of the page **Repositories** (see [The portal](/guide/repositories)). The portal writes the picture again at the end of each scan of the repository. A grade can also change with no new scan, for example when a fix deadline passes (B to C, D to F) or when a finding becomes known to be exploited: the portal checks each badge for such a change every 15 minutes. GitHub and the browsers keep the picture for up to 5 minutes, so a new grade can take up to 20 minutes to show. A repository with no complete, matched scan shows **no grade**. ### Make a new link {#new-link} Make a new link when the old link is in a place where it must not be, for example in a fork or in a log, or when you lost it. Select **More**, then **Make a new link** under **README badge**, and confirm. The old link stops at once, and a README that holds it shows no badge. Put the new Markdown in the README. ### Turn the badge off {#turn-off} Select **More**, then **Turn the badge off** under **README badge**, and confirm. The link stops at once. When you turn the badge on again, the portal makes a new link. The [audit log](/guide/admin) records each turn on (`repo.badge_on`), each new link (`repo.badge_new_link`), and each turn off (`repo.badge_off`), with the user who did it. It also records each grant (`repo.badge_grant`) and each revoke (`repo.badge_revoke`), with the admin or the owner, and the member. ### With the API {#badge-api} The route `/api/v1/repos/{repo_id}/badge` of the [REST API](/guide/reference) does the same: `GET` reads the setting, `POST` turns the badge on or makes a new link and answers the link and the Markdown once, and `DELETE` turns the badge off. `POST` and `DELETE` need a token with the write permission of an admin of the workspace, of an owner of the repository, or of a member with a grant of the badge of the repository. The route `/api/v1/repos/{repo_id}/badge/grants` lists the grants (`GET`) and grants the badge to one member (`POST` with `{"user_id": N}`), and `DELETE /api/v1/repos/{repo_id}/badge/grants/{user_id}` revokes a grant. These three need a token of an admin of the workspace, or a token with the write permission of an owner of the repository. --- # Findings and triage URL: /guide/findings Read a finding, triage it or suppress it with a rule, report wrong advisory data, and use the views of the vulnerabilities, the packages, and the fix deadlines. ## A finding {#finding} A finding is one advisory in one package of one scan. Its page tells you how to fix it and where else it is. ![The page of the finding CVE-2021-23337 in lodash, with How to fix, the description, the list Affected in this workspace, the triage card with Ignored, We are not affected, and 90 days selected, and the timeline.](/guide/img/finding.png) The page of a finding. 1. **How to fix**: the recommended fix, the alternatives, and the command. 2. **Affected in this workspace**: each repository that has this advisory. 3. The triage card: the state, the reason, and for an ignore, the time. 4. The timeline of the finding. - The header shows the advisory that matched the version of the package, the [severity](/guide/glossary#terms), the status, the triage state, and the fix deadline, for example "due in 29 days". Select the advisory id to see every repository that it affects. Some advisories name each other, so the portal keeps them as one finding. When a related advisory names your package but does not affect your version, the card **Advisories of this finding** lists it under **Related ids that do not affect this version**, with its own CVE and its fix for the package. For example, `node-forge` 1.4.0 shows `CVE-2026-85393`, and the card lists `GHSA-ppp5-5v6c-4jwp (CVE-2026-33894), fixed in 1.4.0`. - **How to fix**: "Recommended" is a TuxCare build when one exists, else the lowest upstream version with the fix. **Command** applies it: `tuxcarectl harden` for a TuxCare build, or the install command of npm or pip for an upstream version. For a transitive package, the card names the direct packages of your project that pull it in, and the way to pin or move it in your ecosystem. Where one line or one command fits your tool, the card shows it to copy: for example a constraints line for pip, a `dependencyManagement` section for Maven, a `constraints` block for Gradle, or `go get`, `cargo update`, `composer update`, or `bundle update`. A package name or a version with characters that are not safe in a command gets no line: the name comes from the scan, and you run the line. "Already fixed" means that you already ship a TuxCare build with the fix. "No known fix" means that no fix exists. - **Affected in this workspace** lists the same advisory in the other repositories that you can see. - **Advisory details** has the CVSS vectors, the weakness (CWE), the affected versions, the aliases, and the references. **Dependency paths** shows how your project pulls in the package, when the scan has the dependency graph. - The side column has the [triage](/guide/findings#triage) card, the timeline, and **Exploit signals**: the sources that list the advisory as exploited. A viewer sees the same page with no triage controls. ## Triage findings {#triage} A member or an admin sets the triage state of a finding. The state stays with the finding in later scans of the same branch. **Not triaged** : Nobody has looked at the finding yet. The API calls this state `new`. **Acknowledged** : Somebody looked at it and accepts it for now. It stays open: it still sends alerts and counts toward its fix deadline. **Ignored** : The finding is muted. It is not open, sends no alerts, and is never past its deadline. Choose why, and give a reason. The ignore ends after 30 days, after 90 days, on a date, or never. Then the finding goes back to "Not triaged". To triage one finding, open its page. In the **Triage** card, select the state. For **Ignored**, answer **Why?**, type the **Reason**, and select the time under **Ends**. Select **Save**. ### Why do you ignore it? {#triage-why} Each ignore has a reason category. The category does not change what the portal counts: every category removes the finding from the totals, the grades, the alerts, and the fix deadlines. It changes the [VEX file](/guide/releases#vex) and the labels that other people read. **The advisory data is wrong** : The advisory is wrong for this package or these versions, and the same is true for everyone. Select **What is wrong?**: the bug is in another package, the version range is too wide, the vulnerable code is not in the package, the CVE is disputed or rejected, or another problem. The VEX file says "false positive". See [Report wrong advisory data](/guide/findings#report-data). **We are not affected** : The advisory is right, but your project does not run the vulnerable code. Select a **Justification** (see below). The VEX file says "not affected". **We accept the risk** : Your project is affected, and your team accepts the risk for now. The VEX file says "exploitable" and "will not fix". **Other reason** : Another reason. Write it in the reason field. The VEX file says "not affected", with no justification. Under **Where?**, **This finding** sets the decision on this finding only. The other choices make a rule that also covers later scans and new versions. See [Suppress a vulnerability with a rule](/guide/findings#suppress). - **Apply to all N repositories** sets the decision on each open finding of the same advisory in the repositories that you can see. - **Also apply to the default branch and the active releases** is checked at first. Clear it to change this ref only. - The audit log records each decision. The CLI reads the ignored findings as a baseline, so a CI gate can skip them. See [Choose the gate](/guide/ci-gates#gate). ### Triage many findings {#triage-bulk} 1. Open the **Findings** tab of a repository or a host, and filter it. The filters, the sort, and the page are in the address of the page: a reload or a copied link keeps them. Select a column header to sort by it, and select it again to turn the order. The pager is under the table. 2. Select the check box of each finding. The box of a package header row selects all findings of the package. A finding with several packages is one finding: one selection triages it for all its packages. The box in the table header selects every finding that the filters show. On a host, a row is one vulnerability with all its packages, and the box in the header selects the rows of the page. 3. In the bar above the table, select **Acknowledge**, **Ignore…**, or **Mark not triaged**. 4. For **Ignore…**, type the **Reason**, choose a **Justification** if one applies, select the time under **Ends** (**30 days**, **90 days**, **No end**, or **Until a date**, which ends at the end of that day in UTC), and select **Ignore**. One change applies to at most 500 findings. If the portal refuses one finding, no finding changes, and the page shows the error. ### The justification of an ignore {#triage-justification} An ignore of the category **We are not affected** can also have a **Justification**. It tells a reader why the finding does not affect you, and the [VEX file](/guide/releases#vex) uses it. The values come from CycloneDX: the code is not present; the code is not reachable; it needs a configuration, a dependency, or an environment that you do not have; or it is protected by the compiler, at run time, at the perimeter, or by another control. ### Suppress a vulnerability with a rule {#suppress} A rule ignores one vulnerability for more than one finding. It also applies to the scans, the versions, and the repositories that come later. A rule has a scope: **This repository** : Every finding of the advisory in the repository. A member of the repository can make this rule. **A department** : Every finding of the advisory in the repositories of the department. **The workspace** : Every finding of the advisory on every asset of the workspace. A narrower rule wins over a wider rule. A decision of a person on one finding wins over every rule. 1. Open the page of a finding or of the vulnerability. On the page of the vulnerability, select **Suppress this advisory**. A member selects **Ask to suppress this advisory**. 2. Answer **Why?** (see [Why do you ignore it?](/guide/findings#triage-why)). For wrong data, select **What is wrong?**. 3. Under **Where?**, select the scope. The form selects the narrowest scope that fits. 4. Optional: change the **Package**. It shows the package of the finding. A rule with a package does not cover the other packages of the same advisory. Clear it to cover every package. 5. Optional: select **Versions**. Type the versions with commas between them. With **Every version**, the rule also covers new versions. 6. Type the **Reason**. It is necessary. 7. Optional: select **30 days**, **90 days**, or **Until a date**. The rule ends at the end of that day (UTC). Or select **Until a fix is available**: the rule ends when the advisory has an upstream fix version for the package. A TuxCare build does not end it. 8. Optional: select the asset kinds: **Repositories**, **Images**, or **Hosts**. With no kind selected, the rule applies to every kind. TuxCare Radar applies the rule to hosts only. 9. Select **Add the rule**. If the scope needs an approval, the button is **Ask an admin**. ### Ask an admin {#suppress-approval} A member can make a rule for one repository. A rule for a department or for the workspace needs an admin. A member who selects one of these scopes sends a request. For a department, the member needs a seat in that department. - The admins get an email for each new request. Until an admin approves it, the request has no effect and the findings count. - An admin opens [**Settings** › **Triage rules**](/settings/triage) › **Requests**, and selects **Approve** or **Reject**. Before the approval, the admin can make the rule narrower: the scope, the package, the versions, and the end date. A rejection needs a note. - An admin cannot decide a request that the same admin made. Another admin decides it. An admin who needs a wide rule makes the rule directly. - The person who asked gets an email with the decision and the note. - A viewer cannot make rules or requests. ### The list of rules {#suppress-list} - [**Settings** › **Triage rules**](/settings/triage) › **Suppressed vulnerabilities** lists the rules, with the scope, the package, the versions, the reason, the end date, the person who approved the rule, and the state. Every role can read the list. - A finding of a rule shows **Ignored by rule** and the reason. It does not count in the totals, the grades, the trend, the alerts, or the fix deadlines. - A rule has one of three states: **Active**, **Needs review**, or **Ended**. - **End, not delete.** Select **End** to stop a rule. The findings count again, and the rule stays in the list as history. An admin ends any rule. The author of a repository rule ends that rule. - The audit log records each rule, request, decision, and end. ### When the advisory changes {#suppress-review} When the affected packages or versions of the advisory change, the rule goes to **Needs review**. The rule stays in force while it waits. A change of the score or of the text does not move a rule. - The admins get one email each day that lists the rules to review. For a repository rule, the author also reads the list in Settings. - An admin selects **Confirm** to keep the rule, or **End** to stop it. - A rule of wrong data that you sent to TuxCare shows **Waiting for TuxCare**. TuxCare checks the new advisory. If the data is still wrong, the rule goes back to **Active**. If the data is now right, the rule ends and the admins get an email with the note of TuxCare. ## Report wrong advisory data {#report-data} Advisory data from outside sources has errors. If the data is wrong for everyone, tell TuxCare. TuxCare checks the advisory. If the data is wrong, TuxCare corrects it for every workspace and tells the source of the advisory. ### Report wrong data {#report-how} There are two ways. Both send the same report. - **With a rule.** Make a rule (see [Suppress a vulnerability with a rule](/guide/findings#suppress)), choose **The advisory data is wrong**, and keep **Send to TuxCare** checked. The report goes when the rule becomes active. For a request, it goes when an admin approves the request. A rejected request sends nothing. - **Without a rule.** On the finding page, open **Report wrong data to TuxCare**, fill in the form, and select **Send to TuxCare**. This suppresses nothing: the finding still counts. Use it when you want TuxCare to know now. Every role can send a report, also a viewer. A workspace sends 50 reports in a day (UTC) at most. After that, a report without a rule is refused until the next day. A rule still saves and works, but it sends no report: the rule list shows **Not sent to TuxCare: daily limit**. ### What goes to TuxCare {#report-what} The form shows the exact text before you send it. A report holds: - the reference of your workspace, for the staff link and the deletion rule; - the advisory id, the package (with no version), and the versions; - the problem that you selected; - the reason that you typed. A report holds no name, no email address, no repository name, and no commit. TuxCare does not tell other workspaces that you reported the advisory, and does not show them your text. **Do not enter personal data in the reason.** TuxCare staff read that text. Write what is wrong with the advisory, and nothing about people or your projects. ### What happens next {#report-states} The rule list and the finding show the state of the report: **Sent to TuxCare** : TuxCare has the report. Nobody has looked at it yet. **TuxCare is checking** : Staff check the advisory data. **TuxCare reported it upstream** : TuxCare sent a correction to the source of the advisory. The note has a link. **TuxCare corrected the data** : The advisory data is right now, in every workspace. The false findings close at the next match, and the page of the advisory says "TuxCare corrected this advisory", with the reason. Your rule then has no finding to cover. You can end it. **TuxCare: the data is right** : TuxCare checked the data and did not change it. The note says why. The rule stays in force until you end it. The note of TuxCare shows next to the state. ### Turn the reports off {#report-switch} An admin can turn the reports off in [**Settings** › **Triage rules**](/settings/triage) › **Reports to TuxCare**. The switch is on at first. When it is off, a rule of wrong data sends nothing, and the report form does not show. The rule still works. Without a report, TuxCare cannot check the advisory for you. When the advisory changes, an admin confirms or ends the rule. ## Vulnerabilities {#vulnerabilities} The **Vulnerabilities** page lists each advisory one time, with every repository that it affects. Use it to answer "are we affected by this CVE?" ![The Vulnerabilities page, with the four steps of the funnel, the filters, and the table of advisories. One advisory shows its repository.](/guide/img/vulnerabilities.png) The **Vulnerabilities** page. 1. The four steps of the funnel. Select a step to set its filters. 2. The search field and the filters. 3. An advisory with its list of repositories open. - The funnel narrows the open findings in four steps: **Open**, **Fix available**, **Critical or high**, and **Known exploited**. Fix the last step first. - Filter by id or package, severity, **Known exploited**, **Fix available**, **TuxCare fix**, **Not triaged**, **Needs a reboot** (a reboot would close at least one of its findings on a server without KernelCare: the newest installed kernel fixes it), and department. - Each row shows the advisory, the severity, the exploit signals, the repositories, the fix, the age of the oldest open finding, and the share triaged ("1/5"). - The **Affects** column counts two things: the repositories, images, and hosts with an open finding of the advisory, and the open findings. One repository can hold more than one finding of an advisory, one for each affected package. For example, "1 repository, 2 findings" is one repository with `brotli` and `brotlicffi`. When each repository holds one finding, the column gives the repositories only ("3 repositories"). The count follows the filters of the page, the department too. - Select the count to see each finding. The list shows each repository one time, as a heading, with its findings under it: the package and its version, the fix of that package, and a link to the finding. The packages of one advisory can have different fixes. When they do, the **Fix** column gives the fix of the worst finding and says so, and the list gives the fix of each package. The findings that are ignored or that a TuxCare build fixed are not in the count: the list shows them below the open findings, under "Not in the count". - After the advisory id, "matched by" names the advisories that affect your packages, and the line below gives the title of one of them when its title is not the text of the CVE. The text of a CVE can name another product. For example, the text of `CVE-2023-4863` names Google Chrome, and the row shows "matched by GHSA-j7hp-h8jx-5ppr" with the title "libwebp: OOB write in BuildHuffmanTable": Pillow before 10.0.1 includes its own copy of libwebp. Each finding in the list of repositories also names the advisories that matched it. Search for an advisory id that no scan has, and the page says "Not affected". To save the list, select **XLSX** or **CSV** next to **Export**, or **PDF** for a page to print or save as PDF. The file has every advisory that the filters keep, not only the page, with the hosts and the other assets that have each one, the counts of open, triaged, and late findings, the fix, and the other names of the advisory. An XLSX file has a filter on each column, and a second sheet, **About**, with the filters and the time of the export. ## Packages {#packages} The **Packages** page lists every package of the tracked refs. A finding that lists several packages counts on each of them. The page has three tabs. The **Inventory** tab shows where each package is used. The **TuxCare coverage** tab counts the packages by TuxCare verdict. The **Stack report** tab shows what the workspace runs and what is past end of life. ![The Inventory tab of the Packages page, with the package lodash selected and its usage panel open: two repositories and one image, each with its version.](/guide/img/packages.png) The **Inventory** tab, with the package `lodash` selected. 1. The three tabs. 2. The search field and the filters. 3. The versions in use of a package. 4. The usage panel of the selected package. - The search field takes a name, or a name and a range: `lodash@<4.17.21`, `django@>=3`, `react@18.x`, or `left-pad@1.3.0`. - Select **Past end of life** to show only package versions on a TuxCare ELS line. - A red version chip has open findings. A green chip is a TuxCare build. - Select a package name to see each repository, image, and host that uses it, with the version, the branch, and the dependency kind. A host has no branch and no dependency kind: its row says "installed on the host". ### TuxCare coverage {#coverage} The **TuxCare coverage** tab counts the packages by TuxCare verdict: **Covered** : You already ship a TuxCare build. **Hardenable** : A TuxCare build with the fixes exists, and your subscription includes it. Run [`tuxcarectl harden`](/guide/fix#harden). **Unprotected** : A TuxCare build with the fixes exists, and your subscription does not include it. **No coverage** : No TuxCare release line covers the package. TuxCare counts it as a request for coverage. **Frozen, Sunset** : A frozen line keeps its last build and gets no new fixes. A sunset line gets no more fixes. ### Stack report {#stack-report} The **Stack report** tab shows what the workspace runs, what is past end of life, and which TuxCare product has a build for it. Each role sees it. A member or a viewer with a department seat sees the report of the repositories of the department. Select a department to see the report of one department. ![The Stack report tab of the Packages page, with the summary tiles, the cards of Where TuxCare fits, and the table of the operating systems.](/guide/img/stack-report.png) The **Stack report** tab. 1. The summary tiles. 2. The TuxCare products that apply. 3. The operating systems of the hosts and the images. The report reads the same scans as the **Inventory** tab: the tracked scans of each repository, image, and host with a complete, matched scan. A workspace with no matched scan shows counts of 0. The sections, in order: **Summary** : The components and their ecosystems, the components past end of life, the components past end of life with a TuxCare build, the hosts on an operating-system release past its end of life, and the open critical and high findings. **Where TuxCare fits** : One card for each TuxCare product that applies, with what it covers. A card shows only when the data of the scans proves it: a host on a release past its end of life that has TuxCare ELS, a package or a runtime past end of life with a TuxCare build of its own version, or a host whose scan names its running kernel. A card says that a TuxCare build exists. It does not say what your subscription covers. **Operating systems and kernels** : Each operating-system release of the hosts and the images, with its end-of-life date and the TuxCare product. **Runtimes and frameworks** : Each release line of a runtime or a framework in use, for example Node.js 16 or Django 3.2, with its versions, its end-of-life date, and the TuxCare build. The dates come from endoflife.date. **Ecosystems** : The components of each ecosystem, the components past end of life, those with a TuxCare build, and the share with a build as a bar and a number. **Components past end of life** : The 25 components past end of life that the most repositories, images, and hosts use. Select a package to open it in the **Inventory** tab at that version. When the table leaves versions out, the link below it opens the full filtered inventory for the same department. **Open vulnerabilities** : The open vulnerabilities and the open findings by severity, the known-exploited vulnerabilities, and the vulnerabilities that a TuxCare build fixes. A closed finding and an ignored finding do not count (see [Triage findings](/guide/findings#triage)). A package is past "end of life (TuxCare ELS line)" when the TuxCare release line of its version is an ELS line. A package that no TuxCare line covers is "not known": the report does not count it as past end of life or as supported. A runtime, a framework, and an operating-system release are past end of life after the end date of their vendor. A count of repositories, images, or hosts is a button. Select it to list the first 10 of them, each with a link to its page. **Print or save as PDF** opens the report as a sheet to print. The sheet has the counts only. ## Remediation {#remediation} The **Remediation** page shows how fast the teams fix findings, against the fix deadlines. ![The Remediation page, with the share fixed in time, one card for each severity, the findings past the fix deadline, and the table by department.](/guide/img/remediation.png) The **Remediation** page. 1. The period, the department, and **Edit deadlines**. 2. **Fixed in time** for the whole period. 3. One card for each severity. 4. The open findings that are past their fix deadline. 5. The fix state of each department. Below it, the section [Time to remediate and SLA](/guide/findings#remediation-report). **Fixed in time** : The findings that closed before their deadline, divided by the findings that closed in the period. **Mean time to fix** : The mean time from open to close of the findings that closed in the period. A finding opens at its first sighting in its slot, and closes at the first complete, matched scan of the slot that does not have it. A finding that goes from open to **Not evaluated** (TuxCare has not assessed the installed build, see [Servers](/guide/radar-hosts#findings)) closes at that scan too. It counts as fixed in these numbers and in the [remediation report](/guide/findings#remediation-report), because Pulse cannot tell that the build is still affected. A finding that goes from open to **TuxCare is investigating** (see [Servers](/guide/radar-hosts#investigating)) does not close: these numbers do not count it as fixed. **Past the fix deadline** : The open findings that are older than their deadline, the worst severity first. Inside one severity, a known-exploited finding comes first. Fix these first. **Top fixes across hosts** : Shown when the page shows hosts only: with the [asset-kind filter](/guide/portal-tour#asset-kind) on **Hosts**, and in a TuxCare Radar workspace. Each row is one package update on the hosts: the package, the version to update to, the advisories and the open findings that the update closes (a finding that lists several packages counts on each package), and the hosts that it touches. The rows that close the most advisories come first, then those on the most critical hosts, then those on the most hosts. On each host, the update goes to the highest fix version of the open findings of the package. A finding that KernelCare or LibCare live-patches, a finding of a kernel that the host does not run, an ignored finding, and a finding with no fix do not count. ### Time to remediate and SLA {#remediation-report} The section **Time to remediate and SLA** at the end of the **Remediation** page is the remediation report for managers and auditors. It uses the department and the [asset-kind filter](/guide/portal-tour#asset-kind) of the page. **Report period** selects the last 30, 90, 180, or 365 days. Until you change it, it follows the period of the page. **Mean time to remediate by month** : One row for each calendar month (UTC) of the period, and a last row for the whole period. The first and the last month are cut to the period: the row shows the days, for example "4–31 Aug 2026". For each severity, the table shows the mean and the median number of days from the first sighting to the close, and the number of findings that closed. A finding counts in the month in which it closed. "—" means that no finding of that severity closed. The column **No rating** shows only when a finding with no rating closed. **Fixed in time against the deadline sets** : One row for each deadline set, with the deadline of each severity. **Fixed in time** is the share of the findings that closed in the period on or before their deadline, with the counts (for example "92% (23 of 25)"). **Open past the deadline** counts the findings that are open now and older than their deadline. **Out of scope** counts the findings that the set leaves out. The portal computes every deadline and count. | Deadline set | Source | Deadlines | Out of scope | | --- | --- | --- | --- | | Workspace | The [fix deadlines](/guide/findings#deadlines) of the workspace | The deadlines of [**Settings** › **Workspace**](/settings/workspace) › **Fix deadlines**. A known-exploited finding, and a malicious finding, take the critical deadline. | Nothing | | PCI DSS | PCI DSS v4.0 requirement 6.3.3 | Critical 30 days, high 30 days, medium 90 days, low 90 days. PCI DSS sets no time for medium and low: 90 days is the common choice of assessors. | A finding with no rating | | CISA KEV | CISA Binding Operational Directive 22-01 | Critical 14 days, high 14 days, medium 14 days, low 14 days, no rating 14 days. The clock starts at the later of the first sighting and the date when CISA added the vulnerability to its KEV catalogue. The directive binds US federal civilian agencies only: for a company it is a reference. | A finding that is not known exploited | | NIST / FedRAMP | NIST SP 800-53 RA-5, with the FedRAMP Continuous Monitoring times | Critical 30 days, high 30 days, medium 90 days, low 180 days | A finding with no rating | To save a table, select **Download MTTR (CSV)** or **Download SLA (CSV)**. The files have the filters of the page. The MTTR file has a row for each month, asset kind (hosts, repositories, images, and all), and severity. The SLA file has a row for each deadline set and severity, and a total row for each set. To make a PDF, select **Print or save as PDF**: a page opens with the workspace, the period, the filters, the date, and the two tables. Select **Print or save as PDF** on that page, then **Save as PDF** as the printer. ### Fix deadlines {#deadlines} A fix deadline is the number of days to fix an open finding, from its first sighting. | Severity | Default deadline | | --- | --- | | Critical, and every known-exploited or malicious finding | 7 days | | High | 30 days | | Medium | 90 days | | Low, and a finding with no rating | 180 days | An acknowledged finding can pass its deadline. An ignored finding cannot. An admin changes the deadlines in [**Settings** › **Workspace**](/settings/workspace) › **Fix deadlines**: 1 to 3650 days, and a worse severity cannot have a longer deadline. The grades and the counts use the new values at once. ![The Fix deadlines card of the Settings page, with one field for each severity and the Save button.](/guide/img/deadlines.png) **Settings** › **Workspace** › **Fix deadlines**. --- # Fix vulnerabilities URL: /guide/fix How to close the findings of a project: with an upgrade to a fixed version, or with a TuxCare build of the version that you use now. The CLI makes the change, checks it, and keeps it current. ## Two ways to fix {#choose} | | Upgrade the package | Use a TuxCare build | | --- | --- | --- | | What changes | The version: you move to the lowest version that fixes the advisory. | The source: the same version, built by TuxCare from source with the fix added. Its version ends in `-tuxcare.N` (Python: `+tuxcare.N`). | | Use it when | The fixed version is close, and its changes do not break your code. | The fix is in a new major version, or the project that made the package no longer fixes your version. | | How | [`tuxcarectl fix`](/guide/fix#fix-command) writes the change for you. By hand, for a direct dependency: your package manager, with the flag that pins the exact version, for example `npm install --save-exact lodash@4.17.21`. For pnpm the flag is also `--save-exact`, and for Yarn and Bun it is `--exact`. Without it, package.json gets a range such as `^4.17.21`. A named install also sorts the dependency list of package.json again: that is your package manager, not `harden`. For a transitive package, see [Upgrade a package](/guide/fix#upgrade). | `tuxcarectl harden`. See [TuxCare builds](/guide/fix#builds). | | Needs | Nothing more. `tuxcarectl fix` needs a portal token and no TuxCare registry. | A subscription with TuxCare builds. | The portal tells you which fix applies: - The [**Fix plan** tab](/guide/repositories#fix-plan) of a repository lists each package to change, the version to move to, and where the fix comes from: "upstream" or a TuxCare build. - The [page of a finding](/guide/findings#finding) shows **How to fix**: the recommended fix, the alternatives, and the command to run. - The [**TuxCare coverage**](/guide/findings#coverage) tab of **Packages** counts the packages of the workspace that a TuxCare build can fix. This page is about the packages of a project. An OS package of a server is not a dependency of a project: `tuxcarectl harden` and `tuxcarectl fix` do not change it. Its **How to fix** card gives the update command of the package manager of the server, for example `sudo yum update nettle nettle-devel`. See [Update an OS package](/guide/radar-hosts#os-fix). For a language package, the portal recommends one fix in this order: 1. A TuxCare build of the version that you use now, for example `7.29.3-tuxcare.4` for 7.29.3. A TuxCare build fixes only the version that it was built from. 2. Else the lowest upstream version above yours that fixes the finding. 3. Else, when no upstream version has the fix, the TuxCare build of the nearest higher version. ## Upgrade a package {#upgrade} 1. Open the **Fix plan** tab of the repository. The packages with the worst severity come first. Inside one severity, a package with a known-exploited finding comes first. 2. Run [`tuxcarectl fix`](/guide/fix#fix-command), or change the version of the package with your package manager. For a transitive package, upgrade the direct dependency that pulls it in, or pin it with the mechanism of your tool: `overrides` for npm, pnpm, and Bun, `resolutions` for Yarn, a constraints file for pip, `dependencyManagement` for Maven, a `constraints` block for Gradle, a direct `PackageReference` for NuGet, or `dependency_overrides` for Dart. With Go, `go get` moves it. With Cargo, Composer, and Bundler, `cargo update`, `composer update`, and `bundle update` move it inside the ranges of its parents; outside them, a parent must move. The **How to fix** card gives the line or the command when one fits your tool. On npm and PyPI, do not install a transitive package by name: that adds a new direct dependency, and the copy under its parent can stay vulnerable. For a TuxCare build, `tuxcarectl harden` writes the override. 3. Run your tests, and commit the manifest and the lockfile. 4. Run `tuxcarectl sca`, or let the CI job run it. The finding closes when the portal gets a scan that does not have it. The fix plan marks an upgrade to a new major version with "major version". Such an upgrade can break your code. A TuxCare build avoids it. ### Write the upgrade: tuxcarectl fix {#fix-command} `tuxcarectl fix` (CLI 0.1.81 or later) writes the upstream fix for each open finding, runs the install command of your package manager, and checks the result. It needs a portal token and no TuxCare registry. It also needs no `.tuxcare.yaml`. On Maven and Gradle, it needs no BOM file. ``` tuxcarectl fix --dry-run # print each change; write nothing tuxcarectl fix ``` `--dry-run` prints each change that the write makes, and writes nothing in the project: your package manager runs on a temporary copy. It reads the findings as `tuxcarectl sca` does, so it sends the package list to your workspace when the portal has no scan of that list. **`fix` runs the code of the project, also with `--dry-run`.** To compute each change, `fix` starts your package manager, and the package manager runs the code that the project gives it: for example the pnpmfile, the Yarn release and the Yarn plugins of the project, the `Gemfile`, `mix.exs`, `Package.swift`, `conanfile.py`, the `Podfile`, the `cpanfile`, the `.Rprofile`, the MSBuild and Bazel files, and the build of a Gradle or Maven project. The preview writes nothing in the project, but the tools run on its copy in the same way. `--run-project-hooks` does not change this. So run `fix` only on a project that you trust. Do not run it on a merge request from outside, or run it in a sandbox job that holds no secret. For each package, `fix` writes the first change that applies: 1. The lockfile entry, when the fix fits each range that requests the package. Your package manager chooses the version, which can be above the fix. On Bun, the lock moves to the fix, not to the newest version. 2. The range in the manifest, with the same operator, when that range refuses the fix. 3. A new release of the parent, when a transitive range refuses the fix and a release of each parent takes it. Except on renv, `fix` does not move a parent to a new major version: that is your choice. Where your tool has an override, `fix` writes the override, and a note names the release. Where it has none, `fix` leaves the finding. 4. An override, where your tool has one, scoped so that it does not move another version of the package. The rest of what `fix` does: - It moves a package to an upstream version, never to a TuxCare build. It does not change a TuxCare build or a pin that `harden` wrote: for these, run `tuxcarectl update`. - It does not replace an override that you wrote. - When it cannot write one change for a finding, it leaves the finding, and prints the reason for each one. The run then ends with exit code 1, and the changes that it wrote stay. - When your package manager refuses one change, and another change of the same tool lands, the refused change becomes a left finding with the code `not_moved` and the line of the tool. `fix` writes and checks the other changes, and the run ends with exit code 1. When no change of the tool lands, the run stops with exit code 5 and writes nothing, so a tool that cannot run still stops the run. Two refusals are left findings also for a single change: "failed to select a version" of Cargo, and a version that `go get` refuses. A tool that solves all its changes in one call gets at most 24 solves to find the refused change. After that, the run stops with exit code 5. Only a refusal of your package manager is a left finding: a step of the tool on the copy of the project failed, the tool refused the change, or `fix` could not write the change into the build files of Maven or Gradle. An error of the machine around the tool, for example a failed copy of your project or a file that does not read or write, stops the run at its own exit code: 7, or 5 for a project that `fix` cannot read. Then there is no left finding, and `fix` writes nothing. On Maven and Gradle, CLI 0.1.92 and earlier read such an error as exit code 5, or as a left finding `not_moved`. - When the check after the install names packages that did not land, `fix` puts your files back and runs again without those changes, at most two times. Each such package becomes a left finding with the code `not_moved`, and the run ends with exit code 1. Each other failure of the check ends with exit code 6, also a failure after the last try, and `fix` puts your files back. - On npm, pnpm, Yarn, and Bun, a package can leave the dependency tree with another change. Its finding closes, `fix` keeps the write, and its change reads `removed`. - These rules need a CLI release after 0.1.84. With CLI 0.1.84 or earlier, a refused change other than these two refusals stops the run with exit code 5. A package that did not land, or that left the tree, ends the run with exit code 6. In both cases `fix` puts your files back. - When the install fails, `fix` puts your files back and exits with code 5. See [Exit codes](/guide/exit-codes#exit-codes). - A tool that resolves the whole lockfile at each change, such as Bundler, Pub, or Mix, can take an earlier package back below its fix with a later change of the same run. Such a package becomes a left finding with the code `not_moved`, and its reason names the later changes. `fix` writes the other changes, and the run ends with exit code 1, also with `--dry-run`. When no change of the tool stays, `fix` writes nothing for that tool. CLI 0.1.92 and earlier showed such a package as a change with no new version: `--dry-run` ended with exit code 0, and a real run failed the check after the install. - When `fix` cannot vouch that no finding stays open, the run ends with an exit code that is not 0, as `check` does. These are the four cases: - A finding with the code `unplaced`, also when it is the only open finding: exit code 1. - A part of the project that `sca` did not read: exit code 5. The refusal of each part says what to do. If a manifest has no lockfile, commit the lockfile if your package manager creates one, or leave out the manifest with `--exclude ` or the `ignore` key in the project file (CLI 0.1.95 or later). - A Gradle runtime that Gradle reports empty over declared packages, under `--gradle-empty-runtime fail` (the default): exit code 5. - A part that the check after the install could not read: exit code 5 when your package manager stopped part-way, 2 for a part that tuxcarectl cannot judge, and 7 for each other refusal. When the first read of the project could read that part, `fix` also puts your files back. A finding that `fix` left comes first: the run then ends with exit code 1. Else the highest code of these cases applies, in this order: 7, 5, 2. CLI 0.1.85 to 0.1.92 keep exit code 0 and the write in these four cases, with a warning that names the new exit code. - **`--on-unvouched warn` is deprecated.** `--on-unvouched warn`, or the key `fix_on_unvouched: warn` of `.tuxcare.yaml`, keeps exit code 0 and the write in these four cases until 2027-12-01. The option wins over the key. The default is `fail`. Each case still gives a warning, and each run that uses `warn` prints one deprecation warning, on standard error and in `warnings` of `--output json`. A finding that `fix` left with another code still gives exit code 1, and a stop before the end, for example a failed install, keeps its exit code. After 2027-12-01 a release removes the value `warn`. Fix what each warning names, and remove the option and the key before that date. - It calls no package registry: your package manager asks its own registry. On GitHub Actions, your `git` reads the tags from github.com, also with `--dry-run`, and sends only the name of the repository. - It sends nothing to the portal after the write. Run your tests, commit the manifest and the lockfile, and run `tuxcarectl sca`. The finding closes when the portal gets a scan that does not have it. ### The tools of tuxcarectl fix {#fix-tools} `fix` covers each package manager that `tuxcarectl` reads: npm, pnpm, Yarn classic, Yarn Berry, Bun, Deno, uv, PDM, Poetry, Pipenv, pip, pip-tools, conda, Maven, Gradle, Cargo, NuGet, Bundler, Composer, Stack, Cabal, CocoaPods, Julia, renv, CPAN, Pub, Mix, SwiftPM, Paket, Bazel rules_jvm_external, Go modules, GitHub Actions, and Conan. CLI 0.1.81 covers the JavaScript tools, the Python tools, Maven, Gradle, and Cargo. Each other tool needs a CLI release after 0.1.81. CLI 0.1.81 leaves the findings of such a tool with the code `no_fixer`, names the tool and the file to edit by hand, and ends with exit code 1. | Tools | What `fix` writes | The override | | --- | --- | --- | | npm, pnpm, Yarn classic, Yarn Berry, Bun, Deno | The lockfile, with the tool, and the range in `package.json`. On Deno: the `imports` of `deno.json`. | `overrides` on npm and Bun, the override block that your version of pnpm reads, and `resolutions` on Yarn. Bun also takes `resolutions` when the manifest declares only that block. Deno has no override. | | uv, PDM, Poetry, Pipenv, pip-tools | A lower bound on the fix, `name>=version`, and the tool chooses the version in its lockfile. On pip-tools, the lockfile is the compiled `requirements.txt`. | `tool.uv.override-dependencies` on uv and `tool.pdm.resolution.overrides` on PDM. The others have no override. | | pip | pip has no lockfile: a line in the constraints file that `requirements.txt` reads, or in a new `constraints.txt` with a new `-c` line. | None. | | conda | conda has no lockfile: a line of the `pip:` list, also for a package that a conda spec names. `fix` does not edit a conda spec. | The `pip:` list. | | Maven | The ``, the property, or the `dependencyManagement` entry that the report names. | `dependencyManagement` in the pom of the module. It outranks a BOM and a parent pom outside the project, and `fix` moves neither of them. | | Gradle | The coordinate, the variable, or the key of the version catalog that the report names. Then `--update-locks` of each `gradle.lockfile`. | The block `upstream-fix` in the settings file, before the block of `harden`. `update` and `unharden` leave it. | | Bazel rules_jvm_external | The version in the module file, then a repin, which writes the lock file. | A new entry in the `artifacts` list, for a transitive artifact. | | Cargo, Bundler, Composer, SwiftPM, CocoaPods, Julia, CPAN | The update command of the tool for the package and its parents, for example `cargo update`. Else the version in the declaration, with the same operator. On Julia, a package whose name two packages of `Manifest.toml` share (for example a fork beside the package of the General registry) gets no move: `fix` leaves its finding with the reason, and a parent of such a name is not given to `Pkg.update` either. | None: when no release of a parent on its line takes the fix, `fix` leaves the finding. | | renv | `renv::install` of the fix, then `renv::snapshot` of the package. Else the version in `DESCRIPTION`, with the same operator. The package whose record refuses the fix moves to its newest release, also to a new major version. | None: when such a move does not take the fix, `fix` leaves the finding. | | NuGet | The `Version` of the `PackageReference`, its `VersionOverride`, or the `PackageVersion` of `Directory.Packages.props`. `fix` does not search the releases of a parent. | A direct `PackageReference` at the fix. Under central package management, a `PackageVersion` in `Directory.Packages.props`, and a `PackageReference` with no version where the `PackageVersion` alone moves nothing. | | Pub, Mix, Paket | The update command of the tool for the package and its parents. Else the version in `pubspec.yaml`, `mix.exs`, or `paket.dependencies`, with the same operator. | `dependency_overrides` on Pub, `override: true` on Mix, and `nuget == ` on Paket. | | Stack, Cabal | The extra-dep line of `stack.yaml`, or the line of `cabal.project.freeze`. `fix` does not widen a range of your project. | None. | | Go modules | `go get` of the module at the fix, in each module that requires it, then the vendor step of a vendored project. | None. `fix` does not change a `replace`: the reason gives the edit. | | GitHub Actions | The `uses:` line of the workflow or of the composite action: a release tag at or above the fix. A tag of the major or the minor stays in that form when it stands at such a release. A full commit stays a full commit. | None. | | Conan | `conan.lock`, the line of `conanfile.txt` or `conanfile.py` that refuses the fix, or the line of a parent on its major version (0.x: on its minor version). | `override=True` in `conanfile.py`, and the key `overrides` of `conan.lock` for `conanfile.txt`. | `fix` runs your package manager, so the tool must be on the computer, also for `--dry-run`. `tuxcarectl sca` reads many lockfiles with no tool, and `fix` does not. So Cargo needs `cargo`, NuGet needs `dotnet`, Conan needs Conan 2, Bazel needs `bazel` or `bazelisk`, and GitHub Actions needs `git`. The same holds for `bundle`, `composer`, `stack`, `cabal`, `pod`, `julia`, `Rscript`, `carton`, `dart`, `mix`, `swift`, `paket`, and `go`. With no such tool, the run stops with exit code 5, and the message names the tool. With no npm or uv, `fix` leaves the finding with the code `no_file`. ### The findings that fix leaves {#fix-left} `fix` leaves a finding that has no single edit. It prints the reason for each one, and the file to edit by hand when there is one. `--output json` gives the same in `fix.left`, with a `code`. A left finding never reads as fixed. Each code gives exit code 1, with these exceptions. `fixed_by_tuxcare`, `no_fix_planned`, and `live_patched` do not change the exit code. A finding that TuxCare is investigating on a TuxCare build is not open, and the portal does not send it, so `fix` does not see it (see [Findings with no fix planned](/guide/reference#no-step)). `unplaced` also gives exit code 1 when it is the only open finding. CLI 0.1.85 to 0.1.92 keep exit code 0 there with a warning, and so does the deprecated [`--on-unvouched warn`](/guide/fix#fix-on-unvouched). Each finding of `sca` is a finding of `fix`, with one exception. A lockfile beside the tree of your tool can count the same package again, for example a `gradle.lockfile`. `fix` then keeps only the finding of the tree. It does this only when the tree covers the directory of the lockfile. A lockfile in a directory that the tree does not cover is a project of its own, also when the root holds the same package. For example, a `website/package-lock.json` below a root npm project gets the code `no_file`, and the reason names `tuxcarectl fix --dir website`. This rule needs CLI 0.1.84 or later. On a Gradle build of several projects, the finding of the `gradle.lockfile` of a subproject is a copy of the finding of the tree, on Gradle 8 and on Gradle 9: `fix` moves the package in that lockfile, and the run ends with exit code 0 (measured on Gradle 8.14.3 and 9.7.0). A subproject whose directory is outside the root is a project of its own, and its finding gets the code `no_file`. | Code | The finding | | --- | --- | | `no_upstream_fix` | The portal names no upstream version. | | `several_fixes` | The portal names several versions, and no comparison chooses one. | | `no_file` | The report names no file for the package: no lockfile, or a lockfile that no tool of this run read. For example, its tool is not on the computer, or the lockfile is a second project below the directory. The reason names the directory. Run `tuxcarectl fix --dir ` where the tool is installed, or edit the file by hand. | | `pinned` | The file of the tool states the version with no range that `fix` can move. On NuGet: a `packages.config` entry. | | `environment` | The package is the tooling of a Python environment, or the Go toolchain. Upgrade the environment, or build with the fixed Go. | | `range_assumed` | The change rests on a range that the CLI assumed. `fix` writes no edit on a guess. | | `manifest_range` | A declaration that `fix` cannot move and keep its meaning: a compound range, a tag, a URL, or an alias. On Stack and Cabal, a range of your project. On Go, a fix in another major version. On GitHub Actions, a branch or a short commit. | | `customer_override` | An override that you wrote already matches the package. This includes a Go `replace`. `fix` does not replace your line. | | `hardened` | The project holds a TuxCare build of the package, or a pin that `harden` wrote. Run `tuxcarectl update`. | | `override_scope` | No key moves this copy and leaves another version as it is. | | `no_override` | The tool has no override, and no parent that the project declares moves the package: Deno. On Mix and Pub: a file with no place for a new line. | | `no_parent_release` | No release on the line of the parent takes the fix, and the tool has no override for it. On NuGet: the range of a parent stops below the fix. | | `not_moved` | The tool ran, and the old version stayed. This includes a change that your package manager refused and a package that did not land: the reason keeps the line of the tool. It also includes a package that a later change of the same run took back below its fix: the reason names the later changes. | | `no_ref` | GitHub Actions: `git` cannot read the repository, or the repository has no release tag at or above the fix. | | `residual` | The new version landed, and a copy stayed on the old version. The run keeps the write. | | `fixed_by_tuxcare` | The build in the project already closes the finding. `fix` has nothing to write. | | `no_fix_planned` | TuxCare stated that it will not fix the finding on the build, so no version closes it. `fix` has nothing to write. This code needs a CLI release after 0.1.84. | | `live_patched` | A live patch that is loaded on the host closes the finding. `fix` has nothing to write. This code needs a CLI release after 0.1.84. | | `unplaced` | No step of the run placed the finding: no change and no other left finding names it. A defect of tuxcarectl. Move the package by hand. This code needs a CLI release after 0.1.84. | ## TuxCare builds {#builds} TuxCare builds the open-source packages that your projects use from their source, and serves the builds from the TuxCare registry. When a vulnerability is found in a version, TuxCare adds the fix to that version and publishes a new build. TuxCare also fixes versions that the project that made them no longer maintains. A new upstream version reaches the registry only after TuxCare checks it, for example for malicious code. The CLI moves a project to the builds in three steps: `init` one time for each repository, `registry login` one time for each computer, and `harden` each time you want to apply the builds. If Renovate or Dependabot updates the dependencies of the repository, give it the rule of [Renovate and Dependabot](/guide/registry#bots). Without the rule, the bot can replace a TuxCare build with an upstream release. ### What you need {#builds-need} - **A subscription with TuxCare builds.** `tuxcarectl auth status` shows it in the line `subscription`. `SecureChain no, ELS no` means that your workspace has none. [Contact TuxCare](/guide/help#help). - **A registry token in the workspace.** An admin saves it one time under [**Settings** › **Registry and CLI**](/settings/registry) › [**Registry token**](/guide/registry#registry-token). - **The setting [**Use the TuxCare registry**](/guide/fix#registry-use) on** for the workspace or the repository. It is on by default. - **A committed lockfile**, for example `package-lock.json`. - **A supported package manager**: npm, pnpm, Yarn, Bun, pip, uv, Poetry, PDM, Pipenv, conda, Maven, or Gradle. Deno: the `imports` of `deno.json` only. Maven and Gradle need no BOM file. ### Use the TuxCare registry, or your own repositories {#registry-use} The setting **Use the TuxCare registry** says whether the CLI uses the TuxCare registry for the projects of the workspace. It is on by default. - **On:** the portal gives the CLI the address of the TuxCare registry and the registry token. The CLI points the package managers of the project at the TuxCare registry, and `tuxcarectl auth login` and `registry login` write the registry token into the user files of your package managers, for example `~/.npmrc`. - **Off:** the portal gives the CLI no registry address and no registry token. `auth login` and `registry login` then write no registry and no token into the files of your package managers. Turn it off when your builds use only your own package repositories, for example Artifactory or Nexus. A mirror that serves the TuxCare builds is not such a case: keep the setting on (see [Your own mirror](/guide/registry#mirror)). **The TuxCare registry needs a SecureChain or an ELS subscription.** A workspace with neither gets no registry, whatever the setting says: the portal gives the CLI no registry address and no registry token, also for a repository with the value **On**. The CLI then gets the reason "the TuxCare registry needs a SecureChain or an ELS subscription, and this workspace has neither", and the repository page shows **Use the TuxCare registry: Not available** with the same reason. The values of the setting stay as they are. When TuxCare adds a subscription, the values apply again: with the default, every repository uses the TuxCare registry. [Contact TuxCare](/guide/help#help) to add a subscription. An admin sets the value of the workspace under [**Settings** › **Registry and CLI**](/settings/registry) › **Use the TuxCare registry**. A repository can have a value of its own: open the repository, select **More**, and under **Use the TuxCare registry** select **Workspace default**, **On**, or **Off**. In a clone of the repository, `tuxcarectl registry use on`, `off`, or `default` does the same, and prints the value that applies now. When the workspace has neither SecureChain nor ELS, it prints the reason and stops with exit code 3. The value of the repository wins in both directions: a repository with **On** uses the TuxCare registry in a workspace with the value off. Only an admin can change the value of the workspace. A member or an admin of a repository can change the value of that repository: a person with the role viewer on the repository, a token of one repository or of one department (a CI token), and a TuxCare staff session cannot. A token of a person needs the permission `write`. The other people see the values on the repository page. The **Audit log** records each change as `settings.registry_use`. For a token of one repository, the portal uses the value of that repository. For another token, it uses the value of a repository only when the CLI names the repository by its git remote. Else it uses the value of the workspace. **After an admin turns the setting off.** The files that an earlier `auth login`, `registry login`, or `init` wrote still point your package managers at the TuxCare registry. Remove those lines. Each line names the registry host: the `registry:` line of `.tuxcare.yaml` names it, and on `sc.tuxcare.cloud` it is `artifacts.tuxcare.com`. `git grep -n artifacts.tuxcare.com` finds the lines in a repository. A `registry:` line that names your own mirror is your choice: keep it. While the setting is on, a new `auth login` writes the lines again. - **On each computer where you ran `auth login` or `registry login`:** run `tuxcarectl auth logout` with no `--tenant`, then `tuxcarectl auth login` again. `auth logout` removes the registry lines from the user files of your package managers, for example `~/.npmrc`, `~/.yarnrc.yml`, `~/.netrc`, `pip.conf`, `uv.toml`, and `~/.m2/settings.xml`, with the securechain header line at the top of each file, and it removes the kept registry credential. It changes no other line. It also removes every sign-in of the computer. The new `auth login` writes no registry line. If `auth logout` cannot find the registry, it changes no file and a warning names the files: run it in a repository where `init` ran, or remove the lines by hand. If you also use a workspace where the setting is on, run `tuxcarectl registry login` in a repository of that workspace after the new sign-in. `auth logout` cannot find a `pip.conf` that a relative `PIP_CONFIG_FILE` names: it warns, and you remove that `index-url` line by hand. - **In a repository where `harden`, `update`, or `migrate` ran:** run [`tuxcarectl unharden`](/guide/fix#unharden). It removes the TuxCare builds and the registry lines of `init`. Then remove the `registry:` line of `.tuxcare.yaml` when it names the TuxCare registry. Do not remove it before `unharden`: `unharden` finds the registry lines through it. - **In a repository where only `init` ran:** remove the registry lines of `init` by hand, for example in `.npmrc`, `.yarnrc.yml`, `pnpm-workspace.yaml`, `bunfig.toml`, `pyproject.toml`, `requirements.in` or `requirements.txt`, `Pipfile`, `environment.yml`, `.github/dependabot.yml`, and `renovate.json`. With Bun 1.4.0 or later on the `PATH`, `init` also writes `[install] registry` into an existing `bunfig.toml` whose registry is the public npm registry, because that Bun reads `bunfig.toml` before `.npmrc`. Each of these files except `renovate.json` also holds the securechain header line of `init`: `# securechain wrote the TuxCare registry lines in this file. Run "securechain unharden" to remove them.` Remove that line too. Also remove the `registry:` line of `.tuxcare.yaml` when it names the TuxCare registry. Where `init` changed a line that was there before, the `unharden:` block of `.tuxcare.yaml` holds the old text: put that text back, then remove the block. Commit the result. The [command reference](/guide/reference#commands) lists the options of `auth logout`, `auth login`, and `registry login`. ### Set up a project {#setup} ``` cd path/to/your/project tuxcarectl init # one time for each repository tuxcarectl registry login # one time for each computer ``` - `init` writes [`.tuxcare.yaml`](/guide/config#config) and makes the TuxCare registry the package source of the project, for example in `.npmrc`. It writes no credential. Commit the files that it names. `init --dry-run` shows the changes and writes nothing. - `registry login` gets the registry credential from your workspace and writes it into the configuration of your package managers in your home directory, for example `~/.npmrc`. It lists the files that it changed, and `tuxcarectl auth logout` removes its lines: see [The files that auth login and registry login write](/guide/reference#auth-files). Each person who installs the project runs it one time. Run it again when an admin changes the registry token. - If the project already uses your own registry, such as Artifactory or Nexus, `init` and `registry login` keep it and tell you so. `--replace-source` makes the TuxCare registry the source. To get the TuxCare builds through your mirror, see [Your own mirror: Artifactory or Nexus](/guide/registry#mirror). ### Move the project to the builds: harden {#harden} ``` tuxcarectl harden --dry-run # show the plan and the changes; write nothing tuxcarectl harden ``` 1. `harden` asks the portal which TuxCare builds your subscription has for the dependencies of the project. 2. It writes those builds into the manifest and the lockfile. 3. It can also change `.yarnrc.yml`, `pnpm-workspace.yaml`, or `bunfig.toml`, for example for the release-age excludes. Each such file gets the securechain header line as its first line. `package.json` and `deno.json` get no header, and a warning of `harden` names each one. [`unharden`](/guide/fix#unharden) removes the header with the lines. 4. It runs the install command of your package manager. 5. It checks that each planned build is installed. If the check fails, it puts your files back and exits with code 6. 6. It sends the new package list to your workspace. Then run your tests, and commit the manifest, the lockfile, and each other file that `harden` changed. - `harden` keeps the version of each package. `1.3.1` moves to the newest build of `1.3.1`, for example `1.3.1-tuxcare.2`. - `--allow-minor-upgrades` lets a package move to a later version with the same major and minor numbers, when only that version has a build that closes the findings. `1.3.1` can move to `1.3.2-tuxcare.1`, never to `1.4.0`. - `--include` and `--exclude` limit the run to the packages that you name. ### Keep the builds current: update {#update} ``` tuxcarectl update --check-only # exit code 1 when a newer build exists; write nothing tuxcarectl update ``` TuxCare publishes a new build when it fixes a new vulnerability in a version. `update` moves each TuxCare build of the project to the newest build of the same version, for example from `1.3.1-tuxcare.2` to `1.3.1-tuxcare.3`. It installs and checks the result, as `harden` does. Run it on a schedule, or when the portal shows a finding that a newer build fixes. ### The gate: check {#check} `tuxcarectl check` reads the installed dependencies and changes nothing. It exits with code 1 when the project is not in the state that `harden` made: - A package has a finding, your subscription has a TuxCare build that fixes it, and the project does not use the build. - A newer TuxCare build exists for a build that the project uses. - The lockfile points at the public registry for a package that `harden` moved to a TuxCare build. `--explain` prints the evidence and the fix for each problem. ## TuxCare builds in CI {#builds-ci} A job that installs TuxCare builds needs the registry credential before the install step. The job does three things in this order: get the credential, install, run `check`. **GitHub Actions**: ``` permissions: contents: read security-events: write steps: - uses: actions/checkout@v4 - uses: TuxCare/tuxcarectl-action@v0 with: command: registry portal-token: ${{ secrets.TUXCARE_PORTAL_TOKEN }} - run: npm ci - uses: TuxCare/tuxcarectl-action@v0 if: always() with: portal-token: ${{ secrets.TUXCARE_PORTAL_TOKEN }} registry-login: none ``` - The first use of the action gets the credential for the install step. - The second use runs `tuxcarectl check` and sends its result to GitHub code scanning. `if: always()` runs it after a failed install too: its last step removes the credential of the job. **GitLab CI**: ``` tuxcarectl: image: node:22 # any image that has curl and your package manager script: - curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh - out="$(tuxcarectl registry env --job-dir "/tmp/tuxcarectl-job-$CI_JOB_ID" --format shell)"; eval "$out" - env -u TUXCARE_PORTAL_TOKEN npm ci - tuxcarectl check --output junit > report.xml after_script: - rm -rf "/tmp/tuxcarectl-job-$CI_JOB_ID" artifacts: reports: junit: report.xml ``` - `registry env --job-dir` writes the credential into a directory for this job, and prints the variables that point npm, pnpm, Yarn 1, and the Python tools at it. It changes no file in the home directory of the runner. - From CLI version 0.1.89, `registry env --job-dir` exits 5, writes no job directory, and prints no variable when an `.npmrc` or a `pnpm-workspace.yaml` of the checkout sets `strict-ssl` (`strictSsl`) to a value other than `true`, and the pnpm of the job takes that setting: pnpm 12.0 to 12.15 for `.npmrc`, pnpm 10.6 to 10.x for `pnpm-workspace.yaml`. With CLI 0.1.99 or later, the CLI reads more spellings of the `.npmrc` key before it decides: a key under a `[section]` (pnpm 12.0 to 12.15 read it at the top level), and a key with a variable such as `${X?}` read as empty. On a pnpm in the range of the file it also refuses a key in quotes or with a JSON escape, a key after a bare carriage return, and a key cut at `#`: pnpm 11 or a later pnpm 12 reads such a spelling, and the refusal is wider than each pnpm on purpose. An `.npmrc` that sets `strict-ssl=false` and then `true` on a later line with the key in another spelling (in quotes, in upper case, or with `_`, `--`, or `[]`) is refused too: pnpm 12.0 to 12.15 take only the key `strict-ssl`, so for them the `false` stays. The commands that run pnpm with the registry credential stop at the same settings before pnpm starts. `tuxcarectl check` reports a `strict-ssl` value other than `true` in each of these readings as `registry-transport-in-project`, whatever pnpm version the project uses. Such a pnpm would send the registry credential over a connection that it does not verify. Remove the setting from the file. If your network needs a certificate authority, put it in your own `~/.npmrc` (`cafile`), or use pnpm 12.16 or later (11.0 or later for `pnpm-workspace.yaml`). From CLI version 0.1.90, the refusal also judges the pnpm that a `package.json` of the checkout pins in `packageManager` or `devEngines.packageManager`: pnpm starts that pinned version in place of the pnpm on the `PATH`. So a pin in the range of the file (a `devEngines` range that holds such a version, or a pin that the CLI cannot read) is refused also when the pnpm on the `PATH` is newer. Name pnpm 12.16 or later (11.0 or later for `pnpm-workspace.yaml`) in those fields of `package.json` too. `--pnpm-project-strict-ssl warn` of `registry env`, or `TUXCARE_PNPM_PROJECT_STRICT_SSL=warn`, keeps the warning of earlier versions in place of the refusal until 2027-12-01. Each run with it prints a deprecation warning. - `registry env --job-dir` also exits 5, writes no job directory, and prints no variable when a project file of the checkout names an `http` URL on the host of the TuxCare registry. It reads each `.npmrc`, `.yarnrc`, `package.json`, `package-lock.json`, `npm-shrinkwrap.json`, `pnpm-lock.yaml`, `pnpm-workspace.yaml`, `yarn.lock`, `bunfig.toml`, and `bun.lock` of the checkout, but not `node_modules`. The job gives npm, pnpm, Yarn 1, and Bun 1.4.4 and later the registry key of that host, and each of them sends the key to each address on the host, also over plain `http`. So a step of the job would send the registry credential in plain text. The message names the file and the line. To fix it, use `https` in that line. In a lockfile, change the URL, or remove the entry and install again. A `$NAME` or `${NAME}` of a `bunfig.toml` or `.npmrc` counts with each value that a `.env` file of Bun in the checkout sets: `.env`, `.env.local`, `.env.development`, `.env.production`, or `.env.test`, each also with `.local` at the end. Bun can load these files and fill in the variable. When such a value is an `http` URL on the host, the message also names the `.env` file. To fix it, use `https` in that value. - `env -u TUXCARE_PORTAL_TOKEN` runs the install without the access token, so the install scripts of your dependencies cannot read it. - On gitlab.com, the CI/CD component does these steps for you, also for Yarn 2 and later and for Bun. When the `install` command fails, the job exits 5, not with the code of the install (from the CLI release after version 0.1.72): ``` include: - component: $CI_SERVER_FQDN/tuxcare/tuxcarectl-ci/check@0 inputs: stage: test install: npm ci ``` ## Rules for a project with TuxCare builds {#rules} - **Commit the lockfile, and install from it.** In CI, use the install command that follows the lockfile, for example `npm ci`. - **Move TuxCare builds with `tuxcarectl update` only.** Give your update bot the rule of [Renovate and Dependabot](/guide/registry#bots). A version that ends in `-tuxcare.N` is not in the public registry. `npm update`, `npm audit fix`, and other tools that select versions by themselves do not know these builds. They stop with `ETARGET`, or they put the public version back. - **Add a new dependency as usual**, for example with `npm install --save-exact name`. Then run `tuxcarectl harden` again, so that the new packages get their builds. - **On Bun, record each edit of the override block with one install on the builds path.** `bun.lock` keeps a copy of the block that Bun reads: `overrides` in `package.json`, else `resolutions`. When you add a key of your own, or change a key that `harden` wrote, the next `bun install` resolves every override again, not only the changed key. The registry of the project is `/npm-upstream/`, which has no TuxCare builds (see [the two paths of the registry](/guide/fix#npm-paths)). So the install stops with exit code 1 and does not change `bun.lock`. Bun shows a line such as "No version matching "2.1.3-tuxcare.2" found for specifier "ms"", and "ms@^2.1.3 failed to resolve" for each build. `bun install --frozen-lockfile` stops in the same way. TuxCare measured this on Bun 1.3.14 and 1.4.4. A change of a nested value, for example `"debug": {"ms": "2.1.2"}`, stops the install on Bun 1.4.4 only. To fix it, run this command once in the directory of `bun.lock`, and then commit `bun.lock`: `BUN_CONFIG_REGISTRY=https://registry host/npm/ bun install`. The registry host is in the `registry:` line of `.tuxcare.yaml`. Keep the slash at the end. After that, each install from the lockfile passes. When `registry:` names your own mirror, which serves the builds at the address of the project, run a plain `bun install` once and commit `bun.lock`. `tuxcarectl check` reports this state as `bun-lockfile-overrides`, at high severity, and its fix gives the command. For some forms of key, for example a path such as `debug>ms`, the two Bun versions record the block in different ways: `check` then does not judge the block, and a warning names the key. npm and Yarn 1 keep the other builds after such an edit. ### npm: the two paths of the registry {#npm-paths} For npm, the TuxCare registry has two paths on one host: - `/npm-upstream/` serves the packages of the public npm registry, byte for byte. `init` and `registry login` write it as the registry of the project and of your computer. - `/npm/` serves the TuxCare builds. `harden` and `update` write it into the lockfile lines of the builds, with the hash of each build. So a new TuxCare build never changes what an existing lockfile installs, and the install does not fail with `EINTEGRITY`. pnpm and Yarn 2 or later also use `/npm-upstream/` as the source: `harden` writes `/npm/` into the lockfile entry of each build. A project that a CLI before 0.1.21 set up names `/npm/` as the source of pnpm and Yarn 2 or later. The next `tuxcarectl init` changes it, and keeps the lockfile. A tool that selects a version for a TuxCare build against `/npm-upstream/` stops, because that path has no TuxCare builds: `npm update` and an install with no lockfile stop with `ETARGET`. On Bun, an edit of the override block has the same effect: see [the rule for Bun](/guide/fix#bun-overrides). ## Remove TuxCare builds: unharden {#unharden} ``` tuxcarectl unharden --dry-run # show the changes; write nothing tuxcarectl unharden ``` `unharden` undoes `init` and `harden`. Use it when you stop the subscription, or to go back to the public packages. - It puts back each line that `init`, `harden`, and `update` changed. These commands keep the original text under `unharden:` in `.tuxcare.yaml`. With `--config` or `TUXCARE_CONFIG`, `harden`, `update`, `migrate`, and `unharden` keep the `unharden:` record in that file, not in the `.tuxcare.yaml` of `--dir`. Run `unharden` with the same `--dir` and the same `--config` as `harden`. For a line with no record, `unharden` writes the base version of the build: `4.4.3` for `4.4.3-tuxcare.5`. - **Share a configuration across project directories.** Several member directories can share a file named by `--config` or `TUXCARE_CONFIG`. A writing run records its `--dir` in each undo entry's `project_dir`, relative to the configuration file's folder. Run `unharden` with the same `--dir` and configuration path to restore only that member's entries. Use a CLI that supports `project_dir` for every run. Starting with the CLI release that adds configuration locking, `harden`, `update`, `migrate`, `unharden`, and `init` hold an exclusive lock on the configuration for the whole run. With an earlier release, run writes to a shared configuration one at a time. If you start two members together, the second run waits and its report warns that it waited. The wait counts toward the run's `--timeout`. For `init`, a signal ends the process directly. The lock is released when its process ends, even if the process is killed while writing. The lock coordinates runs by one account on one machine that share the same lock directory. Run writes one at a time when sharing the configuration across machines, containers, accounts, or services with separate temporary directories, such as a systemd unit with `PrivateTmp=yes`. Before the configuration file exists, use the same path for each writer, or run the writes one at a time. First-time writers can get different locks if they use a bind mount, a Windows `subst` drive, or names that differ only in Unicode form. If the CLI cannot use the lock, it warns and continues. Run writes one at a time in that case too. For an older file with entries that have no `project_dir`, run `unharden` with the original `--dir` before sharing, or set each entry's `project_dir` to the directory that wrote it, relative to the configuration file's folder. `harden`, `update`, and `migrate` stop before adding entries to an unscoped block. Fill in each missing `project_dir` in a block that mixes scoped and unscoped entries before replaying it. - It removes the registry lines, the overrides, and the bot rules that the CLI added, with the securechain header line of each file, and the `unharden:` block of `.tuxcare.yaml`. It keeps the rest of `.tuxcare.yaml`, also the `registry:` line. - It installs again from the public registry and checks that no TuxCare build is left. If the check fails, it puts your files back and exits with code 6. - It needs no token, so it works after the subscription ends. Then run your tests, and commit the changed files. --- # Malicious packages URL: /guide/malicious A malicious package runs the code of an attacker on the computer that installs it. `tuxcarectl guard` keeps a known malicious version out of the install, on your computer and in CI. `tuxcarectl guard check` stops a job before the install when a lockfile holds one. After the install, the portal reports each malicious package that a scan holds. **The guard needs CLI 0.1.94 or later.** `tuxcarectl upgrade` moves the CLI to the newest release (see [Upgrade the CLI](/guide/install#upgrade)). ## What a malicious package is {#what} An attacker publishes a package with a name that is close to a real name (a typosquat), or a name of your own private packages. Or the attacker takes over the account of a maintainer and publishes a new version of a real package: in 2025 this happened to `chalk` 5.6.1, `debug` 4.4.2, and `nx` 21.5.0. Most such packages run their code when the package manager installs them, in an install script. The code reads the tokens and the keys of the computer and sends them to the attacker. A warning after the install comes too late, so the main defense is a block before the package manager downloads the package. **The source.** The OpenSSF malicious packages project publishes a record for each malicious package. The id of such a record starts with `MAL-`, for example `MAL-2025-46969`. TuxCare brings the records to your workspace with the other advisories. TuxCare does not judge a package itself: the record does. The portal decides which versions are malicious, and the CLI only reads the answer: - A record of a package that is malicious as a whole (a typosquat) names every version, also a version that is published later. - A record of a hijacked package names the bad versions only. The other versions stay available. - A record never names a TuxCare build of the TuxCare catalogue. The version text alone proves nothing: an attacker can publish `chalk@5.6.2-tuxcare.1` on the public registry. Only a build that the catalogue holds counts as a TuxCare build. - When OpenSSF withdraws a record, the block ends, and the finding closes with no alert. ## The three checks {#checks} 1. **The lockfile check before the install.** [`tuxcarectl guard check`](/guide/malicious#guard-check) reads the lockfiles of the project and stops when a locked version is malicious. `tuxcarectl check` runs the same check first. 2. **The filter of the install.** [`tuxcarectl guard npm install`](/guide/malicious#guard-tool), and the other tools, run the package manager through the guard. The package manager does not get a malicious version. With [the aliases](/guide/malicious#aliases), a plain `npm install` goes through the guard too. 3. **The report after the install.** The portal matches each scan on the server. A new record also finds the package in the scans that the portal received before the record existed. The finding is marked **Malicious**, it gives the repository the grade F, and it sends an [alert at once](/guide/alerts#malicious-alert). `tuxcarectl sca` fails with exit code 1 on an open malicious finding, with or without `--fail-on`, at any severity, and also under `--ignore-dev`. With CLI 0.1.100 or later, a failed pull of the portal baseline under `baseline.on_fetch_error: closed` does not hide it: when the run read all the findings, it exits with code 1 (see [the gate on malicious packages](/guide/ci-gates#gate-malicious)). Starting with the release that adds the malicious package gate to image scans, `image submit` also exits with code 1 on an open malicious finding in the image, with or without `--fail-on` and at any severity. ## tuxcarectl guard check {#guard-check} `tuxcarectl guard check` reads the lockfiles of the project, sends each locked version to your workspace, and exits with code 1 when a version is malicious and no admin allowed it. It runs no package manager and uploads nothing. Run it in CI before the install, for example before `npm ci`. ``` tuxcarectl guard check [dir] [--on-portal-error fail|warn] ``` It reads each lockfile that `tuxcarectl sca` reads: npm, pnpm, Yarn, Bun, pip, uv, Poetry, PDM, Pipenv, Cargo, Bundler, NuGet, Gradle, Go, and the others. So it also protects a CI job of an ecosystem that the filter of the install does not cover yet. It reads no manifest: a range of a manifest names no version that the tool installs. A locked version that is a URL, a path, or a git repository is not sent, because it can hold a token: the check prints a warning "not checked" for it. The output has one line for each blocked and each allowed version, then the result: ``` malicious chalk@5.6.1 (npm; package-lock.json): MAL-2025-46969 Malicious code in chalk https://osv.dev/vulnerability/MAL-2025-46969 verdict: fail (1 blocked, 0 allowed, 211 clean) ``` **The lockfiles that the tool reads.** A package manager can read a lockfile outside the directory, or a lockfile with another name. The check reads that file too, as the tool of the next step of the job reads it. It takes the variables of its own process: - A member of an npm, pnpm, Yarn, or Bun workspace has no lockfile of its own: the tool installs the member from the lockfile of the workspace root. The check reads the lockfile of the workspace root. - A member directory of a uv workspace has no `uv.lock`: uv reads the `uv.lock` of the workspace root. The check reads it. `UV_WORKING_DIR` and `UV_PROJECT` move the project, as for uv. - In a folder with no `pyproject.toml`, the check reads the `poetry.lock` of the project above, which Poetry reads. - A Gemfile of `BUNDLE_GEMFILE`: the check reads its lockfile, for example `Gemfile.ci.lock` for `Gemfile.ci`, or the `Gemfile.lock` beside a Gemfile in another directory. A refusal of such a lockfile names it under its own name on each line, for example "not checked: Gemfile.ci.lock: Gemfile.ci.lock line 3 holds a merge-conflict marker"; no line asks you to commit a `Gemfile.lock`. `guard bundle` names it the same way. - A `-modfile` of `GOFLAGS`: the check reads that file in place of `go.mod`. - `PNPM_CONFIG_DIR` (or `pnpm_config_dir`) names the project of pnpm: the check reads the lockfiles of that project, as pnpm does. - In a member of a Cargo workspace (a folder with a `Cargo.toml`), cargo reads the `Cargo.lock` of the workspace root. The check reads it. - In a module of a `go.work` (a folder with a `go.mod`), go uses each module of the `go.work`. The check reads the `go.mod` of each other module of the `go.work`. In a folder with no `package.json`, `guard check` and `check` read no JavaScript lockfile of the project above: they run no tool, and a Go project below a folder with a `package-lock.json` is not a part of it. In the same way, above a folder with no `Cargo.toml` or `go.mod`, they read no `Cargo.lock` and no `go.mod`. A line of a lockfile outside the directory names the file by its full path, for example `malicious chalk@5.6.1 (npm; /work/repo/package-lock.json)`. A lockfile that does not exist yet adds nothing. A lockfile that the check could not read (a damaged file, a file it could not open, or a part of the project that the read refused) is no pass: the verdict is "not checked" with the count of the parts it did not read, and with no blocked version the command stops with exit code 5 and the error names each file and its fix, or with exit code 2 when no part has a fix (a gap of the CLI itself). This holds also when the portal did not answer under `--on-portal-error fail`: a pipeline that lets exit code 4 pass must not pass a lockfile that no check read. And `warn` lowers the outage alone, not such a part: the verdict line counts it (`verdict: not checked (the portal did not answer; 1 not read)`), and the exit is 5, or 2, under `warn` too. A refusal of the portal (a refused token, a 4xx) keeps its own exit code, and a signal that ends the wait is exit code 4 under each policy. The `--timeout` limit that ends the wait counts as a portal that did not answer: `warn` lowers it, and such a part still gives exit code 5, or 2. The other refusals of the read stay warnings, and the check goes on: a manifest with no lockfile, a package at a commit, a URL, or a path, and a local `replace` of a `go.mod`. The check counts a part that it did not read with the rule of `tuxcarectl sca`. So a file that the CLI declines with a step (for example `requirements/base.txt` or `Gopkg.lock`), and a file that the CLI does not read (for example `rebar.lock`, `conda-lock.yml`, or `build.sbt`), is a part that the check did not read, as for `sca --fail-on`. This change comes in two releases. In the first, such a part keeps exit code 0. When the check read no locked version, the verdict is "not checked" with the count of the parts, for example "not checked (1 part not read)", not "no locked version". A warning says that the next release stops `guard check` there with the exit code that `sca --fail-on` gives for the same part: 5 for a file with a step, 2 for a file that the CLI does not read. The lockfile check of `guard ` gives the same warning, and the tool starts. In the release after it, such a part gets the exit codes of a part that the check did not read (5, or 2 for a gap of the CLI), and `guard ` does not start the tool. | Code | When | | --- | --- | | 0 | No locked version is blocked and the check read each lockfile, the project has no lockfile, or the portal did not answer under `--on-portal-error warn`. | | 1 | A locked version is malicious and no admin allowed it, or the portal cannot judge a locked version — also when another verdict request of the check failed. Remove the version from the lockfile, or ask an admin of the workspace to [allow it](/guide/malicious#allow). A malicious version wins with exit code 1 over each other stop of the check. | | 2 | A wrong option, a directory that the check cannot read, or a part of the project that the check did not read and that has no fix (a gap of the CLI itself). | | 3 | No token, or the portal refused the token. | | 4 | The portal did not answer under `--on-portal-error fail` (see [When the portal does not answer](/guide/malicious#portal-down)), or the portal is older than the check. When the `--timeout` limit of the command (20 minutes by default) ends the wait for the verdicts, the portal did not answer, so `warn` lowers it. A signal (for example Ctrl-C) that ends the wait is exit code 4, also under `warn`. | | 5 | A lockfile that the check did not read (a damaged, unreadable, or unopenable lockfile, a link to a file outside the project, or a count of packages that does not match the file), and no blocked version: the error names the file and its fix, for example "yarn.lock: repair the file, or write it again with its tool", and the verdict is `not checked` with the count, for example "verdict: not checked (1 part not read)". A blocked version still gives exit code 1. `warn` lowers an outage of the portal, not such a part, the verdict line then counts it under `warn` ("verdict: not checked (the portal did not answer; 1 not read)") and the run exits 5 or 2; under `fail` such a part wins over a portal that did not answer too, with the same verdict line and exit 5 or 2. A pipeline that lets exit code 4 pass must not pass a lockfile that no check read. A refusal of the portal (a `4xx`, a refused token) and a stop of a signal or of the `--timeout` limit keep their exit. | | 7 | An error in the CLI. | ## tuxcarectl guard \ {#guard-tool} Put `tuxcarectl guard` in front of a command of the package manager: ``` tuxcarectl guard npm install tuxcarectl guard pnpm add left-pad tuxcarectl guard uv sync --frozen tuxcarectl guard dotnet restore tuxcarectl guard mvn package tuxcarectl guard ./gradlew build tuxcarectl guard go build ./... tuxcarectl guard cargo build ``` The tools are `npm`, `npx`, `pnpm`, `yarn` (Yarn 1 and Yarn 2 or later), `bun`, and `bunx`; `pip`, `uv`, `uvx`, and `poetry`; `gem`, `bundle`, and `bundler`; `dotnet`; `mvn` and `gradle`, and the wrappers of a project, `./gradlew` and `./mvnw`; `go`; and `cargo`. The guard covers each command of the tool (`install`, `ci`, `add`, `update`, `exec`, `dlx`, `sync`, `lock`, `restore`, `build`; `get`, `mod`, `build`, `test`, and `run` of go; `fetch`, `build`, `update`, `add`, and `install` of cargo), because each one can download a package. The options of `tuxcarectl` go before the tool. Each word after the tool belongs to the tool. - `nuget` (nuget.exe) is refused with exit code 2: it trusts only the certificate store of mono or of Windows, and the guard never adds its certificate authority to a trust store. Run the restore with `tuxcarectl guard dotnet restore`, and check the lockfile with `tuxcarectl guard check`. - `tuxcarectl guard ./gradlew` and `tuxcarectl guard ./mvnw` run the wrapper of the project through the guard, with the checks and the files of `guard gradle` and `guard mvn`. The word can also be another path that ends in `gradlew` or `mvnw`, or the bare name `gradlew` or `mvnw`, which is the wrapper in `--dir`. `tuxcarectl guard mvn` and `tuxcarectl guard gradle` run the tool of the `PATH`, not the version that the wrapper pins. For `mvnw` the guard runs maven-wrapper 3.3.0 to 3.3.4 of the type `only-script`; before the first run of such a wrapper, the guard runs `./mvnw --version` to install its Maven. These wrappers stop with exit code 5: a wrapper that does not exist or that you cannot run, a `mvnw` that runs Maven in `maven-wrapper.jar` (the types `script`, `source`, and `bin`, and each wrapper before 3.3; make the wrapper again with `mvn wrapper:wrapper -Dtype=only-script`), a wrapper of the Maven daemon (mvnd), and a `gradlew` that names no `gradle-wrapper.jar`. The wrapper downloads its distribution of Maven or Gradle as it does with no guard: that download does not go through the guard. **The project of the lockfile checks.** The checks before and after the tool read the lockfiles of the project that the tool uses, and the [lockfiles that the tool reads](/guide/malicious#guard-check-files): - An option of the tool that names its project moves the checks to that project, in each form that the tool reads: npm also takes `-prefix dir` and a prefix of `--prefix` such as `--prefi dir`, pnpm also takes `-dir dir` and `--C dir`, and go also takes `--C dir`. The variable `PNPM_CONFIG_DIR` of pnpm moves them too. For uv, `--directory` (else `UV_WORKING_DIR`) moves them first, and `--project` (else `UV_PROJECT`) moves them again, relative to that directory. For Poetry, `--directory` (`-C`) moves them first, and `--project` (`-P`) moves them again, relative to that directory, as for uv. Poetry also takes `-Cdir`, `-Pdir`, and a prefix of `--directory` or `--project`. `--manifest-path` of cargo moves them to the directory of that `Cargo.toml`. - `-f` and `--file` of mvn name the project, a POM or its folder, in each form that Maven reads (`-f/path`, `-file path`, `-file=path`). gradle reads its project from each form of `-p`: `-p dir`, `-p/dir`, `-pdir`, `-p=dir`, `--p dir`, `--project-dir dir`, and `-project-dir dir`. The checks read the same project. - dotnet names its project as a word with no flag: the checks also read each folder outside `--dir` that the command works on (the folder of a project or a solution file that a word names, a folder that holds a project, and the folder of each project that such a solution lists). `guard dotnet` checks each project and folds the results as one check: a malicious version of any of them gives exit code 1. - In a member of an npm, pnpm, Yarn, or Bun workspace, and in a member directory of a uv workspace, the checks also read the lockfile of the workspace root. - In a folder with no `package.json`, `guard ` also reads the lockfile of the project above, which the tool installs. In a folder with no `pyproject.toml`, it reads the `poetry.lock` of the project above. - The checks also read the lockfile that the tool reads above the folder of the command. For cargo: the `Cargo.lock` of the workspace root of the nearest `Cargo.toml`, also for `--manifest-path`. For Bundler, with no `BUNDLE_GEMFILE`: the lockfile of the nearest `gems.rb` or `Gemfile`. For go: the `go.mod` of each module of the `go.work`, else the `go.mod` above the folder. - A command that checks more than one project (`guard dotnet` checks each project that a word of the command names outside `--dir`) checks each project and folds the results as one check: a blocked version of any project gives exit code 1 and the error names each one, with the lockfile of a project outside `--dir` relative to `--dir`; else a refusal of the portal or a refused token of any project; else a part of any project that it did not read; else the outage, by the policy. The order of the projects changes no exit. 1. **Before the tool.** The [lockfile check](/guide/malicious#guard-check) runs. A malicious locked version stops the command with exit code 1, and the tool does not start. 2. **The run.** The CLI starts a proxy on `127.0.0.1` and `::1`, with a secret, and a certificate authority of the run that only the tool trusts. The tool keeps its own registries, credentials, and lockfile URLs, also the TuxCare registry and your own mirror. Each request of the tool goes through the guard, and on through your own proxy when you have one. A few settings of a project send a request past the guard: see [Settings that stop the guard or go past it](/guide/malicious#traps). The guard removes each blocked version from the package lists that the tool reads. A tag such as `latest` that names a blocked version moves to the highest version below it. The download of a blocked version gets the answer 403 with the record, on any host: so `npm ci`, `uv sync --frozen`, and a lockfile URL to another registry are also covered. - Maven and Gradle: a version range of Maven and a dynamic version of Gradle (`1.+`) take the version below a malicious newest version. An exact version reads no version list, so the tool fails on the 403 of the download. - dotnet: `dotnet add package` with no version, and `dotnet restore` of a range, take the version below a malicious version. dotnet gets an HTTP cache of the run, so a version list that an earlier run cached does not skip the filter. - go: the version list and `@latest` lose a malicious version, so go takes the version below it. The `.info` and the `.zip` of a malicious version get 403. The `.mod` passes: it holds no code, and go reads the `.mod` of versions that it does not build. A module that go fetches direct from its repository does not pass the filter: see [Settings that stop the guard or go past it](/guide/malicious#traps). - cargo: the sparse index of a crate, on each registry, loses each malicious version. So a malicious newest version leaves cargo with the version below it. The download of a malicious crate gets 403 with the record. A git index (`registry+https://`) passes unread, but the download of a malicious version from it gets 403. cargo writes `Cargo.lock` before it downloads: the lockfile check after the run then finds the blocked version, and the message says that the guard blocked it. 3. **After the tool.** The lockfile check runs again (for go, it reads `go.mod`). The CLI prints one line for each version that the guard blocked, with the record and its link, and reports the blocks to the workspace: see [Blocked installs](/guide/malicious#blocked). The private key of the certificate authority stays in the memory of the CLI and is never written to disk. The certificate authority is never added to the trust store of the computer, and the CLI deletes its files at the end of the run. The guard writes no header, no body, and no credential to a log. **The tested versions.** The guard was tested on Linux with npm 11.19, pnpm 11.21, Yarn 1.22 and Yarn 4.18, Bun 1.4, pip 23.3, uv 0.13, Poetry 2.5, gem of RubyGems 3.5 and 3.6, Bundler 2.4 to 2.6, the .NET SDK 8.0, 9.0, and 10.0, Maven 3.8.8 and 3.9.16, Gradle 8.14.7 and 9.9.1, go 1.21 to 1.27, and cargo 1.70, 1.80, and 1.100. It was not tested on Windows or macOS. On Windows and macOS, cargo can read the certificate store of the system and stop on the connection to the guard: `tuxcarectl guard cargo` warns there. On Windows and macOS, dotnet reads the certificate store of the system, so it can stop on the connection to the guard: `tuxcarectl guard dotnet` warns there. On Windows and macOS, go 1.26 or earlier does not trust the guard; use go 1.27 or later (also for a toolchain that go switches to). gem of RubyGems 3.4 or earlier reads an index that the guard does not filter: the download of a malicious version still gets 403, but gem does not take the version below it. `gem update --system` gives gem the newer index. An option of the tool that names a proxy, or a list of hosts with no proxy (for example `--noproxy` of npm), stops the command with exit code 2: the tool would send its requests past the guard. For mvn and gradle, a property (`-Dname=…`) of the command line, of `MAVEN_ARGS`, or of `.mvn/maven.config` whose name holds `proxy`, `useSystemProperties`, `resolver.transport`, or `aether.transport` stops the command with exit code 2 too, and so does a word `--` in `MAVEN_ARGS`. A word of `MAVEN_OPTS`, `MAVEN_DEBUG_OPTS`, `.mvn/jvm.config`, or `MAVEN_ARGS` with `*`, `?`, or `[` that the mvn script can expand to a `-Duser.home`, an `@file`, or a `-XX:VMOptionsFile` stops `guard mvn` with exit code 2, and so does each other such word when the working folder has a file or a folder whose name starts with `-` or `@`; a value of `-s` or `-gs` of `MAVEN_ARGS` with these characters stops it too. For cargo, a `--config` that sets a proxy, or that names a file that sets one, stops the command with exit code 2; so does a `--config` that is not TOML, or a file that the guard cannot read. The guard sends each request through your own proxy anyway. | Code | When | | --- | --- | | The code of the tool | The tool ended. 0 is a success. | | 1 | The lockfile check found a blocked locked version before or after the tool (also a version that the guard blocked and the tool still wrote into the lockfile), or the tool failed after the guard blocked a version. | | 2 | A tool that `guard` does not run (also `nuget`), an option, a Maven property, or a cargo `--config` of the tool that names a proxy, a `--` in `MAVEN_ARGS`, a word or a Maven settings value of `MAVEN_OPTS`, `MAVEN_DEBUG_OPTS`, `.mvn/jvm.config`, or `MAVEN_ARGS` with `*`, `?`, or `[` (see above), `--isolated` of pip, a wrong option, or a wrong `guard` key in `.tuxcare.yaml`; a part of the project that the lockfile check did not read, with no fix (a gap of the CLI). | | 3 | No token, or the portal refused the token, under `fail`. | | 4 | The portal did not answer, or the registry did not give the times of the versions for the [release age](/guide/malicious#release-age), under `fail`. Also under `warn`: the `--timeout` limit of the command or a signal ended the command before the tool started. When the limit ended it, a lockfile that the check did not read keeps exit code 5, or 2, as the row of exit code 5 says. The tool does not run. | | 5 | The tool is not on the `PATH`, a wrapper that the guard does not run (see [the wrappers](/guide/malicious#guard-wrapper)), a Maven settings file that the guard cannot tell mvn reads names an active proxy, a Maven proxy that the guard cannot take (see [Settings that stop the guard or go past it](/guide/malicious#traps)), a proxy whose id starts with `tuxcarectl-guard`, the guard cannot read a Maven settings file, an init script or the settings script of gradle set a proxy property (with CLI 0.1.99 or later also a later hook or a build script before a resolve, also when the build catches the failure and gradle exits 0), the user `NuGet.Config` sets `http_proxy`, a mavenrc file that the mvn script runs does more than set `JAVA_HOME` (`MAVEN_SKIP_RC` empty; see [Settings that stop the guard or go past it](/guide/malicious#traps)), a lockfile of the check before the tool is damaged or unreadable (the tool does not start; also when the portal did not answer under `fail`, and exit code 2 when the part has no fix), or a setting would undo the certificate authority of the run under the `guard-run-ca-alone` flag (see [Settings that stop the guard or go past it](/guide/malicious#traps)). | | 7 | An error in the CLI, or the guard could not start. | ## Run a plain npm install through the guard {#aliases} You do not have to type `tuxcarectl guard` each time. `tuxcarectl guard setup` adds a function for each tool to the start files of your shells: bash (`~/.bashrc` and `~/.bash_profile`), zsh (`~/.zshrc`), fish (`config.fish`), and the PowerShell profile. Each function runs `tuxcarectl guard `. Then a plain `npm install` in a new shell goes through the guard. Each command of a tool goes through the guard: for go also `go build`, `go test`, and `go run`, because each one can download a module. The programs that they start get the proxy and the certificate authority of the run. For cargo, each command goes through the guard too: `cargo build`, `cargo test`, and `cargo run`. A build script that cargo starts keeps your own proxy settings, and does not go through the guard. ``` tuxcarectl guard setup # names the files and asks before it writes tuxcarectl guard remove # removes the block again ``` - It changes only a start file that exists. It writes one block between the lines `# securechain:guard:begin` and `# securechain:guard:end`. A second run changes nothing. `--yes` writes with no question. - The block works in a new shell. In the shell of the command, read the start file again, for example `. ~/.bashrc`. - `tuxcarectl guard remove` removes the block and nothing else. It does not ask. - A function cannot cover a command that does not go through your shell: a script that starts with `#!/bin/sh`, a `Makefile`, an IDE, or a `Dockerfile`. There, type `tuxcarectl guard `. - When the function finds no `tuxcarectl` on the `PATH`, it runs the tool with no filter and a warning. In CI it does not run the tool, and fails with exit code 5. ## In CI {#ci} Add two steps before the install of the job: `tuxcarectl guard check`, and `tuxcarectl guard setup --ci`. `guard setup --ci` writes a small script for each tool to a new folder of the job, and puts the folder first on the `PATH`. So the `npm ci` of the next step runs as `tuxcarectl guard npm ci`. The job needs the token as in [Get started](/guide/ci-other#cicd). ### GitHub Actions {#ci-github} On GitHub Actions, `guard setup --ci` adds the folder to the `PATH` of each later step of the job: ``` name: tuxcarectl on: push: branches: [main] pull_request: jobs: tuxcarectl: runs-on: ubuntu-latest env: TUXCARE_PORTAL_TOKEN: ${{ secrets.TUXCARE_PORTAL_TOKEN }} steps: - uses: actions/checkout@v4 - run: | curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh echo "$HOME/.local/bin" >> "$GITHUB_PATH" - run: tuxcarectl guard check - run: tuxcarectl guard setup --ci - run: npm ci # the install step of your project, through the guard - run: tuxcarectl sca --fail-on high ``` ### GitLab CI {#ci-gitlab} A GitLab job runs the lines of its `script` in one shell. `guard setup --ci` prints the line that changes the `PATH`, and `eval` runs it in that shell: ``` tuxcarectl: image: node:22 # the image that builds your project variables: TUXCARECTL_PIN: v0.1.94 # the first release with the guard script: - | set -eu base=https://securechain.tuxcare.com/get curl -fsSL "$base/$TUXCARECTL_PIN/install.sh" -o /tmp/tuxcarectl-install.sh TUXCARE_VERSION="$TUXCARECTL_PIN" TUXCARE_INSTALL_DIR=/tmp/tuxcarectl-bin \ TUXCARE_DOWNLOAD_BASE="$base" sh /tmp/tuxcarectl-install.sh - export PATH="/tmp/tuxcarectl-bin:$PATH" - tuxcarectl guard check - guard_path="$(tuxcarectl guard setup --ci)" - eval "$guard_path" - npm ci # the install step of your project, through the guard - tuxcarectl sca --fail-on high ``` Keep the two lines of `guard_path`. When the setup fails, the job stops at the first line. In one line, `eval "$(tuxcarectl guard setup --ci)"`, a CLI that does not start gives an empty text, and the job goes on with no guard. The lines of `before_script` and `script` run in one shell. `after_script` and the other jobs do not get the guard. In a Go job each later `go` runs through the guard, `go build` and `go test` too. The job keeps its pin in `TUXCARECTL_PIN`, a name that the install script does not read, and gives it to `TUXCARE_VERSION` on the install line: a CI/CD variable of the project comes before a variable of the job, so a `TUXCARE_VERSION` of the project's CI/CD variables would install another version than the pin of the job. ### Any other CI system {#ci-other} Run these commands in one shell of the job, after the checkout. `set -e` stops the job at the first command that fails: ``` set -e curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh export PATH="$HOME/.local/bin:$PATH" tuxcarectl guard check guard_path="$(tuxcarectl guard setup --ci)" eval "$guard_path" npm ci # the install step of your project, through the guard tuxcarectl sca --fail-on high ``` When the portal does not answer, the guard stops the job by default only in a CI run: the CLI reads `CI=true` and the variables of the common CI systems. Elsewhere it warns, and the install goes on with no filter. If your CI system does not set `CI=true`, add `export CI=true` before the guard lines. See [When the portal does not answer](/guide/malicious#portal-down). `guard setup --ci` writes `sh` scripts, so it stops with exit code 2 on a Windows runner. There, run each tool as `tuxcarectl guard `, for example `tuxcarectl guard npm ci`. A cache of the runner (`node_modules`, or the cache of the package manager) can hold a malicious copy from an earlier job: see [The local cache](/guide/malicious#cache). ## The release age {#release-age} A new malicious version is often found and reported within hours or days. Before the report, no record can block it. The release age holds back each version that is younger than the age that you choose. It is off until you set it, in `.tuxcare.yaml` of the project: ``` guard: min_release_age: 24h ``` - The value is a duration, for example `24h` or `72h`. `0` turns it off. - The age is the publish time that the registry gives: the `time` of the version on npm, the upload time of each file on PyPI, the time of each version on RubyGems, the publish time of the registration of a NuGet feed, and the `Last-Modified` time of the POM of each version for Maven and Gradle. - For go, the age is the `Time` of the `.info` of each version: the time of the commit of the tag, which the author of the module sets, not the registry. - For cargo, the age is the `pubtime` of each line of the index of the registry. A registry that writes no `pubtime` gives no date: then the release age holds back each version of that registry, unless `--allow-new` names it. - The guard reads the times from the registry of the tool, with the credential of the tool, also through a tunnel. When the registry does not give them (for example it answers 401, or it does not answer), the policy of [When the portal does not answer](/guide/malicious#portal-down) applies, and the message names the registry and its answer. - For Maven, Gradle, and go, the release age holds back only a version that the tool chooses: a version of a range of Maven, a dynamic version of Gradle, or a query of go (`latest`, `v1`, a branch). It does not hold back an exact version, or a version that `go.mod` names. - A TuxCare build of the catalogue is never held back. Neither is a version that an admin [allowed](/guide/malicious#allow). - `--allow-new @` lets one young version through for one command, for example `tuxcarectl guard --allow-new left-pad@1.4.0 npm install`. Give it again for each version. It does not let a malicious version through: no option and no variable switches off the malicious block. - A version that the release age held back shows on [Blocked installs](/guide/malicious#blocked) with the reason **Too new**. **Use `guard.min_release_age`, not the release age of the package manager** (for example `minimumReleaseAge` of pnpm, or `npmMinimalAgeGate` of Yarn). The setting of the package manager also holds back a new TuxCare build: a build that fixes a vulnerability is a new version too, so the fix comes late. The guard knows which versions are TuxCare builds, and lets them through. `tuxcarectl check` reports the release age of the package manager for this reason. ## When the portal does not answer {#portal-down} The guard and the check ask your workspace about each version. When the portal does not answer, the result depends on where the command runs: | Where | Default | What happens | | --- | --- | --- | | Your computer | `warn`: fail open | Each request that the portal did not answer passes with no change, and the CLI prints a warning. A cached verdict that is still fresh counts as an answer: a version that it blocked stays blocked. With no token, the tool runs with no filter and a warning. | | CI | `fail`: fail closed | The guard answers 503 to each request that it could not check, so the tool fails, and the command exits with code 4. With no token, the command exits with code 3, and the tool does not start. | - The CLI is in CI when the CI system sets its variable, for example `CI=true`, `GITHUB_ACTIONS`, or `GITLAB_CI`. - An answer of the portal that is still fresh counts: the CLI keeps each answer for some minutes, also between two runs. - `--on-portal-error fail` or `--on-portal-error warn` changes the default for one command. The key `guard.on_portal_error` of `.tuxcare.yaml` changes it for the project. The option wins over the key. - The same policy applies when the registry of the tool does not give the times of the versions for the [release age](/guide/malicious#release-age): 503 and exit code 4 in CI, a warning on your computer. The message names the registry host and its answer, not the portal, for example "the guard read the registry nuget.pkg.github.com to check 1 request of dotnet (for guard.min_release_age), and the registry answered 401 Unauthorized". An older CLI sent no credential of a private NuGet feed in a tunnel for this read, and its message named the portal. - `warn` does not lower a stop before the tool starts. When the `--timeout` limit of the command (20 minutes by default) or a signal ends `tuxcarectl guard ` before the tool starts, the command stops with exit code 4, and the tool does not run, for example "guard npm reached the --timeout limit before npm started". - Do not set `warn` on a job that builds a release: a check that passes when it cannot ask is not a check. ## Allow a version {#allow} A record can be wrong, and OpenSSF can take some time to withdraw it. Only a person who is signed in with the role admin of the workspace can allow a malicious version. A member, a department admin, an access token, and an MCP session cannot: also a token of an admin cannot. - Open [**Settings** › **Allowed malicious versions**](/settings/malicious), and select **Allow a version…**. Give the ecosystem, the package name, the version, why, and a reason. With no version, the allow covers every version of the package. A **Last day (optional, UTC)** ends the allow by itself. - An admin's ignore of a malicious finding allows that version too. The triage control says so, and asks for the reason. A member can set **Acknowledged**: the finding still counts as open, and the CI gate still fails. No suppression rule covers a malicious finding. - The allow is the ignore. When an admin ends the allow, or its last day passes, the finding counts as open again, and the CI gate fails, unless another allow still covers the version (an allow of every version of the package). A move to another version of the package is a new finding: the ignore covers it only when an allow covers that version. An ignore that lasts longer than an active allow of its version replaces that allow. - An allow covers the whole workspace: the guard installs the version, `guard check` passes it, and its findings count as ignored. Every member reads the list, with who allowed each version, when, and why. - An admin ends an allow with **End** in its row, then **End the allow**. An allow is never deleted: the list keeps it as **Ended**. When you think that a record is wrong, also [tell TuxCare](/guide/help#help). A correction of TuxCare ends a wrong record for every workspace. ## Blocked installs {#blocked} After a command with a block, the CLI sends a report to the workspace: the tool, the command word (for example `install`), the blocked versions with their records, the repository when the command ran in one, and whether it ran in CI. The report holds no file path, no other word of the command, and no variable of the environment. ![The page Blocked installs, with three blocked versions: chalk 5.6.1 and reqeusts 2.32.4 with the reason Malicious and their records, and @acme/ui-kit 3.2.0 with the reason Too new. Each row names the command, the repository, CI or a developer machine, and the time.](/guide/img/blocked-installs.png) The page **Blocked installs**, with the filter of the reason and the search. - The page [**Blocked installs**](/blocked-installs) lists the blocks of the workspace. The page **Vulnerabilities** links to it. The page of a repository shows its newest block. - The reason is **Malicious** (a record names the version) or **Too new** (the [release age](/guide/malicious#release-age)). - The daily digest lists the blocks of its day. A block sends no alert at once: the install did not happen. - The portal keeps a block for 90 days. - A workspace stores at most 5000 blocked versions in one hour. Above that, the CLI prints a warning that it could not send the block report, and the command ends as it would with no report. The guard still blocks each version. ## Malicious sightings {#sightings} A malicious version that CI installed one time can have run its install script, and the harm can stay after the package goes. So the portal keeps a record of each malicious version that a scan held: the counts, the grade, and the banner of the **Overview** show only what the code holds now, and the record shows what it held. - The page [**Malicious sightings**](/malicious-sightings) lists each malicious version that a scan of the workspace held, on any branch, also a version that an admin allowed. The page **Vulnerabilities** links to it. Each row names the package, its records, the repository, the branch and the slot (the project path and the package managers of the scan), the first and the last scan that held it, and its state. - A sighting stays after a newer scan no longer holds the package, after the old scans are deleted, and after the slot of the scan is removed. Only the delete of the repository or of the workspace removes it. - The state is **Open now** while an open finding of the default branch or of an active release counts it, else **Past**. The **Overview** shows the line "N past sightings not reviewed" while such past sightings wait. - Check with your security team what the version could do, for example on the CI runners that installed it. Then an admin selects **Mark reviewed…** and writes a note, for example the ticket of the review. Only a person who is signed in with the role admin of the workspace can mark a sighting reviewed. The review stays on the record, with the name of the admin. - The API `GET /api/v1/malicious/sightings` and the MCP tool `list_malicious_sightings` read the same record. ## Settings that stop the guard or go past it {#traps} With the rollout flag `guard-run-ca-alone`, the guard keeps the system certificate authorities out of the run: mvn, gradle, pip, uv, uvx, Poetry, gem, Bundler, go, npm, npx, pnpm, and Yarn trust only the certificate authority of the guard during a guard run, as dotnet does in each run. gem keeps the two GlobalSign roots for rubygems.org, and bun, bunx, and cargo keep their other certificate authorities. A request that goes past the guard then fails on the TLS check. The limit is code of the build: a line of `build.gradle`, a Maven plugin, or a script of a package can set its own trust store or open its own connection, and no setting of the run closes that. A trust store that a `beforeSettings` hook of an init script or `settings.gradle` sets stops the build. With CLI 0.1.99 or later, so does a trust store that a `settingsEvaluated`, `projectsLoaded`, or `beforeProject` hook of an init script, or a line of `build.gradle`, sets before a resolve: only a line of `build.gradle` after the last resolve of Gradle stays code of the build (see the row of the Gradle proxy property below). When the command of the tool fails, the last line of its output says what to check. The flag is off until the portal turns it on. Under the same flag, a setting that turns the certificate check off or names another certificate authority stops the run with exit code 5 before the tool starts, and the message names its place; remove the setting for the command. The settings are `aether.connector.https.securityMode` of mvn (on the command line, in `MAVEN_ARGS`, `.mvn/maven.config`, `.mvn/jvm.config`, `MAVEN_OPTS`, `MAVEN_DEBUG_OPTS`, `JAVA_TOOL_OPTIONS`, `JDK_JAVA_OPTIONS`, `_JAVA_OPTIONS`, or a file that one of the JVM places names) and `javax.net.ssl.trustStore` of mvn (on the command line, in `MAVEN_ARGS`, `.mvn/maven.config`, `MAVEN_DEBUG_OPTS`, or `_JAVA_OPTIONS`); `--trusted-host` of pip, each abbreviation of it, and that line of a requirements or constraints file; `--allow-insecure-host` and `--trusted-host` of uv and uvx, and `allow-insecure-host` of a `uv.toml` or of `[tool.uv]` of `pyproject.toml`; `cert` of `[certificates.]` of `poetry.toml` or of the user configuration of Poetry, with `false` or a certificate authority file, and a certificate authority file in `POETRY_CERTIFICATES__CERT`; `BUNDLE_SSL_VERIFY_MODE` (other than 1) and `BUNDLE_SSL_CA_CERT` of the `.bundle/config` of the project or of `BUNDLE_APP_CONFIG`; and `http.sslVerify = false` of the git configuration for go, also for one URL. For pnpm, the flag refuses `ca`, `cafile`, and `strict-ssl` of a project or user `.npmrc`, `ca` or `strictSsl` of `pnpm-workspace.yaml`, `ca` of `rc` or `config.yaml` of the pnpm configuration folder, the certificate authority of one registry (`:ca` or `:cafile`, for example `//registry.example/:cafile`) in each of these files, and `--use-bundled-ca` in `NODE_OPTIONS`; for Yarn, `ca`, `cafile`, and `strict-ssl` of a project or user `.yarnrc`, and `yarn_ca`, `yarn_cafile`, and `yarn_strict_ssl` in the environment, with the name in any case. For npm, npx, and pnpm, a word of the command that names a certificate authority or turns the certificate check off stops the run with exit code 5, and the message names the word: `--strict-ssl` with a value other than `true`, `--no-strict-ssl`, `--ca`, `--cafile`, `--:ca`, and `--:cafile`, with their abbreviations, and `--config.` of pnpm. A `strict-ssl` or `strictSsl` of `true` stops nothing. Other such settings the run outranks instead of refusing: `trusted-host` of a `pip.conf`, `PIP_TRUSTED_HOST`, `UV_INSECURE_HOST`, `ssl_verify_mode` of a gemrc, `BUNDLE_SSL_VERIFY_MODE` and `ssl_verify_mode` of `~/.bundle/config`, `GOINSECURE`, `GIT_SSL_NO_VERIFY`, and a trust store of a Gradle init script. The guard checks each host with your own certificate authorities, so the tool needs no other one for a request through the guard. The guard sets the proxy and the certificate authority of the tool in variables of the run. npm and npx also get `NO_PROXY` and `no_proxy` of the run, so a `NO_PROXY` of yours that names the registry host does not send npm past the guard. A file of the project or of your home directory can win over a variable. Then the tool either stops on the connection to the guard and installs nothing, or sends its requests past the guard. Correct these settings: | Setting | What happens | What to do | | --- | --- | --- | | `cafile` or `ca` of npm, pnpm, or Yarn 1, in the `.npmrc` of the project or of your home directory | The tool does not trust the guard, stops, and installs nothing. | Remove the line, and give the certificate authority in `NODE_EXTRA_CA_CERTS`. The guard checks the registry with it. | | A `networkSettings` entry `httpsProxy`, `httpProxy`, `httpsCaFilePath`, or `caFilePath` for a host, in the `.yarnrc.yml` of the project, of a folder above it, or of your home directory (Yarn 2 or later) | **The requests of Yarn to that host would go past the guard: the run stops with exit code 5 before Yarn starts, and the message names the file and the entry.** | Remove the setting from the entry. Your own proxy goes in `HTTPS_PROXY` or the top level of `~/.yarnrc.yml`, your own certificate authority in `NODE_EXTRA_CA_CERTS`. | | `proxy` of the `pip.conf` of the virtual environment of the project | **The requests of pip go past the guard, with no filter.** | Remove the line, and set your proxy in `HTTPS_PROXY` or `PIP_PROXY`. | | `cert` of a `pip.conf` (also of the virtual environment), a `cert` of a Poetry source, or `native-tls = true` of uv | The tool does not trust the guard, stops, and installs nothing. | Remove the setting, and give the certificate authority in `SSL_CERT_FILE` or `REQUESTS_CA_BUNDLE`. | | `BUNDLE_SSL_CA_CERT` in the `.bundle/config` of the project | Bundler does not trust the guard, stops, and installs nothing. | Remove the line, and give the certificate authority in `SSL_CERT_FILE`. | | An active `` of a Maven settings file that the guard cannot tell mvn reads; a proxy whose password is encrypted (`settings-security.xml`), whose value is a `${…}` that is no set variable, or whose value has a character outside ASCII; a proxy whose id starts with `tuxcarectl-guard`; or a Maven settings file that the guard cannot read | An active proxy of the Maven settings that mvn surely reads is the route of the guard: the file of `-s` or `-gs` on the command line or in `.mvn/maven.config`, `~/.m2/settings.xml` of the home of the JVM, and `conf/settings.xml` of the Maven that runs. The guard sends each request of mvn on through the proxy that Maven would take, with its credential and its `nonProxyHosts`, and gives mvn a copy of its user settings with the proxy of the guard in its place. You need no `HTTPS_PROXY` for it. An active proxy of another settings file would win over the guard: a `-s` of `MAVEN_ARGS`, the file of a `-Duser.home`, or `~/.m2/settings.xml` of a `HOME` that is not the home of the JVM. Then `tuxcarectl guard mvn` stops with exit code 5 before mvn starts, and so does a proxy that the guard cannot take as Maven does. The message names the file and the proxy. A proxy whose id starts with `tuxcarectl-guard` stops it too, also an inactive one: Maven would put it in the place of the proxy of the guard. A settings file that the guard cannot read (for example a UTF-16 file, or a file that is not XML) stops it too, with the file and the reason: it could name an active proxy. An active `` under `` counts whatever the name of the root element of the file is: Maven reads a file whose root is not `` too, with a warning. `guard mvn` reads `-s` and `-gs` in each form that Maven reads (`-s/path`, `-settings path`, `-s=path`, `--s path`, `-gs=path`, `-B-s path`), on the command line, in `MAVEN_ARGS`, and in the `.mvn/maven.config` of the folder of `-f` or of `MAVEN_BASEDIR`. It also reads `.m2/settings.xml` of each `-Duser.home` that Maven gets: in `MAVEN_OPTS`, `MAVEN_DEBUG_OPTS` (the mvn script gives it to each run of mvn, not only to mvnDebug), `.mvn/jvm.config`, `JAVA_TOOL_OPTIONS`, `_JAVA_OPTIONS`, `JDK_JAVA_OPTIONS`, the command line, `MAVEN_ARGS`, and `.mvn/maven.config`, and in the files that a `-XX:VMOptionsFile` or an `@file` of these sources names, as the java launcher reads them. A `--` in `MAVEN_ARGS` stops `guard mvn` with exit code 2. A word with `*`, `?`, or `[` in `MAVEN_OPTS`, `.mvn/jvm.config`, or `MAVEN_ARGS`, and in `MAVEN_DEBUG_OPTS` too, that mvn can expand to `-Duser.home`, an `@file`, or a `-XX:VMOptionsFile` stops it too, and each other such word when the working folder has a file or a folder whose name starts with `-` or `@`. A wildcard value of `-s` or `-gs` in `MAVEN_ARGS` stops `guard mvn` with exit code 2 as well: the actual file cannot be determined. | Name the settings file with `-s` on the command line, so that the guard takes its proxy. Else set `false` for the command, and set your proxy in `HTTPS_PROXY`. Write the password of the proxy in the file with no encryption, or set the variable that the `${…}` names. Give your own proxy an id that does not start with `tuxcarectl-guard`. Save a settings file that the guard cannot read in UTF-8. For a stop on a wildcard word, take the `*`, `?`, and `[` out of the argument or of the path that the settings name. | | A mavenrc file that a mvn script can run (`~/.mavenrc`, `/etc/mavenrc`, `/usr/local/etc/mavenrc`, `/etc/java/maven.conf`, or `mavenrc_pre.bat` or `mavenrc_pre.cmd` of `%USERPROFILE%`), while `MAVEN_SKIP_RC` is empty, that does more than set `JAVA_HOME` to a plain value | `tuxcarectl guard mvn` stops with exit code 5 before mvn starts: the mvn script runs the file after the guard read the environment, so it could set `MAVEN_OPTS`. The guard reads each file of this list, whatever the mvn script of the run reads. The message names the file, the number of the line, and the variable that the line sets. A file that the guard cannot read stops it too. | Set `MAVEN_SKIP_RC=1` for the command and give the settings of the file in the environment, or remove the line. | | A proxy that only a `systemProp` line of `gradle.properties` names | The guard reads no setting of Gradle, so it cannot reach the registry through that proxy. For mvn the proxy of its settings is the route of the guard (see [the row of the Maven proxy](/guide/malicious#maven-proxy)). | Set your proxy in `HTTPS_PROXY` for the command. | | A proxy property (`https.proxyHost`, `http.nonProxyHosts`, and the other proxy properties) that an init script of the Gradle user home (`init.gradle`, `init.d`), a later `-I`, a hook of an init script, `settings.gradle`, or `build.gradle` sets, with `guard gradle` or `guard ./gradlew` | The guard sets its own proxy again before the settings, so a property of an init script sends no request past the guard. When a `beforeSettings` hook of an init script, or `settings.gradle`, changes such a property (with the flag `guard-run-ca-alone` also `javax.net.ssl.trustStore`), the build stops at the end of the settings with the message "tuxcarectl guard: an init script or the settings script set the system property …", and the command exits with code 5. CLI 0.1.99 or later also checks these properties before each resolve of the build. When a `settingsEvaluated`, `projectsLoaded`, or `beforeProject` hook of an init script, or a `System.setProperty` of `build.gradle` or of a plugin, changes such a property before a resolve, the build stops before the first request of that resolve, with the same message, and the command exits with code 5. It exits with code 5 also when the build catches the failure and gradle exits 0, unless the check after the tool ends the run first with its own exit code (a blocked version, or a portal that did not answer under `fail`). A version that the guard blocked in the same build still gives exit code 1 when gradle failed after the block. Up to CLI 0.1.97, a plugin of `settings.gradle` can resolve past the guard before the stop at the end of the settings, and it stays in the Gradle cache. With Gradle before 6.0, each proxy property that an init script of the user sets stops the build. A `System.setProperty` of `build.gradle` after the last resolve (up to CLI 0.1.97, each one after the settings), or code that sends requests with a client of its own, can still send requests past the guard. | Remove the property from the script, and set your proxy in `HTTPS_PROXY` for the command. | | `http_proxy` in the `config` section of the user `NuGet.Config` (`~/.nuget/NuGet/NuGet.Config`) | dotnet takes that proxy over the proxy of the guard. `tuxcarectl guard dotnet` stops with exit code 5 before dotnet starts, and names the file. A user `NuGet.Config` that the guard cannot read as XML stops it too. The `http_proxy` of a project `nuget.config` or of a file of `--configfile` changes nothing. | Remove `http_proxy` from the file, and set your proxy in `HTTPS_PROXY`. | | A certificate authority only in a Java trust store (`javax.net.ssl.trustStore`, the `cacerts` of a JDK) | The guard checks the registry with the system store and `SSL_CERT_FILE`, so it does not trust the registry. A `javax.net.ssl.trustStore` on the command line also stops the tool on the connection to the guard. | Give the certificate authority in `SSL_CERT_FILE`, and remove the trust store from the command line. | | `GOPROXY=direct`, a module of `GOPRIVATE` or `GONOPROXY`, or an entry after a `\|` in `GOPROXY` | **go fetches the module from its repository, past the filter.** The lockfile check after the run reads `go.mod`, and exits with code 1 for a malicious version that go added. | Put a `,` in place of a `\|` in `GOPROXY`. For a module that go must fetch direct, the lockfile check after the run is the only check. | | A `GOPROXY` entry on `localhost` or a loopback IP (for example `127.0.0.1` or `[::1]`), in the environment or in the Go env file (the file of `go env -w`, or the file that `GOENV` names) | **go sends its requests to it direct, past the guard, with no filter.** Before go starts, `tuxcarectl guard go` stops with exit code 5 when such an entry comes before `off` or `direct`. The error names each entry by its position and its host, and prints no credential, path, or query of its URL. | Set `GOPROXY` to a proxy on a host that is not a loopback host. For an entry of the Go env file, set a non-loopback `GOPROXY` in the environment first: go reads the environment before the file, and the guard then lets `go env -w GOPROXY=…` fix the file. | | `GODEBUG=x509sslcertoverrideplatform=0` on Windows or macOS | go reads the trust store of the system, does not trust the guard, and stops. | Remove the setting. | | A NuGet feed of the v2 protocol | The guard does not filter its version list: dotnet can choose a malicious version. The download gets 403, and the command fails and names the record. | Use the v3 feed of the host. | | An index file in the cache of Bundler from a run with no guard | Bundler can choose a malicious version from it. The download gets 403, and the command fails and names the record, but Bundler does not take the version below it. | Remove `~/.bundle/cache/compact_index` (or the `compact_index` folder under `BUNDLE_USER_CACHE` when you set it), and run the command again. | | `net.git-fetch-with-cli = true` of cargo | **The git of the system fetches a git index or a git dependency, and that fetch can go past the guard.** The download of a crate still goes through the filter. | Remove the setting for the command. | ## The local cache {#cache} The guard sees each request that the tool sends. It does not see a package that the tool takes from its own cache: the npm cache, the pnpm store, the Yarn cache of the repository, the uv cache, the global packages folder of NuGet (`~/.nuget/packages`), the local Maven repository (`~/.m2`), the Gradle cache, the Go module cache (`go clean -modcache` empties it), or the cargo cache (`~/.cargo/registry/cache`, when cargo runs with `--offline` or `net.offline`). The lockfile check before the run stops each malicious version that the lockfile names. But when the lockfile did not name the version before the run, and the tool takes it from its cache, the version passes the filter, and the tool runs its install script. The lockfile check after the run finds it: the command exits with code 1 and names the version. A module that `go run module@version` or `go install module@version` builds is not in `go.mod`, and the check after the run does not see it. Maven has no lockfile, and Gradle has one (`gradle.lockfile`) only when the project turns on dependency locking: so a malicious version that mvn, or gradle with no lockfile, takes from its local cache passes with no check, also after the run. Such a cached copy comes from an earlier install on the same computer, or from a cache of the CI runner, and that earlier install ran its code already. When this happens, treat the computer as exposed: remove the package, clear the cache of the tool, and replace the tokens and keys that the computer holds. ## What the guard does not cover {#not-covered} - A request that a setting of the project sends past the guard: see [Settings that stop the guard or go past it](/guide/malicious#traps). - An install that does not go through `tuxcarectl`: a plain `npm install` in a shell with no [aliases](/guide/malicious#aliases), an install from an IDE, or a `Dockerfile` that does not call the CLI. - The install of an ecosystem that the filter does not cover yet, for example Composer. `tuxcarectl guard check` still reads their lockfiles, and the portal still reports them after a scan. - nuget.exe: run `tuxcarectl guard dotnet`. The download of the distribution of Maven or Gradle by `./mvnw` or `./gradlew` (see [the wrappers](/guide/malicious#guard-wrapper)). - An older CLI. A CLI of 0.1.92 or earlier has no `guard` (0.1.93 was tagged but never promoted: it holds the token leak SC-3522), and its `sca` gates a malicious finding only by its severity. ## The TuxCare registry {#registry} TuxCare builds each TuxCare build from the source, in its own pipeline, so a hijacked package file of a public registry is not in a build. A malicious record never blocks a build of the TuxCare catalogue. The TuxCare registry also serves the upstream versions of the packages, for example of npm. The registry does not remove a malicious upstream version yet. So use the guard also when your projects install from the TuxCare registry: the requests of the tool to the registry go through the guard, as the requests to each other host do. --- # Releases, VEX, and compliance URL: /guide/releases Keep the releases that you ship, check them against each new advisory, export their VEX files, and use the CRA clocks, the products, and the compliance reports. ## Releases {#releases} A release is a scan that you mark as a build that you ship. The portal keeps it and checks it against each new advisory. Record a release from CI with `tuxcarectl sca --release NAME` (see [Record a release](/guide/ci-releases#release)), or select **Mark as release** on the **Scans** tab. | State | Alerts | In the workspace views | Checked against new advisories | | --- | --- | --- | --- | | Supported | Yes | Yes | Yes | | Deprecated | No | Yes | Yes | | Archived | No | No | No: the portal freezes the findings in a snapshot. | ![The Releases tab of the repository web-shop with two releases. v2.3.1 is deprecated, and its row has Report, VEX with the formats CycloneDX, OpenVEX, and CSAF, a state control, and Delete. v2.4.0 is supported, from Acme 3.2, and its state control is off, with the text The state comes from Acme 3.2.](/guide/img/releases.png) The **Releases** tab of a repository, as an admin sees it. 1. The **Releases** tab. The number counts the releases that are not archived. 2. **Show archived** adds the archived releases to the list. 3. The state of each release, for example "supported, from Acme 3.2". 4. **Report** opens the release report. After **VEX**, **CycloneDX**, **OpenVEX**, and **CSAF** save the [VEX file](/guide/releases#vex) in that format. 5. The state control and **Delete**. Only an admin sees **Delete**. 6. A product release decides the state of this release, so its state control is off. - The tracked refs of a repository are the default branch and its supported and deprecated releases. Every view of the workspace counts these refs only. A feature branch and an archived release are not counted. - A member or an admin changes the state of one release, or of many releases at once with the check boxes and **Apply to**. One change takes at most 100 releases, or 25 for an archive. - A release name does not move. The same name from another commit is refused, unless the job uses `--force-release`. A release of a container image belongs to its image digest: the same name on another build of the image is refused in the same way, also when the build has the same packages. - Only an admin can delete a release. Its scans stay. The portal never prunes a scan that a release holds. ### A release that is not evaluated {#release-not-evaluated} When the portal checks a release again and the check fails or has not finished, the release is not evaluated. The row of the repository shows "Not evaluated", the release, and the cause: "matching" or "match failed". Its findings are not in the counts, and it is not clean. "matching" is normal for some seconds after a CI job sends the release. After "match failed", the repository cannot get grade A until a later check succeeds. If the mark stays, [contact TuxCare](/guide/help#help). An operating-system release with no advisory data shows the same mark: "Not evaluated: centos-8 (no advisory data)". The portal has no advisory of TuxCare or of the vendor for that release, so it cannot check the operating-system packages of that release. The repository or host cannot get grade A, and the Overview counts it as not evaluated. See [The Hosts page](/guide/radar-hosts#hosts). ### Product releases {#product-releases} A product release is the set of releases that you ship together, one release of each repository of a [product](/guide/releases#products). For example, "Acme 3.2" holds "v1.3" of the web repository and "v2.0" of the api repository. 1. Open **Compliance** and select **Releases** on the product. 2. As an admin, type a name under **Name of the new product release**, and select **New product release**. 3. Select **Edit members**, pick one release for each repository, and save. ![The product Acme Shop on the Compliance page with its Releases panel open. The panel has Show archived, the field Name of the new product release with the button New product release, and the product release Acme 3.2: state supported, members web-shop v2.4.0 and billing-api v1.8.0, with Report, VEX with the formats CycloneDX, OpenVEX, and CSAF, a state control, Edit members, and Delete.](/guide/img/product-releases.png) The product releases of a product, as an admin sees them. 1. **Releases** opens and closes the list of product releases. 2. The name of a new product release, and **New product release**. Only an admin sees them. 3. A product release: its name, its state, its date, and its members. 4. **Report** opens the product release report. After **VEX**, **CycloneDX**, **OpenVEX**, and **CSAF** save the [VEX file](/guide/releases#vex) in that format. 5. The state control, **Edit members**, and **Delete**. Only an admin sees them. - The state of a product release decides the state of each release that it holds. A release in two product releases takes the more active state: supported, then deprecated, then archived. - An archived product release refuses new members and new scans of its releases, and keeps a snapshot of each member. - A release that you archived yourself is live while a supported or deprecated product release holds it. When it leaves its last product release, the portal freezes it again with the build that it holds then. The portal refuses that change while a scan of the release is not matched yet: try again after the match. - A CI job can join a release to a product release with `--product-release "Acme 3.2"`. The portal makes the product release on first use when the repository is in exactly one product. ### Export VEX {#vex} A VEX file tells your customers which known advisories affect a release. On a release or a product release, select a format after **VEX**: **CycloneDX** (CycloneDX 1.6), **OpenVEX** (OpenVEX 0.2.0), or **CSAF** (a CSAF 2.0 VEX document). The three files state the same thing. Give the reader the format that it asks for: many buyers and the guidance of the EU Cyber Resilience Act read CSAF, and the Sigstore tools read OpenVEX. Every role can export the file. The state of each advisory comes from the triage: | What the portal knows | CycloneDX | OpenVEX | CSAF | | --- | --- | --- | --- | | Open and new, or an ignore that has ended | `in_triage` | `under_investigation` | `under_investigation` | | Acknowledged, or ignored as "We accept the risk" (CycloneDX adds "will not fix", CSAF "no fix planned") | `exploitable` | `affected` | `known_affected` | | Ignored as "We are not affected" or "Other reason", and the ignore has not ended | `not_affected`, with the justification and the reason | `not_affected`, with the justification | `known_not_affected`, with the justification as a flag | | Ignored as "The advisory data is wrong" | `false_positive` | `not_affected` | `known_not_affected` | | Fixed by a TuxCare build | `resolved`, with the response `update` | `fixed` | `fixed` | | TuxCare is investigating the TuxCare build of the package (the finding shows **TuxCare is investigating**), and nobody acknowledged or ignored it | `in_triage`, with a detail that says so, and the version status `unknown` | `under_investigation`, with a note that says so | `under_investigation`, with a note that says so and names the packages | | TuxCare has not assessed the TuxCare build of the package (the finding shows **Not evaluated**) | `in_triage`, with a detail that says so, and the version status `unknown` | `under_investigation`, with a note that says so | `under_investigation`, with a note that says so and names the packages | OpenVEX and CSAF have fewer justifications than CycloneDX. "It needs a configuration, a dependency, or an environment" becomes "the vulnerable code cannot be controlled by an adversary", and the four "protected" values become "inline mitigations already exist". The OpenVEX author and the CSAF publisher is your workspace. An OpenVEX or CSAF file needs at least one advisory: for a release with no advisory, only the CycloneDX file is available. In CycloneDX and CSAF, an advisory in two packages of the release has one entry, with the most open state. A package that TuxCare has not assessed (see [the vulnerabilities of a host](/guide/radar-hosts#findings)) never reads as affected: it gives the state of the advisory only when no other package of the advisory has a finding of another state. In OpenVEX and CSAF such a package is `under_investigation`, also when the advisory is `affected` for the other packages, as a package that a TuxCare build fixes is `fixed`. A package that TuxCare is investigating never reads as affected either: it gives the state of the advisory only when each other package of the advisory is investigated or not assessed, and in OpenVEX and CSAF it is `under_investigation` with a note that says that TuxCare is investigating. When you acknowledge or ignore such a finding, the file gives the state of your triage, as for an open finding. A known-exploited advisory has the property `tuxcare:exploited`. The file of an archived release is frozen at the time of the archive (`tuxcare:frozen_at`). A script gets the file at `GET /api/v1/releases/{id}/vex` or `/api/v1/product-releases/{id}/vex`, with `?format=openvex` or `?format=csaf` for the other formats. ### The release report {#release-report} Select **Report** on a release or a product release to open its [compliance report](/guide/releases#report). The report of a supported or deprecated release shows the findings of today. The report of an archived release shows "Frozen at" and the findings at the time of the archive. A script gets the data at `GET /api/v1/releases/{id}/report`. ## Compliance {#compliance} The **Compliance** page holds the EU Cyber Resilience Act (CRA) clocks, the products, and the reports for an auditor. ![The Compliance page, with two CRA clocks and the list of two products.](/guide/img/compliance.png) The **Compliance** page. 1. A CRA clock, with its three times. 2. **Record decision** records what you did about the clock. 3. The products of the workspace. ### CRA clocks {#cra-clocks} Article 14 of the CRA tells a manufacturer to report an actively exploited vulnerability in a product: an early warning in 24 hours, and a notification in 72 hours. The portal starts a clock for each open known-exploited finding. - **Clock start** is the later of two times: the first sighting in your scans, and the first listing by a source. The card shows the start plus 24 hours and plus 72 hours, in UTC. - The card names the package, the repository, and its [products](/guide/releases#products), or "Not in a product". - A member or an admin selects **Record decision**: "Decision needed", "Early warning sent", "Notification sent", or "Not reportable". The last two stop the clock. The audit log records each decision. The portal shows the candidates. You decide if a finding is in a product that you sell and if you must report it. ### Products {#products} A product is a named set of repositories that you place on the market. The CRA applies to a product. An admin selects **New product**, types the name, selects the repositories, and selects **Save**. A product does not change who can see a repository: [departments](/guide/departments#departments) do that. A delete keeps the repositories, and removes the product releases of the product. ### Compliance reports {#report} A compliance report is a document about one repository for an auditor, made when you open it. Open the repository and select **Compliance reports**: the page lists what a report can be about. One row for each scanned branch or tag (by project, when the repository holds several), with the date of its last scan, the commit, and the counts of its open and known-exploited findings; the branch the repository page counts is marked "tracked" and comes first. The counts of a row are the counts of the report it opens. A repository with many branches shows the rows in pages: choose the rows per page, then **Previous** and **Next**. Below it, one row for each release. Select **Open report** on the row you want, then **Print or save as PDF**. Every role can open it. A report has these sections: - **Scope:** the workspace, the repository, the branch, the scans, and the date of the data. - **Known-exploited vulnerabilities:** each one, with its sources and the CRA times. - **Software bill of materials:** the components by ecosystem, and the components that the portal could not evaluate. - **Findings:** each finding, with the severity, the exploited flag, the triage state, and the fix. - **Suppressions:** each acknowledged or ignored finding, with the person, the time, the expiry, and the reason, and the triage log. The section **Known-exploited vulnerabilities** links to the single reporting platform of the Cyber Resilience Act, where a manufacturer files the early warning with its CSIRT and ENISA. A script gets the list at `GET /api/v1/repos/{id}/reports`, one page of the branch and tag rows at a time (`?limit=` and `?offset=`; `next_offset` is absent on the last page), and a report at `GET /api/v1/repos/{id}/report`, with `?ref=` for a branch. ### Export findings and dependencies {#export} Download the findings or the dependencies as CSV or JSON. For one repository, select **More** on its page. For all repositories that you can see, select **Export** on the [Overview](/guide/portal-tour#overview). Select **Findings** or **Dependencies**, then **CSV** or **JSON**, then **Download**. - The file has the rows of the tracked refs. The column `release` names the releases of the row. A scan that is not matched yet is not in the file. - The findings file has the columns `exploited`, `exploited_sources`, and `malicious`, the severity and its score, the triage state, and the fix. The last column, `severity_source`, names who gave the severity and the score: `NVD`, `CNA: Linux`, `Red Hat`, `TuxCare estimate`, `TuxCare VEX`, and so on; it is empty where the rating is the advisory's own. `malicious` is `true` when a malicious package record names the installed version: such a finding is open and has no fix. - In a CSV file, a cell that starts with `=`, `+`, `-`, or `@` gets a single quote first, so a spreadsheet does not run it. - A script gets the files at `GET /api/v1/repos/{id}/export/findings`, `/export/components`, and `GET /api/v1/export/findings`. Add `?format=json` for JSON. See [The REST API](/guide/api#api-rest). Each scan also has a CycloneDX SBOM: see [The Scans tab](/guide/repositories#scans). --- # Alerts URL: /guide/alerts Choose the alerts that you get by email or webhook, act on a finding from the email, and find out why an email did not arrive. ## Alerts {#alerts} An admin sets up alerts under [**Settings** › **Alerts**](/settings/alerts), in the part **Notifications**. The portal sends an alert when a scan adds a vulnerable package, when a new advisory affects a package that you already ship, when a host stops sending scans, and when an open finding comes near its fix deadline. Alerts cover the default branch and the supported releases. A person can also watch every branch of a repository (see [Choose the alerts that you get](/guide/alerts#watch)). For a feature branch, use [the pull request gate](/guide/ci-gates#pull-requests). A source repository alerts on its default branch: the default branch that you set, else `main`, else `master`. A repository with none of these has no alert branch. Its branch scans then send no alert, except to a person with an **All branches** watch. Its supported releases still send alerts. The **Watchers** section shows "No alert branch". Set the default branch on the repository page to fix it. An upgrade or a new build of a package that leaves an advisory open sends no alert, and neither does a fix that waits for a restart: the package had the finding before. The first scan of a repository, branch, or project path sends no alert. The exception is a person with an **All branches** watch: the first scan of a feature branch alerts that person. The subject of each alert names the workspace after the product, for example `TuxCare Pulse [acme]: 3 new finding(s) across 1 repo(s)`. ![The section Alerts of Settings, with the notification settings, the Watchers section, the Email delivery section, and one outbound webhook.](/guide/img/notifications.png) **Settings** › **Alerts**. 1. **Minimum severity**, **Delivery**, the digest, the host and deadline alerts, and the CIS drift alert. 2. The email addresses that get the alerts. 3. The Slack webhook. 4. **Send test** sends a test alert with the saved settings. 5. **Watchers**: how many repositories have a watcher, and the repositories that nobody watches, whose watchers get no alert email, or that show "No alert branch". 6. **Email delivery**: the addresses that email does not reach. 7. **Outbound webhooks**: your own endpoints. **Minimum severity** : Findings below this level send no alert. A known-exploited finding and a malicious package always send one. An ignored finding never does. **Delivery** : "immediate", or a "daily digest": all alerts of the day in one message, 30 minutes before [the daily time](/guide/alerts#daily-time) of the workspace. This is the choice of the workspace. Each person also has [a choice of their own](/guide/alerts#watch-delivery). **Digest** : "off", "weekly" (a summary of the last 7 days), or "daily" (a summary of the last 24 hours), at the daily time of the workspace. The portal sends the digest also when nothing changed. The digest starts with the new findings that a source lists as exploited in the wild. Then it shows the counts, the project to start with, the projects with the most severe new findings, and the new advisories, most severe first. It also counts a finding that a new advisory opened on an older scan. **Host not seen (days, 0 = off)** : A host that sends no scan for more than this many days sends one alert. The subject names the host and the days. When the host sends a scan again, the alert starts again. The default is 3 days. **Fix deadline warning (days, 0 = off)** : An open finding sends one alert when its [fix deadline](/guide/findings#deadlines) is at most this many days away. A change of the fix deadlines gives a new deadline, and a new alert. The portal checks the deadlines once a day. One message lists the findings of the check, with the asset and the due date. The minimum severity applies; a known-exploited finding always alerts. The default is 0: the alert is off until an admin sets the days. TuxCare Radar used 30 days. **CIS drift** : A host sends one alert when a [CIS rule](/guide/radar-hosts#cis) that passed in its previous OpenSCAP run fails in the new run. One message lists the rules of the run, each with why it matters and how to fix it, and links to the CIS page of the host. The alert compares only runs with the same content, level, and scanner version: the first run of a host, the first run after a new content, level, or scanner version, and a rule that was manual before send no alert. The minimum severity does not apply. The default is on. **Email to** : At most 10 addresses, separated by commas. These addresses get every alert of the default branch and the supported releases, as the Slack channel does. They do not replace the people who [watch a repository](/guide/alerts#watch): those people get their email also when this field is set. An address that is also a watcher gets one email. Empty means no extra address. In a hosted workspace, each address must be an active user who signed in at least once with the TuxCare sign-in. **Slack incoming webhook** : An `https` Slack webhook URL. **Settings** › **Alerts** and [**My alerts**](/my-alerts) show the daily time of the workspace, in UTC and in your time zone. The portal picks a fixed time for each workspace, so the workspaces do not all send at one time. A new scan sends its alert at once. After a feed update, the portal waits until the rechecks end (at most about 30 minutes), then sends one message for each repository. Select **Send test** to check the setup: at most 5 tests an hour. The test email goes to **Email to**, to the people who watch a repository, and to you. When nobody watches a repository and **Email to** is empty, it goes to every admin. ### Choose the alerts that you get {#watch} A person gets alert email only for the repositories that they watch. Each person sets this for themselves. A viewer can do it too. - Turn on **Watch** on a repository page. Choose **Default branch and releases** or **All branches**. - On the [**My alerts**](/my-alerts) page, watch a department (every repository of it, also one that is added later) or all repositories. - The person who adds a repository watches it with no action. This is the person who owns the token of the first scan, or who registers the repository in the portal. - To stop a watch of one repository that a department or all-repositories watch covers, turn off **Watch** on that repository. The other repositories stay watched. A watch never shows a repository that the seats of your [department](/guide/departments#departments) hide. The email of a person lists the watched repositories only. A watch of **All branches** also sends the alerts of a feature branch and of a deprecated or archived release. These alerts list only the findings that the default branch does not hold. A finding that is open on the default branch sends one alert, from the default branch. When nobody watches a repository, its alerts go to the admins. The email says "Nobody watches this repository". **Settings** › **Alerts** lists the repositories that nobody gets alerts for. ### Immediate email or daily summary {#watch-delivery} On **My alerts**, each person chooses how the email arrives. **Automatic** : The default. Immediate email while you watch 3 repositories or fewer. A daily summary when you watch more. A watch of all repositories counts as more than 3. **Immediate** : One email for each alert. **Daily summary** : One email a day, at [the daily time](/guide/alerts#daily-time) of the workspace. It holds new findings, silent hosts, and fix deadlines only. On a day of the workspace digest, the same email also holds the digest: one email, not two. It lists the alerts that the portal delivered since the last summary, at most 7 days. It shows at most 50 findings for each repository and 200 in total, then "and N more". An address that is also in **Email to** gets no summary: that address gets every alert at once. **Off** : No alert email. You still count as a watcher of the repository. A known-exploited finding sends its email at once, for every choice except **Off**. The one exception is a workspace whose delivery is "daily digest": there the portal holds every alert, also a known-exploited one, until 30 minutes before the daily time of the workspace. A malicious package (a package that a record of malicious code names) sends its alert at once, for every choice except **Off**. It does not wait for the daily time, also in a workspace whose delivery is "daily digest", and the minimum severity does not hold it back. One message names the new malicious packages of one branch, each with its record, the text of the record, and a link to the finding. It says what to do: remove the package or pin a version that the record does not name. A malicious package of a branch other than the default branch alerts only the people who watch every branch of the repository. The same package alerts again only after a scan no longer holds it and a later scan holds it again. An admin can name a **Security contact for malicious packages** in **Settings** › **Notifications**: these addresses always get this alert, of every repository, also when nobody watches the repository and when each watcher turned the email off. They get no other alert. The rule of **Email to** holds for them. Each malicious version also stays on the page [Malicious sightings](/guide/malicious#sightings) until an admin reviews it. In a hosted workspace, the portal sends alert email only to a person who signed in at least one time with the TuxCare sign-in. Until then, your watches stay as you set them, and **My alerts** says that you get no alert email. ### Act on a finding from the email {#email-actions} Each finding in an alert email has links that act on it. Each new advisory of a digest has one link. **Ignore** : Ignores the finding on its branch, with the reason category "other". **Accept risk** : Ignores the finding with the reason category "risk accepted". **Not affected** : Ignores the finding with the reason category "not affected". A VEX export then says `not_affected`. **Suppress in this repository** : Makes a [suppression rule](/guide/findings#suppress) of the advisory for the repository. It needs the member role on the repository. **Suppress in the workspace** : The link of an advisory in the digest. An admin makes a rule of the workspace. A member [asks an admin](/guide/findings#suppress-approval) for it. A link opens a page of the portal that shows the finding or the advisory and what the action does. Nothing changes until you select **Confirm**. Sign in first if the portal asks you to. The action has the same rules as in the portal: a triage needs the member role on the repository, and a rule needs a reason. The audit log names you. - A link works once. When a colleague used it already, the page says who and when. - A link works for 7 days. After that, open the finding in the portal. - A link works only in the workspace that sent the email. - A very large email, for example a daily summary with many findings, shows the links for its first findings only, so that mail programs show the whole email. Act on the others in the portal. - A merged alert of an advisory update names several branches. Its finding has the suppress link only: a triage is a decision for one branch. ### Outbound webhooks {#webhooks} Add an `https` endpoint under **Outbound webhooks**. Copy the signing secret: the portal shows it one time. Each alert arrives as a JSON `POST` with `id`, `kind`, `created_at`, and `payload`, and two headers: - `X-SecureChain-Timestamp`: the time, in Unix seconds. - `X-SecureChain-Signature`: `sha256=` and the hex HMAC-SHA256 of `timestamp + "." + body`, with the secret as the key. Compute the HMAC, compare it with the header, and refuse an old timestamp. Select **Test** in the row of an endpoint to send it a signed test event: at most 5 tests an hour for the workspace. The portal does not follow redirects. When the endpoint does not answer 2xx, the portal tries again after 1, 5, and 15 minutes. When no channel of the workspace got the alert, it then tries once an hour for about a day. Then it stops, and the audit log names the alerts that did not go out. Each finding has a `stable_key`. In a feed-update alert, each finding has a `refs` list and no `stable_key`. A [malicious package](/guide/alerts#malicious-alert) arrives with the kind `malicious`, and each of its findings also has `version`, `records` (the `MAL-` ids), `aliases`, and `details` (the text of the record). Answer each `POST` quickly: one try gives an endpoint one minute for all of its alerts. After a failed delivery, or when the minute ends, the endpoint gets no more alerts until the next try. When the deliveries to an endpoint fail again and again for a day or more, the portal turns the endpoint off and writes the reason to the audit log. Correct the endpoint, then turn it on again. ### Email that does not arrive {#email-delivery} The portal stops email to an address at once after a hard bounce or a spam report, and after three failed deliveries in a row over at least three days. The other admins get an email. **Email delivery** lists each address and the reason, and the list of users of [**Settings** › **People**](/settings/people) marks the user "Email stopped". Correct the address, then select **Resume email**. Resume an address that reported spam only when the person asks for the email. --- # Protected Apps URL: /guide/protected-apps TuxCare Node.js LivePatch runs the TuxCare ELS for JavaScript fixes in a running Node.js app. The section **Protected Apps** of the portal shows each app that runs it: the packages that the app loaded, the patches that it runs, and the vulnerabilities that still wait for a restart or an upgrade. ## What a live patch does {#what} When Node loads a file of a package version that has a fix, the library gives Node the fixed copy of the file. The files in `node_modules` do not change. A fix takes effect when Node loads the file: code that the app loaded before the fix arrived runs the old code until the app restarts. A new start of the app always loads every patch. Node.js LivePatch is an add-on of ELS for JavaScript. The section **Protected Apps** shows in the top bar when the add-on is on for the workspace, or when an app of the workspace reported. To turn on the add-on, [contact TuxCare](/guide/help#help). ## Set up an app {#setup} 1. Make a portal token for the app. Open [**Access tokens**](/tokens) (**My tokens** in the account menu) and choose the preset **Upload only**, with no repository. Keep the token in a secret of your deployment, not in the image. 2. Add the package to the app: `npm install @tuxcare/nodejs-livepatch`. 3. Load it before the app, with no change to the code of the app: `NODE_OPTIONS="--require @tuxcare/nodejs-livepatch" node app.js`. For an ES module app on Node 20 and later, `--import @tuxcare/nodejs-livepatch` does the same. 4. Set these variables in the environment of the app: **`TUXCARE_LIVEPATCH_URL`** : The address of your portal workspace, for example `https://acme.sc.tuxcare.cloud`. The library gets the patch feed from it, and reports to it. The address must be `https://`. The library takes an `http://` address only for `localhost`, `127.0.0.1`, and `[::1]`, because each request carries the token. With another `http://` address, the library fetches and reports nothing, and writes one line to stderr. **`TUXCARE_LIVEPATCH_ALLOW_HTTP`** : `1` or `true`: the library takes an `http://` address on purpose. Set it only when the network between the app and the portal is private, for example to a portal that you run on premises. **`TUXCARE_LIVEPATCH_KEY`** : The token of step 1. **`TUXCARE_LIVEPATCH_APP_NAME`** : The name of the app in the portal. By default, the `name` of the `package.json` of the app. **`TUXCARE_LIVEPATCH_K8S_CLUSTER`, `TUXCARE_LIVEPATCH_K8S_NAMESPACE`, `TUXCARE_LIVEPATCH_K8S_WORKLOAD`** : In Kubernetes: the cluster, the namespace, and the workload. Set all three, so that the pods of one workload are one app. **`TUXCARE_LIVEPATCH_APP_ID`** : The id of the app in the portal. By default, the name plus where the app runs, so staging and production are two apps. **`TUXCARE_LIVEPATCH_REPO`** : The URL of the repository of the app. The app page offers to link it (see [Link a repository](/guide/protected-apps#link)). **`TUXCARE_LIVEPATCH_CACHE_DIR`** : The cache of the patch feed: an absolute path of a directory that the user of the app can write. By default, a directory in the OS temp directory, one for each app. Set one directory for each app: the cache holds the bundles of the packages of one app only. From the release after version 0.1.6, the first app that starts and can fetch the feed takes the directory. Another app then uses a folder of its own in it, and writes one line on stderr. To give the directory to another app, empty it. From version 0.1.4, the library downloads the patch feed by package: a signed catalog of the feed, and only the bundles of the package versions that the app has. It finds them in the `node_modules` directories of the app, and checks the catalog and each bundle before it uses them. When the app loads a package version that the library did not find (one that you installed after the start), that load runs the original code. When the feed has a bundle for that package version, the library downloads it in the background about a minute later, and its fix comes at the next restart. When the download fails (the portal does not answer, or answers with an error), or another process of the app holds the cache at that time, the original code stays until a later fetch gets the bundle. When a bundle changes, the line of the new catalog names its earlier revisions: a library that holds one of them asks for the bundle with those revisions, and the portal can answer a delta — the new records and only the fixed files that the earlier bundle does not hold; the library takes the other files from the earlier bundle and checks each file against the new bundle, and when the delta does not give each file it asks once more for the whole bundle in the same fetch. So the cache keeps an earlier bundle while the catalog names it. From the release after version 0.1.6, a bundle that keeps failing holds back no other fix. When the portal does not have one bundle, or the bundle fails its check or a limit, the library still downloads the other bundles. At the third try of the same catalog while the app runs (about two hours after the first, when only such bundles fail), the library puts the catalog in place without the failed bundle, when it holds at least one bundle of a revision of a line of the new catalog: one that came, or one that it carried from the catalog in use. When the new catalog names the bundle that the package version ran as an earlier revision of its line, that package version keeps the earlier bundle until the new one comes. The kept bundle gives way when a bundle of the new catalog that comes later holds the same patch with other fixed bytes, another module, or other files (the same patch in another version of the package). Up to version 0.1.13, when the install would give a package version of a failed bundle any bundle other than the earlier one that it may keep, or drop that earlier bundle, the library does not install the new catalog: it keeps the catalog in use and each fix of it, and tries again later. From the release after version 0.1.13, when the new catalog does not name the bundle that a package version of a failed bundle ran (for example, the release withdrew a patch of it), that bundle stops. Such a package version, and one that ran no bundle, can then run an older bundle that the library holds and that the new catalog names for its line, when it passes its checks, until the new one comes; else it runs the original code. That release does not install the new catalog when the install would drop a bundle that ran and that the new catalog still names, or run a bundle that the new catalog does not name: it keeps the catalog in use and each fix of it, and tries again later. Each package version of a failed bundle that runs no bundle after the install stays not patched and runs the original code, the other fixes go on, and each later fetch asks for the failed bundle again. When the portal itself fails (no answer, a 5xx, a 429, a 401, or a 403), the library keeps the catalog and each fix that it has. The cache holds the catalog and the bundles of the app. The catalog has one line of about 100 bytes for each bundle of the feed: the feed of 16 November 2026 had 1,319 bundles, and its catalog was a file of 53 KB compressed. A bundle file in that feed was 7.7 KB compressed at the median, and 1.3 MB at the most. A bundle that changed can stay next to its new revision, at most five earlier revisions, as the base of the next delta. The cache keeps the two newest catalogs, and a fetch writes a third directory before it removes the oldest. The feed grows, so check the size of the cache directory again after some months. When the OS temp directory is memory (a `tmpfs`), the cache counts against the memory limit of the container: set `TUXCARE_LIVEPATCH_CACHE_DIR` to a directory on a disk. A temp cleaner of the system can also remove files of the default cache: on EL10, `systemd-tmpfiles` removes the temp files that nobody read for 10 days. At the next fetch (at most about an hour) the library gets a removed bundle again, and a catalog that lost its files is fetched again too, but a load of a fixed file before that runs the original code. To keep the fixes at each load, set `TUXCARE_LIVEPATCH_CACHE_DIR` to a directory that no cleaner touches. A release of the library before 0.1.4 kept the whole feed in its cache. From 0.1.4, the library removes those directories after its first catalog. The app reports a few seconds after the start, after each new feed, after each restart, and at least every 15 minutes. The report holds the name of the app, where it runs, the Node.js version, the loaded packages, and the state of each patch. It holds no source code, no request data, and no other environment value. An instance is live while its last report is less than 1 hour old. ## The list of apps {#list} The page **Protected Apps** has five tiles: the apps that report and their live instances, the CVEs that are live patched, the CVEs that wait for a restart, the CVEs that are open with no patch, and the apps that the library cannot patch. Under the tiles, one row for each app shows where it runs, the Node.js version, the three counts, the live instances, and the time of the last report. Select the name of an app to open its page. The portal checks at most 20,000 package versions of one app at a read. The row of an app that loads more says "not checked" in place of the three counts: its vulnerabilities are not known, and the app is not clean. A count of **Waiting for restart** says when the agent restarts the app, or "no restart scheduled": then use **Restart now**, or restart the app yourself. ### Who sees the apps {#who} An admin, and a member or a viewer with no seat in a department, see every app. A member or a viewer with a seat in a department sees no app, and the section **Protected Apps** does not show for them: an app belongs to no department. A token for one repository or one department reads no app. ### Not patchable {#not-patchable} The library cannot patch some apps. The row of such an app has the mark **Not patchable** and the reason under it. Such an app is not clean: its vulnerabilities stay open. The reasons: **Bundled** : A bundler put the packages into the app's own files, so Node does not load them from `node_modules`. Examples are the output of esbuild or webpack, and a Next.js standalone build. **ES module app on an older Node.js** : The app is an ES module app, and Node is older than 22.15. A fix of an ES module file needs Node 22.15 or later. **No node_modules** : The app loaded no file from a `node_modules` directory. **Node.js version not supported** : The Node.js version of the app is not a line that this version of the library supports, so the library applies no patch. The reason under the row names the lines that the library supports. Run the app on such a line, or update the library. ## The page of an app {#app} The top of the page shows where the app runs, the linked repository, the Node.js version and the module type, the version of the agent, the serial of its patch feed next to the newest serial, the live instances, and the restart policy with its source. When patches wait for a restart, a notice says how many, when the agent restarts the app, and the last restart. An admin can select **Restart now**: the agent restarts each live instance of the app once, one at a time, after the instance drains. It works under every restart policy, also **Manual**. Each instance reads the request at its next report. The page has three tabs: ****Patches**** : Each vulnerability of a loaded package: the package and its version, the vulnerability, the severity, the state ("Live patched", "Waiting for restart", "Patch failed", "Patch runs in part of the app", or "Open, no patch"), the patch, the live instances that run it, and the permanent fix. The portal decides the state. A vulnerability is live patched only when each live instance runs the patch. When 1 of 3 instances runs it and the other 2 wait for a restart, it waits for a restart. When the other 2 do not run it, the state is "Patch runs in part of the app": the app still runs the vulnerable code there. ****Loaded packages**** : Each package copy that the live instances loaded, with its path and the count of the instances. ****Instances**** : Each instance of the app: live or gone, the Node.js version, the supervisor, the patches, the last restart, and the last report. ### Link a repository {#link} Link the app to the repository or the image that it is built from, so that the findings of that repository show the live patches. On the page of the app, an admin selects **Link a repository** and picks the repository. When the report of the app names a repository that the workspace has, the page offers it in one button. The portal never links an app by itself. ## The restart policy {#restart-policy} The restart policy says what the agent does when a patch arrives for code that the app already loaded. The agent restarts one instance of an app at a time. The old instance finishes its open requests first. When a new instance does not start, the old one keeps running, and the patch shows as failed. ****Immediately**** : Restart as soon as the patch arrives. ****Urgent now, the rest in a window**** : The default. A patch for a CVE that is exploited (KEV) or critical restarts the app at once. The other patches wait for the window. The default window is 02:00 to 04:00 every day, in the local time of the server. ****In a window only**** : Every patch waits for the window, also an urgent one. ****Manual**** : The agent never restarts the app. Use **Restart now**, or restart the app yourself. An admin sets the policy of the workspace in [**Settings** › **Protected Apps**](/settings/apps), and the policy of one app on its page (**Change the policy**). **Use the workspace policy** removes the policy of the app. An app can also set its policy itself, with the variable `TUXCARE_LIVEPATCH_RESTART`: the portal then shows "Set locally", and cannot change it. The app takes its policy and its window from the first source that sets them: the variables `TUXCARE_LIVEPATCH_RESTART` and `TUXCARE_LIVEPATCH_RESTART_WINDOW`; else the config file `tuxcare-livepatch.json` in the app root (the directory of the `package.json` of the app); else the key `tuxcareLivepatch` of the `package.json` of the app; else `configure()` in the code of the app. The file and the key take the keys `restart` and `restartWindow`. Each of the two values takes its own first source. A local policy with no window of its own uses 02:00 to 04:00. The window is in the local time of the server: `02:00-04:00` every day, or with a day range or a list of days, for example `Mon-Fri 02:00-04:00` or `Mon,Wed,Sat 22:00-01:00`. A window that ends before it starts crosses midnight. The agent restarts an app at most 6 rounds a day. A round restarts each instance of the app once, so 20 instances that restart once are one round. The portal counts the rounds in the UTC day. A restart over the limit waits for the next day. Whatever the portal answers, also for **Restart now**, one instance restarts at most 12 times in its local day (two UTC days of 6 rounds), with at least 10 minutes from the start of one restart to the start of the next. Over this limit, the instance reports the health event `restart_limit` and waits for its next local day. When the portal does not answer (no answer, a 5xx status, or a 429), an instance does not wait for its turn: it waits a random time inside the window (up to 5 minutes for an immediate restart, an urgent patch, or **Restart now**), and then restarts. Only these answers make an instance restart with no turn. A refused token or a switched-off add-on (a 401 or a 403), a redirect, or an answer that the library cannot read does not restart the app: the library reports the health event `internal_error` with the status, and asks for a turn again after about 15 minutes. ## Live patches on the findings of a repository {#findings} A live patch closes no finding of the linked repository: the source is still vulnerable. The finding stays open in the CI gate of `tuxcarectl sca`, in the open counts, in the grade, and in the alerts. On **Vulnerabilities**, the repository page, and the finding page, an npm finding that a linked app runs a patch for has the badge **Node.js LivePatch** and a note, for example "live patched in 2 of 3 linked apps". When each linked app runs the patch, the fix deadline of the finding moves to the deadline of the next lower severity band (a critical finding gets the deadline of a high one), and the finding leaves the lists of exploited and critical findings. When one linked app stops running the patch, both go back. Upgrade the package for a permanent fix. --- # TuxCare Radar URL: /guide/radar TuxCare Radar 3.0 shows the vulnerabilities of your Linux servers. The `tuxcare-radar3` agent on each server sends its installed packages once a day. Pulse matches them against the advisories of the vendor and of TuxCare, and shows each server on the **Hosts** page. ## A TuxCare Radar workspace {#workspace} A TuxCare Radar workspace shows hosts only. Its top bar holds: - **Hosts**: each server and its findings ([Read a host](/guide/radar-hosts)). - [**Protected Apps**](/guide/protected-apps), when the workspace has the add-on. - **Overview**, **Vulnerabilities**, **Packages**, and **Remediation**: all the hosts of the workspace together. [The portal](/guide/portal-tour#overview) explains each page. - **CIS compliance**: the CIS benchmark checks of the hosts ([CIS compliance](/guide/radar-hosts#cis)). **Remediation** also lists the [top fixes across hosts](/guide/findings#remediation): the package updates that close the most open findings. Its section [Time to remediate and SLA](/guide/findings#remediation-report) gives the time to fix the hosts by month, and the share fixed in time against the workspace, PCI DSS, CISA KEV, and NIST / FedRAMP deadlines, as CSV files and as a page to print or save as PDF. Right of the search field, **+ Add** holds **Add a host** and [**Import scans**](/hosts?add=import). [**Settings**](/settings) holds the users, the notifications, the audit log, and the other settings of the workspace. The account menu at the right of the header holds [**My profile**](/profile), [**My alerts**](/my-alerts), [**My tokens**](/tokens), and **Help**. ## Install the agent {#install} To set up Radar on a server, you need root access and the admin or the member role in the workspace. The steps are: 1. [Make a token](/guide/radar#token) in Pulse 2. [Install the package](/guide/radar#package) on the server 3. [Set the portal and the token](/guide/radar#config) in `/etc/tuxcare-radar3/radar.conf` 4. [Run your first scan](/guide/radar#first-scan) 5. [Check on the daily scan](/guide/radar#timer) ### 1. Make a token {#token} 1. In your workspace, open the account menu at the right of the header, and select [**My tokens**](/tokens). 2. Type a **Name**, for example `radar web-01`. 3. Select the rights **Upload only**. The agent needs the `cli` channel and the `submit` permission: it sends each scan, then reads the counts of the vulnerabilities of that scan. Such a token reads no other scan. 4. Select **Mint token** and copy the token. The portal shows it one time only. One token can serve many servers. Make one token for each group of servers that you want to revoke together. ### 2. Install the package {#package} TuxCare ships x86_64 and aarch64 `tuxcare-radar3` RPM and DEB packages from the repository at `repo.tuxcare.cloud`. The packages and the repository data are signed with the TuxCare package signing key `8D50EB66`. **RPM: AlmaLinux, Rocky Linux, RHEL, CentOS, CloudLinux, Amazon Linux 2:** Get the TuxCare signing key from `security.tuxcare.com` into a temporary file, check its sha256, and only then write the key file. `security.tuxcare.com` is a service other than the package repository, so a change to the repository cannot change the key as well. The check still stops a key file that does not match this page, also one from `security.tuxcare.com` (see [Check the signing key](/guide/radar#key-check)). When the check fails, the line prints `FAILED` and removes the key file, and yum and dnf install nothing. Go on only when the line printed `OK` and no error, and the key file is there: ``` k=$(mktemp) curl -fsSL https://security.tuxcare.com/gpg/RPM-GPG-KEY-TuxCare-8D50EB66 -o "$k" echo "aea2cdacbbb1d4966df708f176954eef3006f8b6d9ae371858cd4cfeceea5c9a $k" | sha256sum -c - && sudo install -D -m 0644 "$k" /etc/pki/rpm-gpg/RPM-GPG-KEY-TuxCare-8D50EB66 || sudo rm -f /etc/pki/rpm-gpg/RPM-GPG-KEY-TuxCare-8D50EB66 rm -f "$k" ``` Create the YUM repo file: ``` sudo tee /etc/yum.repos.d/tuxcare-radar3.repo <<'EOF' [tuxcare-radar3] name=TuxCare Radar 3 baseurl=https://repo.tuxcare.cloud/radar3/h/$radar3host/$releasever/$basearch/ enabled=1 gpgcheck=1 repo_gpgcheck=1 skip_if_unavailable=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-TuxCare-8D50EB66 includepkgs=tuxcare-radar3 tuxcare-openscap-scanner [tuxcare-radar3-bypass] name=TuxCare Radar 3 (bypass: the newest release now) baseurl=https://repo.tuxcare.cloud/radar3/bypass/$releasever/$basearch/ enabled=0 gpgcheck=1 repo_gpgcheck=1 skip_if_unavailable=1 gpgkey=file:///etc/pki/rpm-gpg/RPM-GPG-KEY-TuxCare-8D50EB66 includepkgs=tuxcare-radar3 tuxcare-openscap-scanner EOF ``` Then install the package: ``` sudo yum install tuxcare-radar3 ``` **DEB: Debian, Ubuntu:** Get the TuxCare keyring from `security.tuxcare.com` into a temporary file, check its sha256, and only then write the keyring. `security.tuxcare.com` is a service other than the package repository, so a change to the repository cannot change the key as well. The check still stops a keyring that does not match this page, also one from `security.tuxcare.com` (see [Check the signing key](/guide/radar#key-check)). When the check fails, the line prints `FAILED` and removes the keyring, and apt installs nothing from the source. When you run the lines one at a time, go on only when the check printed `OK` and no error, and the keyring is there: ``` k=$(mktemp) curl -fsSL https://security.tuxcare.com/gpg/tuxcare-8D50EB66.gpg -o "$k" echo "1a99e9cb4f773b665322d344004b42b7d15cd4a148fbf5c966c4add2cf710dca $k" | sha256sum -c - && sudo install -D -m 0644 "$k" /usr/share/keyrings/tuxcare-8D50EB66.gpg || sudo rm -f /usr/share/keyrings/tuxcare-8D50EB66.gpg rm -f "$k" ``` Write the apt pin, which lets apt take only the TuxCare Radar and TuxCare CLI packages from `repo.tuxcare.cloud` (see [Take only the Radar packages](/guide/radar#only-radar)), and the apt source: ``` sudo tee /etc/apt/preferences.d/tuxcare-radar3.pref <-1.x86_64.rpm` or `sudo dpkg -i tuxcare-radar3_-1_amd64.deb`. The rpm then also writes the repository file and the GPG key. The package installs the agent as `/usr/bin/tuxcare-radar3` (also `/usr/bin/radar3`), the configuration file, the system user `radar3`, and a systemd timer, which it turns on. A server with no systemd gets a cron file instead, which you turn on in [step 5](/guide/radar#timer). ### 3. Set the portal and the token {#config} Write the address of your workspace and the token in `/etc/tuxcare-radar3/radar.conf`. The package installs this file with example values: ``` portal-url: https://acme.sc.tuxcare.cloud token: tuxr_... # host-name: web-01 # tags: prod, web # https-proxy: http://proxy.example.com:3128 # send-addresses: false # send-containers: false # failure-reports: false ``` The file holds one `key: value` pair on each line. A line that starts with `#` is a comment. There are no lists and no nested values, so `tags` is one comma-separated value. **`portal-url` (required)** : The address of your workspace, the one that your browser opens. It must be `https`. **`token` (required)** : The token of step 1. **`host-name`** : The name of the host in the portal. The default is the hostname of the server. **`tags`** : Up to 32 tags, separated by commas, on one line: `tags: prod, web`. A tag has 1 to 64 characters: letters, digits, and `. _ : / = -`. It starts with a letter or a digit. **`https-proxy`** : The proxy for the connection to the portal. The environment variable `HTTPS_PROXY` wins over it. **`send-addresses`** : `true` (the default) or `false`. The agent sends the IPv4 and IPv6 addresses of the network interfaces of the server, and the host page shows them. It leaves out the loopback, link-local addresses, and the interfaces of containers and virtual machines. With `false`, the agent sends no addresses, and the portal removes the addresses that it has for the host. **`send-containers`** : `true` (the default) or `false`. The agent sends the list of the containers and the local images of the server (see [The list of the containers](/guide/radar#containers)). With `false`, the root step reads no container runtime, the agent sends no list, and the portal removes the list that it has for the host. **`failure-reports`** : `true` (the default), `false`, or `preview`. With `false`, the agent writes and sends no failure report, and removes the reports that wait. With `preview`, it writes the reports and sends none. See [Failure reports](/guide/radar#failure-reports). The agent needs one outbound connection: HTTPS (port 443) to the portal. It does not follow a redirect, so the token goes only to the address in the file. The environment variables `TUXCARE_PORTAL_URL` and `TUXCARE_PORTAL_TOKEN` take precedence over the file. ### 4. Run the first scan {#first-scan} ``` sudo -u radar3 tuxcare-radar3 run --wait 5m ``` `--wait 5m` waits up to 5 minutes for the portal to match the scan. The output is a summary of four lines: ``` tuxcare-radar3 3.0.9: web-01 - almalinux-9.6 (x86_64), TES licence, 342 packages portal: https://acme.sc.tuxcare.cloud, scan 7, matched in 4s vulnerabilities: 12 open (high 3, medium 9), 2 no fix planned; the rows are on the portal's Hosts page log: syslog, tag tuxcare-radar3 ``` The agent prints no vulnerability: the **Hosts** page shows them. Without `--wait`, the agent reads the counts one time, and when the portal has not matched the scan yet, the summary says "matching on the portal". The log of each run goes to syslog with the tag `tuxcare-radar3`. The agent reads the installed packages from the rpm database or the dpkg status file, the kernels, the TuxCare licence, the KernelCare state when KernelCare runs, the addresses of the network interfaces ([`send-addresses`](/guide/radar#config)), and the containers and the local images of the server ([`send-containers`](/guide/radar#config)). It sends the list to the portal in one HTTPS request, and then reads the counts of the vulnerabilities that the portal found. At the end of the run, a third request sends the [failure reports](/guide/radar#failure-reports) that wait, when there are any. It runs no package manager and changes nothing on the server. To see the document without a send, run `tuxcare-radar3 run --dry-run`. The [privacy notice](https://sc.tuxcare.cloud/privacy#radar) says what each part of it is for. A run with `sudo -u radar3` reads no container runtime: it sends only the list that the root step of the service or the cron job wrote before, and none while the service has not run yet. On a server with systemd, run `sudo systemctl start tuxcare-radar3.service` to send the list with the first scan (see [The list of the containers](/guide/radar#containers)). ### 5. Check the daily scan {#timer} The package sets up the scans for you. On a server with systemd, the timer `tuxcare-radar3.timer` runs them; the package turns it on at the first install. | Scan | When | | --- | --- | | The daily scan | One scan each day, at a random time in the four hours after midnight. | | The boot scan | The timer runs one scan after each boot, at a random time in the four hours after the first 15 minutes. | | A missed daily scan | The timer does not catch up a daily scan that the server missed while it was off: the boot scan, at least 15 minutes after the boot, takes its place. | After a reboot, the portal thus sees the new running kernel soon, and removes the reboot advice without a wait for the next day. The wait of 15 minutes lets KernelCare load its patches before the scan reads the server. The random times make sure that many servers do not send at the same moment, also when a whole fleet reboots. Check the timer, run one scan now, and read the log: ``` systemctl list-timers tuxcare-radar3.timer sudo systemctl start tuxcare-radar3.service journalctl -t tuxcare-radar3 --since -1h ``` **Turn the scans off or on.** The service runs only when the timer starts it, so turn the timer on or off, not the service (`systemctl enable --now tuxcare-radar3.timer`, `systemctl disable --now tuxcare-radar3.timer`). With the timer off, Pulse still matches each new advisory against the last scan of the host, but it does not see the packages that you update or install after that scan. **Scan at other times.** Change the timer with a drop-in file of your own. For example, to scan once a week on Sunday, run `sudo systemctl edit tuxcare-radar3.timer` and write: ``` [Timer] OnCalendar= OnCalendar=Sun 02:00 OnBootSec=15min ``` The empty `OnCalendar=` line clears all the times of the package, the boot scan too, so the next two lines set the times again. Leave out `OnBootSec=15min` to drop the boot scan. The random wait of up to four hours stays on systemd 229 and later and on CentOS 7.9. An older systemd has no random wait: the line also clears the fixed random times of the package (see [Run on old systemd and cron](/guide/radar#old-systemd)), so give each server a time of its own. An update of the package keeps your file. **The scan limit.** Your plan sets the number of host scans a day ([Plan and limits](/guide/audit#limits)). The first scan of a host counts. A later scan counts when it changes the packages, the running kernel, anything in the live-patch report except its update time, what waits for a restart, the TuxCare licence, or the update stream; a scan with no such change does not count. A server with no systemd, for example CentOS 6, uses cron. Turn the cron job on with `sudo cp /usr/share/tuxcare-radar3/tuxcare-radar3.cron /etc/cron.d/tuxcare-radar3`, and off by removing that file. [Old systemd and cron](/guide/radar#old-systemd) tells you how their schedules differ. A host that sends no scan for 14 days shows its **Last scan** date in amber, and after 30 days in red. ## Keep the agent up to date {#update} The page of a host names the version of its agent. When a newer Radar release exists, the agent line says "older than" and names the newest release, for example "tuxcare-radar 3.0.9 older than 3.0.10": the agent names itself `tuxcare-radar`, and its package is `tuxcare-radar3`. Update the package with the package manager of the server: ``` # RPM: sudo yum update tuxcare-radar3 # DEB: sudo apt-get update && sudo apt-get install --only-upgrade tuxcare-radar3 ``` The next scan sends the new version, and the warning goes. The version is the version of the agent, not of the package: a package that changes only its packaging, for example `3.0.8-2` after `3.0.8-1`, keeps the version. The portal learns the newest release from a version file next to the packages, `https://repo.tuxcare.cloud/radar3/latest`. The file moves only when a release becomes stable, so the portal tells no server to update to a release that its wave does not get yet. On a portal that you run yourself, the operator sets the address of that file in `radar.latest_url` of the portal configuration. When the key is empty, or the portal has not read a version from the file yet, the page shows no warning: the portal does not guess the newest release from the versions that your servers send. When a later read fails, the portal keeps the release of the last good read. Version 3.0.10 changes the configuration file and the user. An update from 3.0.9 moves what the server had: - When `/etc/tuxcare-radar3/radar.yaml` has a token, and `radar.conf` is the example or is absent, the update moves the file to `radar.conf`. No copy of the token stays in `radar.yaml`. The update also gives the file the form of `radar.conf`: a list of `tags` on several lines becomes one comma-separated line. - A `radar.conf` that you changed stays, and `radar.yaml` stays too. Delete `radar.yaml`: it holds the token. - The file goes to the user `radar3`. A later update gives it to root and the group `radar3` (see [the owner of the file](/guide/radar#config-owner)). On a server with no systemd, the cron file `/etc/cron.d/tuxcare-radar3` now runs the agent as `radar3`. - The user `tuxcare-radar3` stays, with no file and no process. To remove it, run `sudo userdel tuxcare-radar3`. ### How a new release reaches your servers {#waves} A new release reaches the servers in steps: first a beta step, then a growing share of the servers (1%, 2%, 4%, and so on up to 64%), then every server (stable). TuxCare takes the next step only when the health of the new release passes its check. The repository gives each server the new release or the stable release, by the step and by the host value of the server. So an update on one server can get a new release some days before an update on another server. The command `tuxcare-radar3 repo` prints the host value, the channel, and the URL of the repository of the server. As root, it changes the channel: | Command | The server gets | | --- | --- | | `sudo tuxcare-radar3 repo --waves` (the default) | The new release from the step whose share holds the server. | | `sudo tuxcare-radar3 repo --beta` | The new release from its beta step on. | | `sudo tuxcare-radar3 repo --stable` | The stable release only. | The command writes the yum variable file, or the URI of the apt source when the source is one of the two forms that the package knows. It does not change an apt source that you changed: it prints the `URIs:` line to write, and exits 5. The bypass gives the newest release now, from its beta step on. Use it for one server that needs a fix of the new release before its wave. On an rpm system, the second section of the repository file, `[tuxcare-radar3-bypass]`, is off. Update once from it: ``` sudo yum --enablerepo=tuxcare-radar3-bypass update tuxcare-radar3 ``` On Debian and Ubuntu, add a second apt source for one upgrade, and remove it after the upgrade. A server that keeps the bypass source gets each release at its beta step. ``` . /etc/os-release sudo tee /etc/apt/sources.list.d/tuxcare-radar3-bypass.sources <`; the kind of the package database; what started the run (the timer, cron, or a person); the step that failed; the state of the root steps; the exit code and its name; the class and kind of the error, and the HTTP status; the routes of the requests, with each id as `*`, and their status; the time of the run; and the count of the warnings. - A report never holds a path, a host name, the machine ID, the product UUID, an address, a tag, a package, a URL, the token, or the text of an error. - The reports wait in `/var/lib/tuxcare-radar3/failure-reports` (the user `radar3`, mode 0700). The folder holds at most 20 reports, for at most 7 days. A dry run, and a run with no portal or no token, write no report. - Turn them off with `failure-reports: false` in `/etc/tuxcare-radar3/radar.conf`, or with `TUXCARE_FAILURE_REPORTS=off`. A setting that says off wins. `preview` keeps the reports and sends none. - `tuxcare-radar3 failure-reports` prints, as JSON, the setting, the reports that wait, and the last 20 sent. It changes nothing. Run it as the user `radar3` or as root. ## TuxCare Radar 1.x {#radar1} TuxCare Radar 1.x is the package `tuxcare-radar` of `https://repo.tuxcare.com/radar`. TuxCare Radar 3.0 is a package of its own, `tuxcare-radar3`, in a repository of its own. It installs next to 1.x, and an update of 1.x never installs 3.0. The two packages have no file in common: 1.x keeps its command `tuxcare-radar` (and `radar`), its configuration file `/etc/tuxcare-radar/radar.yaml`, its cron job, and its repository file. To move a server from 1.x to 3.0, install `tuxcare-radar3` (steps 1 to 4). When the server shows on the **Hosts** page, remove 1.x: `sudo yum remove tuxcare-radar` or `sudo apt-get remove tuxcare-radar`. The agent of 3.0 does not read the keys of Radar 1.x (`base-url`, `apikey`, and the others): a 1.x API key is not a portal token. ## Details for administrators and auditors {#details} The steps above work without this section. It tells you why the steps are as they are, and what the package does in the cases that are not the usual one. ### Check the signing key {#key-check} The packages and the repository data are signed with the TuxCare package signing key `8D50EB66`. Its full fingerprint is: ``` FAD7 8590 81D0 738B 7A82 8496 D07B F2A0 8D50 EB66 ``` The signature of a package protects a server only when the server has the right key already. So step 2 takes the key from `security.tuxcare.com`, a service other than the package repository: a changed key file in the repository does not reach the server. Step 2 also checks the sha256 of the key against this page before it writes the key file: a key file from `security.tuxcare.com` that does not match this page stops the install. The rpm package ships the key as `/etc/pki/rpm-gpg/RPM-GPG-KEY-TuxCare-8D50EB66`, and its repository file names that file, not a URL. The key comes in two files. Each place serves the same bytes, with this sha256: - Armored, for yum and dnf: `https://security.tuxcare.com/gpg/RPM-GPG-KEY-TuxCare-8D50EB66`, also `https://repo.tuxcare.cloud/radar3/RPM-GPG-KEY-TuxCare-8D50EB66`: sha256 `aea2cdacbbb1d4966df708f176954eef3006f8b6d9ae371858cd4cfeceea5c9a` - Binary, for apt: `https://security.tuxcare.com/gpg/tuxcare-8D50EB66.gpg`, also `https://repo.tuxcare.cloud/radar3/tuxcare-8D50EB66.gpg`: sha256 `1a99e9cb4f773b665322d344004b42b7d15cd4a148fbf5c966c4add2cf710dca` This page comes from the same service as the package repository, so a fault of that service can change the key step and this list together. Before the first install, make sure that step 2 downloads from `https://security.tuxcare.com/gpg/`, and check the list against that service: `curl -fsSL https://security.tuxcare.com/gpg/RPM-GPG-KEY-TuxCare-8D50EB66 | sha256sum` and `curl -fsSL https://security.tuxcare.com/gpg/tuxcare-8D50EB66.gpg | sha256sum` must each print the sha256 of its file in the list. To check the key file on a server, compare its sha256 with the list, or its fingerprint with the one above. When a value differs, do not install the key or remove the key file, and [contact TuxCare](/guide/help#help): ``` # RPM: sha256sum /etc/pki/rpm-gpg/RPM-GPG-KEY-TuxCare-8D50EB66 gpg --show-keys --with-fingerprint /etc/pki/rpm-gpg/RPM-GPG-KEY-TuxCare-8D50EB66 # DEB: sha256sum /usr/share/keyrings/tuxcare-8D50EB66.gpg gpg --show-keys --with-fingerprint /usr/share/keyrings/tuxcare-8D50EB66.gpg ``` ### Take only the Radar packages {#only-radar} The key `8D50EB66` also signs TuxCare Radar 1.x and other TuxCare packages, and yum, dnf, and apt accept each package of a repository whose signature checks. So the server takes only the packages that its repository file or apt pin names, and checks the signed repository data. In the repository file, `includepkgs` hides each other package of the repository from yum and dnf, and `repo_gpgcheck=1` makes them refuse repository data that the key did not sign. When you change the repository file, keep the `includepkgs=` and `repo_gpgcheck=1` lines: the rpm keeps a file that you changed, and a new package does not add the lines to it. On Debian and Ubuntu, the apt pin gives each other package of `repo.tuxcare.cloud` the priority -1: apt does not install or upgrade it. The pin also names `tuxcarectl` and `securechain`, the two packages of the TuxCare CLI, because the same host `repo.tuxcare.cloud` serves them: the pin of each product names the packages of every product, so a host with Radar can install `tuxcarectl`, and the order in which apt reads the pin files does not matter (the `tuxcarectl` package writes the same text as its `/etc/apt/preferences.d/tuxcarectl.pref`). An explicit `apt-get install name=version` of a person still passes the pin. ### Know the host value {#host-value} On the first install, the server installs the stable release. The package then writes the host value of the server, once: on an rpm system the yum variable file `/etc/yum/vars/radar3host`, which `$radar3host` of the repository file names; on Debian and Ubuntu the wave form of the apt source, `URIs: https://repo.tuxcare.cloud/radar3/h///`, when the source is the stable form of step 2 byte for byte. An apt source that you changed stays as you changed it. The value is 32 hex digits that the package makes from the machine ID of the server. It is no secret: it names the server to the repository only, and the token stays in the configuration file. The next update reads the wave of the server (see [how a new release reaches your servers](/guide/radar#waves)). On Debian and Ubuntu the package also writes the apt pin above when the server has none, replaces a pin that holds the earlier two-package text byte for byte, and keeps a pin that you changed. A pin that you changed from the earlier text keeps the -1 that its catch-all record gives `tuxcarectl`, unless your change names `tuxcarectl` or changes the catch-all. A purge removes the pin when its text is either of the two texts byte for byte and no apt source names `repo.tuxcare.cloud` any more. ### Keep the owner of the configuration file {#config-owner} The file belongs to root, with the group `radar3` and the mode 0640. The agent runs as the user `radar3`: it reads the file through its group, and it cannot change the file. The file holds the token, and root acts on six of its keys: `cis`, `cis-root`, `cis-level`, `cis-oscap-install`, `send-containers`, and `portal-url`. So only root can change it. The agent warns when each user, or a group other than `radar3`, can read the file. The package sets this owner and mode at each install and update. A file that you put in place later needs the same. For example, a copy of `radar.conf.rpmnew` as root belongs to the group root, and each run stops with exit code 2 ("permission denied"). Each step of the agent that runs as root refuses a file that a user other than root can change, and its error names the fix. The fix, as root: ``` sudo chown root:radar3 /etc/tuxcare-radar3/radar.conf && sudo chmod 0640 /etc/tuxcare-radar3/radar.conf ``` When a configuration tool writes the file for you (Ansible, Puppet), set the owner `root`, the group `radar3`, and the mode `0640` there. Version 3.0.10 and older gave the file to the user `radar3` with the mode 0600. The update from these versions writes the file again as a new file of root, with the same content, and prints one line that says so. Check `portal-url` and the CIS keys of the file once after this update. ### Read the list of the containers {#containers} The list of the containers comes from a root step: the socket of a container runtime gives root on the server, so the user `radar3` joins no group of a runtime. The systemd service and the cron job run `tuxcare-radar3 containers` as root before each run, and the run sends the list that this step wrote. The step reads Docker, Podman, containerd, and CRI-O. It also reads the containerd of k3s and RKE2 at `/run/k3s/containerd/containerd.sock`, so the list of a Kubernetes node of k3s or RKE2 shows its containers with the runtime containerd. For each container, the list has the name, the image reference, the digest of the image, the state (running or stopped), and the runtime. It has no environment, no command, no mount, and no label. The agent does not scan an image. The [**Containers**](/guide/radar-hosts#containers) tab of the host shows the list. A run with `sudo -u radar3` does not run the root step itself, so on a server with systemd, run `sudo systemctl start tuxcare-radar3.service` to send the list with the first scan. A runtime that the step cannot read gives no list, and the run goes on. The step reads `send-containers` only when root alone can change the configuration file (see [the owner of the file](/guide/radar#config-owner)): else it refuses the file, and the run sends no list. ### Fail a script on a finding {#fail-on} To make a script or a CI job fail on a finding, add `--fail-on` with a rating: `tuxcare-radar3 run --wait 5m --fail-on high` exits with code 1 when an open finding is high or critical. A finding with no fix planned, a live-patched finding, and a finding of a kernel that does not run never fail the run. `--output json` writes the summary as JSON. A finding can have a status that this version of the agent does not know: a status that a newer portal sends. The agent cannot judge such a finding, so the run stops with exit code 4 whatever the rating of the finding, as `securechain` does. The error names the status and the findings, and asks you to update `tuxcare-radar3`. With `--on-portal-error warn`, the run goes on with a warning, and `--fail-on` weighs such a finding as open. The summary counts it as open. ### Read the exit codes {#exit-codes} **`0`** : The run did its work, or `--on-portal-error warn` made a portal failure a warning, or the dry run printed the document. **`1`** : An open finding at or above the rating of `--fail-on`. **`2`** : A flag or the configuration file is not correct, or the agent found no package database. **`3`** : No token, the example values, a Radar 1.x configuration file, or a token that the portal refuses. **`4`** : The portal is not reachable, answered with a 5xx or 408 status, gave an answer that the agent cannot read (also a finding with a status that the agent does not know), or did not match the scan in the time of `--wait`. **`5`** : The package database does not read. The agent sends nothing. **`7`** : A fault of the agent itself. ### Run on old systemd and cron {#old-systemd} The schedule of [step 5](/guide/radar#timer) is the schedule on systemd 229 and later, and on the systemd 219 of CentOS 7.9. Before each scan, the service copies the machine UUID of the server (`/sys/class/dmi/id/product_uuid`, which only root can read) for the agent, so a cloned virtual machine stays a host of its own. systemd before version 229 has no random delay. The systemd 219 of CentOS 7.9 is an exception: it has the random delay from a backport, and `systemctl show -p RandomizedDelayUSec tuxcare-radar3.timer` shows `4h`. On a server whose systemd has no random delay, the package gives the server fixed random values of its own: a time of day between 00:00 and 04:00 for the daily scan, in `/etc/systemd/system/tuxcare-radar3.timer.d/10-random-time.conf`, and a wait after the boot of 15 minutes plus 0 to 4 hours, in `/etc/systemd/system/tuxcare-radar3.timer.d/20-boot-delay.conf`. The package writes each value one time, at the install or at the first upgrade that has it, and keeps it after that. On a server whose systemd has the random delay, the package writes no such file. After an in-place upgrade of the OS to systemd 229 or later, for example CentOS 7 to AlmaLinux 8 with leapp, and on CentOS 7.9, the next install or upgrade of the package removes `10-random-time.conf` and `20-boot-delay.conf` when you did not change them. It keeps a file that you changed. The cron job of a server with no systemd runs each day, and one time after each boot: its `@reboot` line waits 15 minutes. Each run then waits a random time of up to 4 hours. The cron job runs as root to copy the machine UUID for the agent, then runs the agent as `radar3`. The portal needs the machine UUID or a machine ID to know the server, and a minimal CentOS 6 server has no machine ID. The log goes to syslog with the tag `tuxcare-radar3`. ## Next {#next} - [Read a host](/guide/radar-hosts): the facts, the findings, KernelCare, and the TuxCare support of a host. - [Alerts](/guide/alerts#alerts): get an email, a Slack message, or a webhook call for a new finding. - [Invite users](/guide/admin#users) to the workspace. --- # Read a host URL: /guide/radar-hosts The page of a host tells you what the server runs, which TuxCare support covers it, and which vulnerabilities are open. KernelCare and the TuxCare Extended Lifecycle Support change what counts as open. ## The Hosts page {#hosts} The **Hosts** page lists the servers of the workspace, one row each: the criticality of the server, the operating system and its release, the TuxCare support of the server, the kernel, the open vulnerabilities by severity, and the time of the last scan. A grey **Unrated** chip counts the open vulnerabilities that have no rating yet, often a recent CVE that the vendor or NVD has not scored. The cards at the top count the hosts, the hosts under TuxCare support, the hosts past the end of the vendor's support, and the open and the known-exploited vulnerabilities. Type in the search field to find a host by name, or select a department. Select a host to open its page. When TuxCare and the vendor publish no security advisories for the release of a host, the portal cannot check its packages. The row then shows "Not evaluated" and the release, for example "centos-8 (no advisory data)", and the **Vulnerabilities** card counts the host as not evaluated. The row can also name a package type that the portal did not check, for example "rpm packages (not checked)" on a host of Fedora 40, Amazon Linux 2023, or Photon 5, whose advisories the portal does not read; the card counts such a host as not evaluated too. Such a host is not clean, also with no open vulnerability, and it cannot get grade A. Its packages show "not assessed", not "covered". When advisories for the release arrive, the next check of the host evaluates it. If the mark stays on a release that TuxCare supports, [contact TuxCare](/guide/help#help). The agent can send tags for a server ([`tags`](/guide/radar#config)). Each row shows the tags of its host. To show only some hosts, select a tag in the **any tag** list. Add more tags to keep the hosts that hold every tag. Select the ✕ of a tag to remove it from the filter. To show only the hosts of one [criticality](/guide/radar-hosts#criticality), select it in the **any criticality** list. The page address keeps the filters, so you can share a filtered list. Select the **Criticality** heading to sort the most critical hosts first. To group the hosts by operating system, select the **OS** heading: the hosts of one release come together. The page has no list of operating systems; the [API](/guide/api#api-examples) keeps the hosts of one release with `?os=`. ## The facts of a host {#facts} The top of the page shows the criticality of the host and the facts of the newest scan: **Criticality** : How critical the server is, and where the value comes from (see [Criticality](/guide/radar-hosts#criticality)). It shows also before the first scan is matched. **Operating system** : The distribution, the release, and the platform, for example `almalinux-9.2` on `x86_64`. **Support** : The TuxCare support of the server: **TuxCare ESU** (Enterprise Support), **TuxCare Essential Support**, or **TuxCare ELS** (Extended Lifecycle Support). ESU and Essential Support servers have the same TuxCare release file, so the portal reads the packages too. On a release that ESU covers (AlmaLinux 9.2, 9.6, 9.8, or Rocky Linux 9.6), a server shows **TuxCare ESU** only when it runs at least one TuxCare build of a package (its release holds `.tuxcare.`, for example `expat-2.5.0-6.el9_8.7.tuxcare.els2`); else it shows **TuxCare Essential Support**. A new ESU server therefore shows Essential Support until it installs its first ESU update, and ESU from the next scan after it. On each other release of AlmaLinux or Rocky Linux, a server that declares ESU shows Essential Support. A server with none, which has no TuxCare release file, shows **Community** and the end of the vendor's security support, also when that support has ended. A RHEL server with none shows **No TuxCare licence**: it can have a Red Hat subscription, and the portal cannot tell. **Kernel** : The kernel that the server booted. With KernelCare, also the effective kernel: the kernel version that the live patches give. When the effective kernel is the booted kernel, the release shows once. Without KernelCare, when a newer kernel that the server can boot is installed (a kernel image, not only its headers or modules), the **Hosts** list says "reboot needed" under the kernel and names the installed one. **Tags** : The tags that the agent sent for the server, when it sent any. **IPv4, IPv6** : The addresses of the network interfaces of the server, each once, when the agent sent them ([`send-addresses`](/guide/radar#config)). The [privacy notice](https://sc.tuxcare.cloud/privacy#radar) lists the data that the agent sends and what Pulse uses it for; `tuxcare-radar3 run --dry-run` on the server prints the document and sends nothing. **Sent from and agent** : The address that the scan came from, and the version of the agent. Behind NAT or a proxy, this address is the address of the NAT or the proxy, not the address of the server. When the agent is older than the newest Radar release, the agent line says "older than" and names that release: [update the agent](/guide/radar#update). **Last scan** : The time of the newest scan. The date turns amber after 14 days without a scan, and red after 30 days. ## Criticality {#criticality} Each host has a criticality: **Low**, **Normal**, **High**, or **Critical**. Give your internet-facing database servers a high value, and your test machines a low one. The value comes from one of three places: 1. **By hand.** On the page of the host, select a value in **Hand value**, next to **Criticality**. You need the member role or the admin role on the host. A value set by hand wins over every tag rule. Select **Not set: use the tag rules** to remove it. 2. **A tag rule.** An admin adds the rules under [**Settings** › **Workspace**](/settings/workspace) › **Host criticality rules**: a tag and a value, for example `env=prod` is **High**. Every host with the tag gets the value. When a host has the tags of two rules, the higher value applies. Select **Change** to change the tag or the value of a rule, and **Remove** to remove it. A workspace can have one rule for each tag, and at most 200 rules. 3. **The default.** A host with no hand value and no rule is **Normal**. The page of a host names the source: "Set by hand", the tag of the rule, or the default. The **Hosts** list shows **By hand** or **Tag rule** under the value; a host with the default shows the value alone. The criticality orders the lists of **Vulnerabilities**, **Remediation**, and the **Overview**: of two findings with the same rating, the finding on the more critical host comes first. The criticality never lifts a finding above a worse rating or above a known-exploited finding of the same rating. The rating comes first in each of these lists: critical, high, medium, low, then no rating. A known-exploited finding comes first inside its rating, but never above a worse rating: a known-exploited medium comes after every critical and high. ## The vulnerabilities of a host {#findings} The **Findings** tab of a host shows one row for each vulnerability. A row lists the source packages and kernel builds that it affects; a count opens the binary packages of each. One kernel CVE on seven kernel packages is one row. The severity buttons above the table count the open rows: a row that is fixed, that TuxCare will not fix, that TuxCare is investigating, that TuxCare has not assessed, that is on a kernel that does not run, or that your team ignored in triage, is not open. The **Fix** column says what to do: - A version: install that version or a later one. The badge names the TuxCare line that ships the fix, when TuxCare ships it. - **no fix yet**: no build fixes the vulnerability yet. - **TuxCare will not fix**: TuxCare decided not to fix it on this release. The row quotes the reason. It is not open and sends no alert. - **TuxCare is investigating**: the VEX of TuxCare calls the installed TuxCare build under investigation, and nothing else judges it. TuxCare has not decided yet. It is not open, sends no alert, and has no fix to install. See the end of this section. - **Not evaluated: TuxCare has not assessed this build**: see the end of this section. It is not open and not clean, and it sends no alert. - **live-patched by KernelCare** or **live-patched by LibCare**: see [KernelCare](/guide/radar-hosts#kernelcare). - **fixed in the installed kernel** or **restart**: the fix is installed, but the server does not run it yet. See [Restart and reboot](/guide/radar-hosts#restart). The table lists the worst rating first: critical, high, medium, low, then no rating. Inside one rating, the known-exploited rows come first, then the higher score, and a row with no score comes last. The rating is the rating for the release of the host, and the score is the CVSS score of the advisory, so a critical row can have a low score. To sort the table by another column, select its heading. The export always has its rows in this order, not in the order of the column that you selected. To save the vulnerabilities of the host, use **Export** above the table. With no filter set, the file has every vulnerability of the host; with filters, it has the rows that the filters show, every row and not only the page. The file has more columns than the table: the score, the known-exploited sources, the fixed version of each package, the triage, the first sighting, and the other names of the advisory. **XLSX** has a filter on each column, and a second sheet, **About**, that names the host and its facts as the PDF cover does (its operating system, support, kernel, addresses, tags, agent, and the customer case or import of a host imported from a file), the scan, the filters, and the time of the export. **CSV** has the rows only. **PDF** opens the report as a page to print: a cover page with the host (its operating system, support, kernel, addresses, tags, and agent) and the counts of each severity, then the list of the open vulnerabilities. A vulnerability that is fixed, by a TuxCare build, by KernelCare, or by LibCare in every package it affects, that TuxCare will not fix, that TuxCare is investigating, that TuxCare has not assessed, or that your team ignored in triage, is counted on the cover but not listed. When LibCare patched only some of its packages, the list shows the packages that are still vulnerable. Select **Cover page only** to print the cover alone. Select **Print or save as PDF**, then "Save as PDF" as the printer. At the top of the page, **SBOM** downloads the package list that the agent sent, as CycloneDX, and an admin selects **Rename** or **Delete host**, or **Departments** to set the departments of the host when the workspace has departments. **Delete host** asks first, then removes the host with all its scans, findings, and triage, and the tokens scoped to it. You cannot undo it. When the agent of the host sends a scan again with a workspace token, the host comes back as a new host with no history. An agent that used a token scoped to this host needs a new token. The [API](/guide/api#api-examples) gives the same files. Select a row to open the finding: the advisory, the severity, the packages, and the statements of TuxCare about the CVE. [Triage](/guide/findings#triage) a finding that does not apply to the server. To ignore a CVE on every host, an admin adds a [suppression rule](/guide/findings#suppress). When the VEX of TuxCare calls the installed TuxCare build under investigation, the finding shows **TuxCare is investigating**. TuxCare has not decided yet whether the build is affected. When nothing else judges the build, the row shows **TuxCare is investigating** in the **Fix** column, and the count above the table names these rows apart. Such a row is not open: it has no fix deadline, it does not count in the grade, and it sends no alert. The **Status** column of the XLSX and CSV files shows "TuxCare is investigating", and the [VEX file](/guide/releases#vex) of a release never calls it affected. Before this status, such a row was open with no fix. A finding that goes from open to **TuxCare is investigating** does not close: the remediation numbers do not count it as fixed (see [Remediation](/guide/findings#remediation)). When TuxCare decides, the row takes that status: a TuxCare advisory that fixes the CVE in the installed build, or in an earlier build of the package, closes it, and a statement that the build is affected makes it open. A finding that goes from **TuxCare is investigating** to open sends its alert. The panel **New in the last 7 days** of the Overview and the alerts of the API list it from that day, not from the day that TuxCare started to investigate. A row stays open when another statement keeps it open, for example a TuxCare advisory that fixes the CVE in a later build. `tuxcarectl` does not list these rows, and they do not change its exit code. TuxCare publishes a new build before its VEX names that build. When the VEX of a CVE does not name the installed TuxCare build, Pulse takes the status of the newest earlier TuxCare build of the same version that the VEX names: a TuxCare build holds every fix of the earlier builds. The finding then shows **Status inferred**, and its page names the build that the status comes from. A fix in an earlier build always wins: the installed build is then fixed. When the VEX names no earlier TuxCare build of the same version, and no fix in the installed build or an earlier one, Pulse cannot tell the status. The row then shows **Not evaluated: TuxCare has not assessed this build** with **Status inferred**. Such a row is not open and not clean: it has no fix deadline, and it does not count in the grade. The **Status** column of the XLSX and CSV files shows "Not evaluated: TuxCare has not assessed this build", and the [VEX file](/guide/releases#vex) of a release never calls it affected. When the VEX names the build or a fix, the row takes that status. With CLI 0.1.99 or later, `tuxcarectl image submit` shows these CVEs too: one warning with their count, and each package and CVE in `vulnerabilities.source.not_evaluated_findings` of `--output json` (with `--output markdown`, a "Not evaluated" paragraph in place of the warning). They do not change its exit code (see [Choose the gate](/guide/ci-gates#gate-not-evaluated)). A finding that goes from **Not evaluated** to open counts as a new finding. It sends its alert. The filter **New in this scan** keeps it. A finding that goes from open to **Not evaluated** closes: the remediation numbers count it as fixed (see [Remediation](/guide/findings#remediation)). ## Containers and local images {#containers} The **Containers** tab of a host lists the containers on the server and the images that its container runtimes hold, as the agent saw them in the newest scan. The list needs an agent that sends it. A server with no list says so. The running containers come first, then the stopped ones. Each row names the container, its state, its runtime, and its image. The **Scan** column connects an image to a scan that the portal already has, from your CI or from the registry scan. The portal compares the digest of the image, not its tag, because a tag can move. When a scan of that digest exists in the workspace and you can see the image, the column links to the image at that scan and shows its open findings. Else the column says **Not scanned**. This does not mean that the image is safe: the portal has no data about it. A TuxCare Radar workspace holds hosts only, so each of its images says **Not scanned**. A container uses the kernel of the host, so the kernel packages inside an image do not apply. The counts of this tab leave out a finding that reaches only such packages, and a line under the counts says how many it left out. The page of the image still lists them. When the portal cannot read the list of a scan, the tab shows the reason. The packages of the scan are not affected. ## KernelCare {#kernelcare} KernelCare patches the running kernel with no reboot. When KernelCare runs on the server, the agent sends its state: the effective kernel, and the CVEs that the loaded patches fix. - The portal judges the kernel packages at the effective kernel version, not at the booted version. A server with KernelCare and no patch loaded has no effective kernel, so the portal judges it at the booted version. - A kernel CVE that a loaded patch fixes shows **live-patched by KernelCare**. It is not open, sends no alert, and does not fail a gate. - The badge **KernelCare** on the host and on the Hosts page counts the CVEs that the patches fix. - When KernelCare has released a newer patch for the server's kernel to the server's patch source (its ePortal, or KernelCare's own server), the **Kernel** line says so: "KernelCare level 43 is released for this kernel; this host runs level 42". Run `kcarectl --update` on the server; with an ePortal, sync the ePortal's feed first. A CVE that the newer patch fixes shows **KernelCare level 43 live-patches it**. A patch that is not released to the server's patch source is not shown, nor is one that fixes no listed CVE and leaves the kernel at the build it runs. Radar 3.0.7 or later sends what this needs. The line also shows for a server with KernelCare and no patch loaded (live patching off, or the ePortal out of reach): it says that this host runs level 0. For this case the server needs a Radar release after 3.0.10. - A package that is built from the kernel source but is not the running kernel, for example `kernel-tools`, is judged at its installed version. - The portal keeps one finding for each advisory and kernel build. The finding shows the state of the kernel image, and it lists the other packages of that build, such as `kernel-modules`. LibCare patches shared libraries, for example `openssl` and `glibc`, in the running processes. A CVE that LibCare's patches fix, on a package built from a library that LibCare patches, shows **live-patched by LibCare**. It is not open, sends no alert, and does not fail a gate. When a CVE is on two libraries and LibCare patches one of them, for example `openssl` but not `openssl11`, the row stays open and names the patched library. The package on the disk still carries the CVE: update it when you can. ## Update an OS package {#os-fix} The page of a vulnerability on a host shows **How to fix**. When a fix exists for an OS package, the card gives the update command of the package manager of the server, with the binary packages of the finding: ``` sudo yum update nettle nettle-devel # rpm, every Enterprise Linux release sudo apt-get update && sudo apt-get install --only-upgrade libc6 libc-bin # deb sudo apk upgrade --update-cache musl # apk ``` The deb and apk commands read the package index first. With an old index, the package manager can answer that the package is already the newest version and install nothing. A fixed Debian or Ubuntu kernel is a new package with a new version in its name, so the update of the old name installs nothing. For a kernel, the card gives a command that updates the kernel meta package of the server, for example `linux-image-amd64` or `linux-image-generic`: ``` sudo apt-get update && sudo apt-get install --only-upgrade 'linux-image-*' ``` A server that has no such meta package gets no new kernel from this command. Install the newer kernel package by its name. Two lines can follow the command: - **Install it from the TuxCare repository**: the fix is a TuxCare build. See [TuxCare ELS and ESU](/guide/radar-hosts#els). - **Reboot after the update**: the package is a kernel, or a package of its modules. A package that is built from the kernel source but is not part of the kernel that runs, for example `kernel-tools`, needs no reboot. See [Restart and reboot](/guide/radar-hosts#restart). The card gives no command when the fix is already installed and only a reboot or a restart is left, and for an installed kernel that the server does not run. A package name with characters that are not safe in a command gets no command: the name comes from the scan, and you run the command with `sudo`. ## Restart and reboot {#restart} An update fixes the files on the disk. A program that started before the update still runs the old code until it restarts, and the old kernel runs until the server reboots. Until then the server can still be attacked through the vulnerability, so the row stays open: it counts in the totals and the grade, and it can fail a gate. - **fixed in the installed kernel; a reboot closes it**: the server runs an older kernel than the newest one installed, and the newest one fixes the vulnerability. On a server with KernelCare, the running kernel is newer than its live patches, so a later KernelCare patch can close it too, with no reboot. - **restart** followed by service names, for example `restart sshd.service and crond.service`: those services still use a library or a program that an update replaced. Restart them. Without a name, restart the programs that use the updated package, or reboot. On a server without KernelCare, the facts of the host count the vulnerabilities that a reboot, and a restart of the services, would close, and name the installed versions that fix them. The line **Restarting … would close N CVEs** names only the services whose restart closes an open vulnerability: a service that runs an old copy of a package whose update fixed no open vulnerability is not named. The login sessions of a user (the unit `user@.service`) show as **the login sessions of UID N (log out and in again)**, after the services: there is no service to restart, so the user logs out and logs in again. On a server with KernelCare, the **Kernel** line names the newest installed kernel when it is newer than the running one and is not the kernel that KernelCare already runs, and the rows say the rest. KernelCare applies kernel fixes to the running kernel, and LibCare applies `glibc` and `OpenSSL` fixes to running programs, with no reboot and no restart. A vulnerability that they patched shows **live-patched**. The portal never suggests a reboot into a kernel older than the one KernelCare runs, or a restart onto a library older than the one LibCare runs; when the live patches are ahead of the installed versions, the facts say that no reboot is needed. The agent finds the services as root, before each scan, from the systemd service or the cron job. A run started by hand as another user sends what the last root step found. ## TuxCare ELS and ESU {#els} A server under TuxCare Extended Lifecycle Support (ELS) or Enterprise Support (ESU) takes its security updates from TuxCare. For such a server the portal reads the advisories and the VEX statements of TuxCare first: - A CVE that TuxCare fixed shows the TuxCare build that fixes it. Install that build from the TuxCare repository. - A CVE that TuxCare says never affected the package of the release is not a finding. - A CVE that TuxCare still investigates on the installed build shows **TuxCare is investigating**. It is not open (see [TuxCare is investigating](/guide/radar-hosts#investigating)). A TuxCare advisory that fixes it in a later build, or a statement that the build is affected, keeps it open. - The vendor's advisory answers only the CVEs that TuxCare did not publish. A vendor fix that shipped only for a later minor release is not shown as a fix for the server. - The severity follows TuxCare's CVE tracker, for example **High 7.5**: the CVSS score of NVD or of the CVE record (its CNA or an ADP), else the score or the word of TuxCare's VEX statement for the release of the host. Point at the severity to see who gave it. A server with no TuxCare support is judged by the advisories of its vendor. So is a server under TuxCare Essential Support. On such a server, when the vendor's advisory fixes the CVE in the installed vendor build, or in an earlier build of the package, a TuxCare statement that lists that build as affected does not make it a finding. When its release is past the end of the vendor's support, the Hosts page counts it under **Past end of life**: nothing patches it until it gets TuxCare support or a new release. ## CIS compliance {#cis} Each host checks itself against the CIS benchmark of its system. The agent runs OpenSCAP (`oscap`) on the host with the CIS Level 1 or Level 2 Server profile of ComplianceAsCode, and sends the result of each rule with each scan. OpenSCAP decides whether each rule passes; the portal stores and shows the results. The checks cover AlmaLinux 8, 9, and 10, Red Hat Enterprise Linux 8, 9, and 10, Oracle Linux 9, CentOS 7 ELS and CentOS 8 ELS, Amazon Linux 2 ELS, Debian 11, 12, and 13, and Ubuntu 20.04, 22.04, and 24.04. Ubuntu 20.04 checks with the last ComplianceAsCode rules of Ubuntu 20.04, which follow the CIS Ubuntu Linux 20.04 LTS Benchmark 1.0.0: CIS publishes version 3.0.0, and the result names 1.0.0. ComplianceAsCode has no CIS profile of Debian 11, so Debian 11 checks with the rules of Debian 12, and its result names the CIS Debian Linux 12 Benchmark. The checks of Debian 11 and Ubuntu 20.04 need tuxcare-radar3 3.0.10-3 or later. CentOS 7 ELS checks the CIS Red Hat Enterprise Linux 7 Benchmark 4.0.0 with the last ComplianceAsCode rules of Red Hat Enterprise Linux 7. ComplianceAsCode has no rules of Amazon Linux 2, so Amazon Linux 2 ELS checks the CIS Amazon Linux 2023 Benchmark 1.0.0, and its result names that benchmark: a recommendation that only the CIS Amazon Linux 2 Benchmark has is not checked. - The checks are off by default. Only root turns them on. To turn them on, as root: 1. Set `cis: true` and `cis-root: true` in `/etc/tuxcare-radar3/radar.conf`. Optionally set `cis-level: 1` to check Level 1 only; the default, `2`, checks Level 2, which holds the Level 1 rules. 2. Run `/usr/share/tuxcare-radar3/cis-setup` as root. It installs `oscap` for you (tuxcare-radar3 3.0.10-5 or later; on Debian 11 and Ubuntu 20.04, 3.0.10-6 or later): - AlmaLinux, Red Hat Enterprise Linux, Oracle Linux, and CentOS 8 ELS: the package `openscap-scanner` of the vendor, with `dnf`. - Debian 11, 12, and 13, and Ubuntu 20.04, 22.04, and 24.04: the TuxCare package `tuxcare-openscap-scanner`, with `apt-get`. CentOS 7 ELS and Amazon Linux 2 ELS: the same package, with `yum`. It is the TuxCare build of OpenSCAP 1.4.6, at `/opt/tuxcare/openscap/bin/oscap`, next to the package of the system. It comes from the package repository of tuxcare-radar3, so a Debian or Ubuntu host needs the apt source of that repository. The configuration file belongs to root, with the group `radar3` (see [the owner of the file](/guide/radar#config-owner)), so the agent cannot turn the checks on. `cis-setup` and the CIS units refuse a configuration file that a user other than root can change: they install nothing and run no `oscap`, and the error names the fix. The update from tuxcare-radar3 3.0.10 and older installs no new CIS unit from the keys of the file: when `cis` and `cis-root` are on and the host has no CIS unit yet, the update prints the keys to check and the command. Read the file, then run `/usr/share/tuxcare-radar3/cis-setup` as root. A host that has the CIS unit already keeps it. After an upgrade of the system in place, for example Ubuntu 22.04 to 24.04, the next run of the agent gets the data stream of the new system: the host does not wait for the next content release to get its CIS result again. The package of tuxcare-radar3 runs `cis-setup` after each install and upgrade. The unit `tuxcare-radar3-cis-install.service` then installs `oscap` before the next run, and checks it before each run. The agent runs the TuxCare `oscap` when it is there, else the `oscap` of the system. Until TuxCare publishes the package `tuxcare-openscap-scanner` in the package repository of tuxcare-radar3, its install fails, and the agent runs the `oscap` of the system, if the host has one: install `openscap-scanner` (`yum install openscap-scanner`, or `apt install openscap-scanner`), or `libopenscap8` on Ubuntu 20.04 and 22.04, before you run `cis-setup`. Debian 11 has no package of `oscap`. When the install fails, or the `oscap` of the host is older than the oldest version of its system, the host's page gives the reason, and the agent tries the install again before the next run. For a host whose packages you manage, set `cis-oscap-install: false` in `radar.conf`, run `cis-setup` again, and install `oscap` yourself: `dnf install openscap-scanner`, `yum install tuxcare-openscap-scanner`, or `apt-get install tuxcare-openscap-scanner`. On a host whose `tuxcare-openscap-scanner` is older than 1.4.6-2, `cis-setup` also upgrades it (the package tuxcare-radar3 3.0.14-6 or later): a security fix of the package kept the version of `oscap`, so `oscap` 1.4.6 alone does not tell the two builds apart. The CIS result names the package `tuxcare-openscap-scanner` and its release, and the run warns while the package stays older. The OpenSCAP unit runs as root with one capability: it reads the files that only root reads, and it has no network. Only the result of each rule leaves the host, never a value that OpenSCAP reads. - **CIS compliance** in the top bar shows each host with its compliance, the lowest first, and the rules that fail on the most hosts. Choose **Level 1** or **Level 2**. - **CIS compliance** on a host's page shows the host's rules: the compliance and the counts, the trend over the runs, and each rule with its CIS ids, its status, and the reason. **Details** shows why the rule matters and how to fix it. - A rule is **Pass**, **Fail**, or **Manual**: OpenSCAP did not pass or fail it. A manual rule shows the result of OpenSCAP: **Not applicable** (the rule does not apply to the host, for example a rule of a machine on a container), **Not checked** (the rule has no automated check), **Error**, **Unknown**, or **Informational**. A person checks a manual rule. The compliance is the passed rules of the passed and failed rules: a manual rule is not a failure. - A rule can show **Known false result** with a note: OpenSCAP gives a result that is known to be wrong for a reason that is not a fault of the host. The rule keeps the result that OpenSCAP decided, and counts with it. On CentOS 7 with SELinux in enforcing mode, `selinux_confinement_of_daemons` always fails: the OpenSCAP unit of the agent runs in the SELinux domain that the rule looks for. Check the other daemons with `ps -eZ | grep unconfined_service_t`. The `oscap` packages of Debian 12, Debian 13, Ubuntu 22.04, and Ubuntu 24.04 give some wrong results: a pass of `package_telnet_removed` on a host with `inetutils-telnet`, and an error of the rules with a script check, for example `no_files_unowned_by_user`, when `/tmp` is mounted `noexec`. With the TuxCare `oscap` (1.3.13 and later), `package_rsh_removed` fails on Ubuntu 20.04, Ubuntu 22.04, and Debian 11 when `rsh-client` is not installed: the package `openssh-client` of these systems provides `rsh-client`. Check the host with `dpkg-query -s rsh-client`. On Debian 11, `package_pam_modules_installed` and `package_pam_runtime_installed` always fail: the agent checks Debian 11 with the data stream of Debian 12, and these rules ask for a version of the package that only Debian 12 has. On Amazon Linux 2, five rules always give a wrong result, for example `configure_crypto_policy` fails because Amazon Linux 2 has no system crypto policy. The results of the `faillock`, `pwhistory`, and `sshd` rules can be wrong when a setting is in a file that Amazon Linux 2 does not read, for example `/etc/ssh/sshd_config.d`. The note of each rule says how to check the host. - A host can show **Old OpenSCAP** or **Old content**: its CIS check tools are out of date, and a result can be wrong or old. The CIS page of the host, the PDF report, and the list of **CIS compliance** show the flag with the reason and the fix; on the list, select **Only the hosts with out-of-date check tools** to see only these hosts. - **Old OpenSCAP**: the `oscap` of the host is older than the minimum of its system. On Debian, Ubuntu, CentOS 7 ELS, and Amazon Linux 2 ELS the minimum is OpenSCAP 1.4.6, the TuxCare package `tuxcare-openscap-scanner`: the packages of these systems are old and give some wrong results. `cis-setup` installs the TuxCare package when `cis-oscap-install` is on. On AlmaLinux, Red Hat Enterprise Linux, Oracle Linux, and CentOS 8 ELS the minimum is the `openscap-scanner` package of the current minor release of the system (1.3.14 on version 8 and 9, 1.4.4 on version 10): run `dnf update openscap-scanner`. - **Old content**: the host checked with a content of ComplianceAsCode that is not the current release of the portal, and that release has been current for more than 3 days. The agent gets the content from the portal at each scan, so a host that stays behind has a fault: an agent that does not get the content (update `tuxcare-radar3`), no connection to the portal, or a content that the OpenSCAP unit refused (its signature does not verify: see the log of `tuxcare-radar3-cis-oscap.service`). - The agent gets the CIS content from the portal before each scan, and checks its signature. When it cannot get or verify the newest content (no connection to the portal, or a content that the agent refused), the scan uses the last good content of the host, and the CIS page of the host, the details of each rule, and the PDF report say **The scan used the last good content** with the reason. The results are of that content, and the page names its content release. - When a rule that passed in the previous run of a host fails in the new run, the workspace gets a **CIS drift** alert: one message for the run, with each such rule, why it matters, how to fix it, and a link to the CIS page of the host. The alert compares only runs with the same content, level, and scanner version: the first run of a host, the first run after a new content, level, or scanner version, and a rule that was manual before send no alert. The CIS page and the PDF report of the host then say what changed and how many rules changed their result. The next run with the same content alerts as before. An admin turns the alert off under [Notifications](/guide/alerts#alerts). - **PDF report** on either CIS page opens a report to print or to save as a PDF: in the print dialog of the browser, select **Save as PDF** as the printer. The report of a host has a cover with the host, its system, the benchmark and the level, the time of the run, the compliance, and the pass, fail, and manual counts; then each rule, failed rules first, with its result, why it matters (the rationale), and how to fix it. Select **Passed rules with no text** for a shorter report. The report of the hosts has the totals of the level, the compliance of each host, and the rules that fail on the most hosts with their rationale and fix. The report takes the level that you chose on the page. **Cover page only** prints the first page only. - When the host sent no OpenSCAP result (for example, `oscap` is not installed), or the portal cannot read it (for example, the agent is newer than the portal), the host's page says why and shows the results of the last run that had them. The scan of the packages is not affected. OpenSCAP and the rules of ComplianceAsCode (BSD-3-Clause) judge the checks, and the text of each rule comes from ComplianceAsCode. The portal does not show the text of the CIS benchmark itself. The content of Debian 13 names no CIS id, so its rules show no CIS id. ## Export and import scans {#export} A host's scan can move to another portal: to a colleague's test portal, or to TuxCare support. What moves is the document the agent sent. The other portal matches it again against its own data, so its rows can differ where its data differs. Triage, notes and history stay behind. - **Export scan** on a host's page exports its newest scan. **Export scans** on the Hosts page exports the newest scan of every host of the list: narrow the list with the search, the tags or the department first. - An export is always encrypted with a passphrase. The dialog makes one, for example `7fqk-2m9x-c4hd-r8wz-k1tb-6pne`; you can type your own of 20 to 128 letters, digits and punctuation, with no space. Send the passphrase by another channel than the file: a chat message or a call, not the same email. The portal does not keep it. - The file opens with `gpg -d scans-2026-11-01.zip.gpg > scans.zip`, and another portal imports it as it is. - **Import scans** on the Hosts page takes an export with its passphrase, a file of `tuxcare-radar3 run --dry-run --encrypt` with its passphrase, a host's document written by `tuxcare-radar3 run --dry-run > host.cdx.json`, or a file that `gpg -c` encrypted. The dialog names the largest file this portal takes; a bigger file is refused before the upload, and the server answers the same message. A member or an admin imports. An imported host shows **Imported**; an imported scan sends no alert. No agent token sent an imported scan, so the line under the host name names no sender. When an agent of this portal later sends the same scan, the line adds **last run** with that agent's token and CLI version. A customer whose host is not on a portal (it cannot open outbound HTTPS, or it is air-gapped) sends us its scan this way: 1. On the host, the customer runs `sudo tuxcare-radar3 run --dry-run --encrypt` (`tuxcare-radar3 run --help` lists `--encrypt` in the Radar releases after 3.0.7-2). Radar reads the packages, sends nothing, and writes the encrypted file `tuxcare-radar--.zip.gpg` in the current directory. It prints the file name, the size and a generated passphrase. 2. The customer sends the file and the passphrase by different routes: the file by email, the passphrase by phone or chat. The file goes by email only, not as an attachment of a support ticket: the ticket system is not yet a subprocessor of the TuxCare Pulse Data Processing Addendum. 3. You import the file with its passphrase into a customer case (below). The file is the same encrypted zip as an export, so `gpg -d` opens it too. Do not ask for the plain `--dry-run` output by email: it is plain text with the host's packages, kernel, addresses and tags. ## Customer cases {#cases} To look at a customer's problem, import the customer's scan into a *customer case*, not among your own hosts. The case's label names the customer's company and the ticket, for example "Example Ltd / TKT-1234"; do not put a person's name in it. - A case's hosts carry the badge **Customer: Example Ltd / TKT-1234** and a banner on their page, with who made the case, when, and its purge date. The line under the host name gives who imported the scan shown, when, and from which file, in place of the agent's token. The Hosts page lists them under **customer cases** only. - They are left out of the dashboards and the other views of the workspace, they send no alerts, and a viewer does not see them. - A case is purged 30 days after it was made: every host, scan, finding and triage row of it is deleted. **Settings › Customer cases** lists the cases with their purge dates, keeps a case 30 more days, or purges it now. The audit log records the purge by the case's number, without the label or the hosts. - The portal cannot purge a copy outside it: delete the file and the email that carried it once the file is imported. A database backup keeps a purged case until the backup is rotated out. When you report wrong advisory data to TuxCare, TuxCare support may ask for the host's scan: export it as above. --- # Workspace and users URL: /guide/admin Create the workspace, manage its users, keep the legal name of the organization, and choose what the workspace shares with TuxCare. ## Create a workspace {#start} 1. Go to [sc.tuxcare.cloud](https://sc.tuxcare.cloud/) and select the button of your sign-in provider, for example **Continue with Google**, **Continue with GitHub**, or **Continue with Microsoft**. 2. On **Your workspaces**, type a name in **Workspace address**. The name becomes the address of the workspace, for example `acme.sc.tuxcare.cloud`. 3. Type the name of your company or other legal entity in **Legal name of your organization**. If you use TuxCare Pulse for yourself, type your own name. 4. Read the TuxCare Pulse agreements, and select the box to accept them. 5. Select **Create workspace**, then **Open**. You are the first admin. 6. [Invite your team](/guide/invite), and send the first scan: see [Get started](/guide/start). ![The page Your workspaces, with one workspace, one invitation, and the open form Create your workspace.](/guide/img/workspaces.png) The page **Your workspaces**, with the form that creates a workspace open. 1. The workspaces that you can open. Select one to go to it. 2. Your invitations. Open one only if you expect it. 3. The address of the new workspace. 4. **Create workspace** makes the workspace. ### Workspace name rules {#names} - 3 to 40 characters: lowercase letters, digits, and hyphens. No hyphen at the start or at the end. - The name cannot start with `xn--`, and characters 3 and 4 cannot be `--`. - Some names are reserved, for example `www`, `api`, `auth`, `admin`, and `status`. - Each name is unique. If another workspace has it, the page shows "subdomain is in use". ## Users {#users} To invite a person, see [Invite your team](/guide/invite). Open [**Settings** › **People**](/settings/people). The list **Users** is at the top. Each user has one role for the whole workspace: admin, member, or viewer. [Roles](/guide/invite#roles) lists what each role can do. - **Allowed sign-in providers:** under [**Settings** › **Access**](/settings/access) › **Sign-in**, select **Edit** under **Allowed sign-in providers**, select the providers that people can sign in with (for example only Google), and select **Save**. A sign-in through another provider is refused, and the message names the allowed providers. The list must keep the provider that you signed in with, so you cannot lock yourself out. A single sign-on provider that the list names cannot be removed: take it off the list first, so that the list never names a provider that does not exist. **Allow every provider** removes the limit. A person who is signed in keeps the session until it ends. The list also holds for the CLI browser login (`tuxcarectl auth login`): a provider that the list refuses gets no CLI token. The CLI browser login goes through the TuxCare sign-in, so a list with only single sign-on providers refuses it, and the people of such a workspace use an access token. A token that exists keeps working until it ends: to stop it, revoke it under [**Settings** › **Access**](/settings/access) › **Access tokens**. The use of a token is not a sign-in, so the list does not limit it. The portal does not check the second factor (MFA): the provider does. To require MFA, allow only providers that enforce it, for example Google with 2-Step Verification turned on for your Google Workspace. - **Name:** select **Edit name** on the row of the user, type the name, and select **Save**. The lists of the workspace (the users, the departments, the access tokens, the badge grants, and the audit log) show the name next to the email, so that people can find a person by name. A name is plain text on one line, of at most 200 characters. An empty name removes the name, and it stays removed: no sign-in fills it again. The audit log records each save (`user.name`) with the old and the new name. When a user has no name and it was not removed, the next sign-in takes the name of the profile at the provider: a single sign-on provider of the workspace, or Google, GitHub, or Microsoft through the TuxCare sign-in. A sign-in never replaces a name that a person set, and a name that came back after a removal without the member or an admin setting it again comes off at the next sign-in — the audit line of that removal names `the sign-in` as its actor, not the member. Each person can also set their own name under [**My profile**](/profile) in the account menu. - **Change a role:** use the role list on the row of the user. - **Disable:** select **Disable**. The user cannot sign in, and the tokens of the user stop. **Enable** reverses it. The portal does not delete users, so the audit log keeps their names. The portal does not learn that your identity provider removed a person: the provider refuses the next sign-in, but the tokens of the user keep working. Disable the user here to stop them. ![The Users page, with the invitation form and its field Access ends, and a table of three users, each with its name, its email, Edit name, and the column Access ends.](/guide/img/users.png) The list **Users** of **Settings** › **People**. 1. The invitation form. 2. The role of a user. 3. **Resend invitation**, **Set end date**, and **Disable**. 4. **Edit name** of a user. 5. The column **Access ends** ([Access that ends by itself](/guide/invite#access-ends)). The workspace always keeps one active admin. You cannot remove the admin role from the last admin, or disable the last admin. A user marked "Email stopped" has an address that bounced: see [Email that does not arrive](/guide/alerts#email-delivery). ## Organization {#organization} [**Settings** › **Workspace**](/settings/workspace) › **Organization** keeps the legal name of the organization that uses the workspace. Each acceptance of the TuxCare Pulse agreements records it. To change the name, type the new name in **Legal name of your organization** and select **Save**. The new name applies to the next acceptances only. The audit log records each change. If the workspace has no legal name, each admin sees the terms page at the next sign-in and types the name there. The table **Acceptances** lists the newest 100 acceptances: the date, the person, the organization, the version of each document, the version of the Privacy Policy, and the source. The source is **Signup** for the person who created the workspace, **Terms page** for an acceptance in the browser, and **CLI login** for an acceptance on the CLI login page. A row stays after an admin removes the person. ## Coverage sections of the CLI report {#cli-coverage-sections} [**Settings** › **Registry and CLI**](/settings/registry) › **Show the coverage sections in the CLI report** says whether the human report of the `tuxcarectl` CLI shows the coverage sections: COVERED, UNPROTECTED, NO COVERAGE, and NOT ANALYSED. It is off by default: the report shows the findings and the summary, and hides these sections. Turn it on when the people of the workspace want to see them in each run. - The option applies to each CLI run of the workspace that talks to the portal. The CLI reads it at the start of the run. - A flag of the CLI shows or hides the sections for one run. The flag wins over the option. - The JSON, SARIF, and SBOM outputs do not change: they hold the same data with the option on or off. - A CLI release from before the option shows the sections in each run, whatever the option says. - Only an admin can change the option. The audit log records each change as `settings.show_coverage_sections`. ## Failure reports {#failure-reports} [**Settings** › **Workspace**](/settings/workspace) › **Send the failure reports of tuxcarectl and Radar to TuxCare** says whether the portal takes the failure reports of the workspace. When a run of `tuxcarectl` or of the Radar agent fails, the client sends a report of the run to the portal of its workspace, also when the run never reached the portal. TuxCare uses the reports to find and fix the failures of the clients. - A report holds only the words and numbers of the client: the command, the exit code, the class of the error, the programs that the client started and their exit codes, the routes that it called with their status and time, and the operating system and architecture. A report of Radar holds the failed step, the package database, and the distribution too. - A report holds no path, no argument value, no text of an error, no token, no URL, no host name, and no package. The portal checks each word, and stores `other` in place of a word that it does not know. - The portal keeps the counts of the reports for 30 days. - Off wins. When an admin turns the switch off, the portal stores no report of the workspace. To stop the reports of one machine, set `TUXCARE_FAILURE_REPORTS=off` on it. - When this portal takes no failure reports at all, the card says so, and the switch changes nothing. - Only an admin can change the switch. The audit log records each change as `settings.failure_reports`. What each client writes, where the reports wait, and how to read them on the machine: [Failure reports of the CLI](/guide/reference#failure-reports) and [Failure reports of the Radar agent](/guide/radar#failure-reports). ## Share with TuxCare sales {#tuxcare-share} An admin can share the workspace with the TuxCare sales team for a fixed time. TuxCare uses the share to see what the workspace runs before a call, and to propose the TuxCare products that cover the software past end of life. The share goes to the team, not to one person. To give one person access, [invite the person with an end date](/guide/invite#access-ends). The share is a part of the hosted service: a portal that you run yourself does not show it. Open [**Settings** › **Workspace**](/settings/workspace) › **Share with TuxCare sales**, and select: - ****What TuxCare sales sees**:** **The stack report**, or **The stack report and a read-only view**. The stack report is the report of [**Packages** › **Stack report**](/guide/findings#stack-report): what the workspace runs, what is past end of life, and which TuxCare product has a build for it. The report that TuxCare sees holds counts: it names no repository, host, path, commit, CVE, or person. With the read-only view, TuxCare sales also opens the workspace read-only: the repositories, the hosts, and their findings. A sales session reads and does not download: it cannot save an export, an SBOM, a VEX, or a report as a file. It cannot change anything, and cannot open Users, the audit log, the tokens, the notifications, or Settings. The form of a new share selects the stack report first: to share the read-only view too, select it yourself. - ****Which data**:** **The whole workspace**, or **Chosen repositories and hosts**. A deleted repository or host leaves the share. When no chosen repository or host is left, TuxCare sees nothing: never the whole workspace. - ****How long**:** 14, 30, or 90 days. **Preview the report** opens the stack report. **Start sharing** starts the share. The button **Share with TuxCare** on the page of a repository, an image, or a host opens the same form, with that item chosen. When the workspace already shares chosen repositories and hosts, the button adds the item to the share. ![The card Share with TuxCare sales with a share that is on: the state, the data, the start, the end, the last read, and the buttons Extend 30 days, Change, and Stop sharing.](/guide/img/tuxcare-share.png) The card **Share with TuxCare sales** of **Settings** › **Workspace**, while a share is on. 1. The level, the data, who started the share and when, and the end day. 2. The last read of TuxCare sales, and who read. 3. **Extend 30 days**, **Change**, and **Stop sharing**. While the share is on, each page shows a banner with the level and the end day. **Manage** in the banner opens the card. Every role sees the banner and the state of the card. Only an admin changes the share. - **Extend 30 days** sets the end to 30 days from now. The button shows when less than 30 days are left. - **Change** sets a new level or new data. The end does not change. - **Stop sharing** ends the share at once, also while a person of TuxCare reads it. To share again, start a new share. - At the end time, the share ends by itself. When a TuxCare sales engineer made the workspace for you, the first admin who signs in sees a request: who asks, what, and for how long, with a link to the stack report. **Not now** declines the request. **Share the stack report only** starts a share of the stack report: it is the default answer. When TuxCare asks for the read-only view too, **Share both for 30 days** starts a share of both. Nothing is shared before an admin answers. A request with no answer for 30 days ends. The audit log records `share.start`, `share.change`, `share.extend`, `share.end` (with "expired" when the time ended), and `share.decline`. A read of TuxCare sales is a row `share.read` with the actor "TuxCare sales" and the email of the reader: one row an hour for each reader and each kind of read. The read-only view is a row `staff.session.start` with the same actor and the detail "sales share" when its session starts. A session of the read-only view lasts at most one hour. ## Manage or delete the workspace {#workspace} Sign in at [sc.tuxcare.cloud](https://sc.tuxcare.cloud/). **Your workspaces** lists the workspaces that you can open, and your invitations. **Manage workspaces** lists the workspaces that you own. **Sign out** in the header ends the sign-in to the site; your workspace sessions stay as they are. To delete a workspace that you own, select it on **Manage workspaces**, type its name, and confirm. Sign-in and all tokens stop at once. TuxCare removes the data after a retention period. **A deleted workspace does not come back** Before you delete it, download the SBOMs, reports, and VEX files that you want to keep. --- # Single sign-on URL: /guide/sso Let the people of your company sign in to the workspace with your own identity provider, and set how long an idle session lasts. ## Set up single sign-on {#sso} Add the identity provider of your organization under [**Settings** › **Access**](/settings/access) › **Sign-in**. The portal supports Google, Microsoft Entra ID, any OpenID Connect provider, and SAML 2.0. 1. Select the type, and type an id and a button label. 2. Fill in the fields of the provider: the issuer URL, the client id, and the client secret for OpenID Connect, or the IdP metadata for SAML. 3. Copy the **Callback URL** (OpenID Connect), or the **ACS URL** and the **Entity ID** (SAML), into the provider. 4. Set **Allowed domains** to your email domains. The portal refuses free-mail domains. 5. Select the provisioning mode. "invite" lets only invited addresses sign in. "jit" makes a user at the first sign-in, with the **Default role**. 6. Select **Test**. Then sign in with the new button in a private browser window. ![The form Add a provider under Settings, Sign-in.](/guide/img/sign-in.png) The form **Add a provider** under **Settings** › **Access** › **Sign-in**. 1. The type of the provider. 2. The allowed domains, the provisioning mode, and the default role. 3. The callback URL to copy into the provider. The portal uses the email of a first sign-in only when the provider confirms that the email is verified: - **OpenID Connect:** the ID token must say `email_verified: true`. If your provider does not send the claim, and nobody can choose an email that they do not own, select **Trust unverified email**. - **Microsoft Entra ID:** add the optional claim `xms_edov` to the ID token in the app registration. - **SAML 2.0:** the email of the assertion is enough. The provider handles multi-factor authentication. The sign-in must start at the portal. ### Session idle time {#session-policy} A browser session ends after a time with no activity, and the person signs in again. With no value of your own, the workspace uses the default of the service. An admin can set a shorter time under [**Settings** › **Access**](/settings/access) › **Session idle time**: 1. Type the time in minutes. The lowest value is 5 minutes. The form shows the highest value, which is the default of the service. 2. Select **Save**. Select **Use the default** to remove your value. The time applies to every browser session of the workspace, also a TuxCare staff session and a sign-in with a token. API tokens and CLI tokens do not change. A shorter time reaches the open sessions at their next request: a session that is already idle for longer ends then. A session can stay open up to one minute after the time. Opening a page counts as activity. A page that waits for a new scan also counts, until the match ends. Only an admin can read or change the value. The **Audit log** records each change as `settings.session_idle`. --- # Tokens URL: /guide/tokens Pick the token of a pipeline, make it, and let GitHub Actions and GitLab CI sign in with no stored token. ## Pick a token for the pipeline {#tokens} Use the smallest token that does the job. If it leaks, less is exposed. When setting a portal token and URL in CI, use the same family of variable names. Set `TUXCARE_PORTAL_TOKEN` and `TUXCARE_PORTAL_URL` together, or set `SECURECHAIN_PORTAL_TOKEN` and `SECURECHAIN_PORTAL_URL` together. A token from one family with a URL only from the other, for example a group variable `TUXCARE_PORTAL_URL`, stops the CLI at exit 5 before it sends anything (CLI 0.1.94 or later). With the GitHub Action, set a custom URL in the `portal-url` input alongside `portal-token`. | Your pipeline | Who makes the token | What to select on Access tokens | | --- | --- | --- | | The pipeline of one repository | An admin, or a member of that repository | The **CI token (one repository)** preset and the repository. The form starts with this preset. The token can send and read that repository only, so the CLI shows no link to the scan of a git dependency in another repository (see [links to another repository](/guide/repositories#git-link-access)). It expires in 90 days. A member must set an expiry of 90 days or less. The token stops when the person who made it is disabled or loses the member role on the repository, and **Access tokens** marks it; it works again if that person gets the role back. | | A CI server or a shared CI template that builds many repositories of one team | An admin | **Scope** "a department", the department, and the **CI upload (all my repositories)** rights. One token serves every repository of the department, so the team does not make and replace one token for each repository. A scan of a new repository puts the repository in that department. The token can read every repository of the department, so the CLI shows the link to the scan of a git dependency in another repository of the department (see [links to another repository](/guide/repositories#git-link-access)). The token cannot send scans to a repository of another department. This token does not depend on a person: it keeps working when the admin who made it leaves. | | A pipeline that builds more than one repository, when you are not an admin | A member | The **CI upload (all my repositories)** rights. The token acts as you: it can read every repository that you can read, and the form warns about it. It expires in 90 days unless you clear the date. It stops when your user is disabled. A job that only sends scans (`tuxcarectl sca`, `tuxcarectl check`) can use **Upload only**: it reads only the findings of its own scans. | - The **Repository** box of [**Set up CI**](/setup-ci) and of **Access tokens** lists only the repositories that the workspace has, and for a member only the repositories that the member can see. Type a part of the name to filter the list, for example "web-shop" or "acme". The filter ignores upper case and lower case. Select the repository with the mouse, or with the arrow keys and `Enter`. A CI token needs a repository that the workspace has. For a new repository, select **Register repository** on **Set up CI** and paste its URL (an admin and a member can), or send a first scan from your computer. A member's repository goes where the member's first scan would put it: into each department in which the member is a member, or ungrouped when the member has no department. If the departments of the member do not allow a new repository, an admin registers it. - To replace a token that expires: make the new token, change the CI secret, run the pipeline, then revoke the old token. - The **Last CLI** column of **Access tokens** shows the CLI version that each token used last. Use it to find a job that runs an old CLI. [Access tokens](/guide/tokens#access-tokens) explains each right and scope. ## Make a token for the pipeline {#cicd-token} Does one CI template or one CI server build many repositories of your team? Then ask an admin for a department token, and do not make one token for each repository. See [Pick a token for the pipeline](/guide/tokens#tokens). The steps below make the token of one repository. 1. In your workspace, open the account menu at the right of the header, and select [**My tokens**](/tokens). 2. Type a **Name**, for example `ci web-shop`. 3. Select **CI token (one repository)** and the repository. An admin and a member can mint it. It expires in 90 days at most. 4. Select **Mint token** and copy the token. The portal shows it one time only. Give each pipeline its own token. Do not use the token of your computer. [Pick a token for the pipeline](/guide/tokens#tokens) compares the choices. ## Sign in with no stored token {#ci-sign-in} GitHub Actions and GitLab CI give each job a signed OIDC token. With a trust rule, the job trades that token for a portal token of one hour, and the pipeline stores no portal token. A leaked token stops by itself. The audit log names the repository, the ref, and the run of each sign-in. 1. An admin opens [**Settings** › **Access**](/settings/access) › **CI sign-in** and adds a rule: the CI system, the repository or project path, and the rights and the scope of the tokens. Set the ref too: a branch name, for example `main`, or a full ref, for example `refs/tags/v1.2.0`. A branch name never takes a tag with the same name. With no ref, the rule takes each branch, tag, and pull request of the repository that can get an OIDC token. 2. Change the job as below. `PORTAL_URL` is the address of your workspace, with no slash at the end, for example `https://acme.example.com`. The audience of the OIDC token must be this address. The job of each CI system: [GitHub Actions](/guide/ci-github#ci-sign-in) and [GitLab CI](/guide/ci-gitlab#ci-sign-in). - The portal answers 401 with one text for each cause: it does not tell a caller which rules exist. Check the audience, the repository, and the ref. An admin of a self-hosted install can read the cause in the log of the portal. One cause has its own text: the rule that names the job is suspended (below). - A rule depends on the admin who added it. The rule is suspended when that person is disabled, loses the member role on the repository of a rule of one repository, or loses the admin role for a rule of a department or of the whole workspace. A rule of one repository with rights past those of the CI token of a member (the poll permission, the write permission, or the api or mcp channel) also needs the admin role of that person. A suspended rule gives no token, its live tokens stop, and **CI sign-in** marks it. The rule works again when that person gets the role back. When the person left, an admin adds the rule again and removes the old one. When another live rule names the same job, that rule gives the token. - An answer 503 means that the portal could not read the keys of the CI system. Try again after a minute. - When you remove a rule, its live tokens stop at once. The tokens of a rule are not on **Access tokens**. - The token of the sign-in lives one hour. A job that runs for longer signs in again. ## Access tokens {#access-tokens} A token lets a program use your workspace: the CLI, a CI job, a script, or an AI assistant. Open [**My tokens**](/tokens) in the account menu (an admin also finds every token under [**Settings** › **Access**](/settings/access)), type a **Name** that tells where the token is used, select the [rights](/guide/tokens#token-rights), set an [expiry](/guide/tokens#token-expiry), and select **Mint token**. **The portal shows a token one time only** Copy it at once and keep it in a secret store. The portal keeps only a hash of the token. If you lose a token, revoke it and make a new one. ![The Access tokens page, with the form that makes a token and a table of five tokens.](/guide/img/tokens.png) The **Access tokens** page of an admin. 1. The name of the token. 2. The scope. Only an admin sees this list. 3. The rights: a preset, or your own selection of channels and permissions. 4. **Mint token** makes the token and shows it one time. - A token starts with `tuxr_` and the name of your workspace. - The table shows the last four characters, the rights, the creation date, the last use, and the expiry of each token. Select **Revoke** to stop a token at once. A revoked token cannot come back. - The **Last CLI** column shows the CLI version of the newest scan that the token sent. "older than" marks an old CLI. Use it to find a CI job that needs an upgrade. - The **Browser sessions** table lists your sign-ins. Select **Sign out** on a row to end that session. ### Rights {#token-rights} The rights of a token are two lists: - **Channels:** how the token connects. "CLI" is the TuxCare CLI. "API" is the [REST API](/guide/api#api-rest). "MCP" is the [MCP server](/guide/ai-connect#mcp) for AI assistants. - **Permissions:** what the token can do. "submit" sends scans. "read" reads repositories, scans, and findings. "write" changes things: triage, the default branch, and the settings. "poll" is for scan workers only: do not give it to a CI token. Select a preset, or select **Custom** and tick each channel and permission: | Preset | Channels | Permissions | Use it for | | --- | --- | --- | --- | | CI token (one repository) | CLI | submit, read | The CI job of one repository. An admin and a member see this preset, and the form starts with it. It sets the [scope](/guide/tokens#token-scope) to one repository and the expiry to 90 days from today. A member needs the member role on that repository, and the expiry is 90 days or less. | | CI upload (all my repositories) | CLI | submit, read | A CI job that builds more than one repository, or your own computer: send scans and read the findings. The token can read every repository that its [scope](/guide/tokens#token-scope) can read, and the form warns about it. It sets the expiry to 90 days from today; you can clear it. | | Upload only | CLI | submit | A job or a TuxCare Radar agent that sends scans. It reads only the findings of the scans that it sent. It can run `tuxcarectl sca` and `tuxcarectl check`. | | Read only | API | read | A script or a dashboard that reads findings. | | Read and write | API | read, write | A script that also triages findings or changes settings. | | AI assistant | MCP | read | An AI assistant that reads findings. | | AI assistant with triage | MCP | read, write | An AI assistant that can also triage findings. | - A token never does more than the role of its user. A viewer can only read, so a token of a viewer cannot send scans. The page shows only the presets that your role can give. - The CLI channel is always on. An admin must [turn on](/guide/ai-connect#api-mcp-on) the API and MCP channels for the workspace. - You cannot change the rights of a token. Revoke it and make a new one. ### Scope {#token-scope} An admin selects a **Scope**. The scope limits what a token can see on every channel. Use the smallest scope that does the job: | Scope | What the token can do | Use it for | | --- | --- | --- | | a repository | Send scans to one repository and read that repository only. | The CI job of one repository. If the token leaks, only that repository is exposed. | | a department | Send scans and read the repositories of one [department](/guide/departments#departments). A scan of a new repository puts the repository in that department. | A CI server that builds many repositories of one team. | | me, or a user | Act as that user, with the role and the departments of the user. The token stops when the user is disabled. | Your own computer, scripts, and AI assistant. | | whole workspace | Act as an admin of the whole workspace. The token belongs to no person, so it keeps working when the person who made it leaves. | Automation that manages the workspace. Keep these few. | A member or a viewer makes tokens for their own user, and does not see the **Scope** list. A member also makes the CI token of one repository with the **CI token (one repository)** preset. That token stops when the person who made it is disabled or loses the member role on the repository, and **Access tokens** marks it; it works again when that person gets the role back. It also stops when it expires or someone revokes it. The member sees it on **Access tokens** and can revoke it. An admin can make a token of one repository with wider rights (the poll permission, the write permission, or the api or mcp channel): that token stops when the admin loses the admin role, also when the person keeps the member role on the repository. A department token that an admin makes does not depend on a person. A repository or department token cannot read other repositories, and it cannot make, list, or revoke tokens. ### Expiry {#token-expiry} Set a date in **Expires**, or leave the field empty for a token that does not expire. The token stops at the end of that day in the time zone of your browser. - An expired token gets the same answer as a revoked token: 401 "unknown or revoked token". The table marks it "expired". - You cannot change the expiry. To replace a token: make the new token, change the CI secret, run the pipeline, then revoke the old token. - A token that expires cannot make a token that expires later, or a token with no expiry. ### Allowed addresses {#token-addresses} A token can work from some networks only. Type them in **Allowed from** when you make the token, separated by commas: a network such as `10.0.0.0/8` or `2a01:4f8::/64`, or one address such as `203.0.113.7`. Leave the field empty to allow every address. To change the list of a token, select **Addresses** in its row. - The list holds for every use of the token: the API, the MCP server, the CLI and the agent, and a sign-in with the token. - A request from another address gets 403 "this token does not allow requests from" and the address. The address is the one that the portal sees: behind NAT or a proxy, the address of the NAT or the proxy. - For example, give a CI token the network of your CI runners, and a dashboard token the address of its server. - Only a person who signs in changes a list. A request with a token, or a browser signed in with a token, cannot change the list of a token or the list of the workspace: such a browser shows no **Addresses** button, and shows the list of the workspace read-only. - A token with a list can make only a token whose networks are inside its own list. --- # Departments URL: /guide/departments Split the repositories of the workspace between teams, give each team its members, and let a CI token of a department send the scans of its repositories. ## Set up departments {#departments} Departments split the repositories of a workspace between teams. A member or a viewer with a seat in a department sees only the repositories of that department. 1. Open **Departments**. Type a name and select **Create department**. 2. Open the department. Under **Repositories**, add the repositories of the team: type a part of the name in **Assign a repository**, select the repository in the list, and select **Assign**. 3. Under **Members**, add the members and viewers of the team: type a part of the name or of the email in **Add a member**, select the person in the list, and select **Add**. ![The list Departments of Settings, People, with the department Storefront open: one member and two repositories.](/guide/img/departments.png) The list **Departments** of [**Settings** › **People**](/settings/people), with one department open. 1. The form that creates a department. 2. The members of the department. 3. The repositories of the department. - Admins, and users with no seat, see every repository. - A repository can be in more than one department. A repository in no department is visible only to admins and to users with no seat. - A seat never gives more than the role of the user. A viewer stays a viewer. - The token of a user with a seat sends scans only to the repositories where a seat gives the member role. - **Members can add repositories.** When a member with a seat sends a scan of a new repository, the portal adds the repository to each department where the member has a member seat. The switch **Members can add repositories** in the list **Departments** of **Settings** › **People** controls this. It is on by default. When it is off, only an admin or a department token can add a repository. - When you delete a department, its repositories go back to no department, and the portal revokes its department tokens. The portal asks you to confirm. - A department controls who sees a repository. A [product](/guide/releases#products) groups repositories for the CRA clocks. The two are separate. --- # Audit log and limits URL: /guide/audit Read who did what in the workspace, and the limits of your plan with the answer that a request gets when it passes one. ## Audit log {#audit} [**Settings** › **Audit log**](/settings/audit) lists each management action, newest first: when, who, from which address, the action, the object, and the detail. It records token, user, department, repository, product, and triage changes, and the reads of the [registry token](/guide/registry#registry-token) through the CLI. - Type in **Actor contains** to keep the actions of one person or token. The list under the box shows the members whose name or email holds the text. Select a member in the list, and the filter takes the email of that member. A text that is no member, for example the name of a token or the email of a former member, filters as it is. - Type in **Action contains** to keep one kind of action, for example `token.` - The page shows 100 entries. **Load older** shows the next 100. ### Sign-ins {#sign-ins} Each sign-in to the workspace through a sign-in provider writes the action `user.sign_in`. A refused sign-in of a user of the workspace writes `user.sign_in.refused`, with the reason of the refusal. A refused sign-in of a person who is not a user of the workspace writes no entry. Type `user.sign_in` in **Action contains** to see them. The detail of an entry names: - the sign-in provider, for example `google`, or `sso:` and the ID of a provider of the workspace; - the country of the network address, which the **Address** column also shows. The portal finds it in a local copy of the IP Geolocation by DB-IP database, and sends the address to no other service. An address with no country in that database, for example a private address, has none; - the multi-factor claims, when the provider sends them: `acr` and `amr` of an OpenID Connect provider, or the authentication context and the authentication methods of a SAML provider. The portal records the claims and does not check them. The portal deletes the sign-in entries 12 months after the sign-in. The other entries stay as long as the workspace exists. A sign-in with a token writes `session.token_login`. The [tokens](/guide/tokens) page shows the time of the last use of each token. ## Limits {#limits} Your plan sets the limits of the workspace: repositories, users, tokens, webhooks, scans a day, scan slots, releases, and how long the portal keeps old scans. [**Settings** › **Plan and limits**](/settings/limits) shows each limit and the use of the workspace, and marks a row near its limit. Every role can read it. At a limit, the portal answers with status 429 and names the limit: ``` {"error":"quota exceeded","quota":"repos","limit":1000} ``` - The `repos`, `slots`, and `submissions_per_day` limits count repositories and images. A host does not count in them. - Hosts have a daily limit of their own, `host_scans_per_day`, counted on the new scans of your hosts. When your plan does not set it, it is the same number as `submissions_per_day`. The first scan of a host counts. A later scan counts when it changes the packages, the running kernel, anything in the live-patch report except its update time, what waits for a restart, the TuxCare licence, or the update stream; a scan with no such change does not count. At the limit, the portal answers 429 with the quota `host_scans_per_day` to each host upload until 00:00 UTC. - The daily scan limit resets at 00:00 UTC. A repeat of the same scan counts. A failed upload does not. - The `tokens` limit counts the tokens that work. A revoked or expired token does not count. A CLI browser login makes a token, so the limit applies to it too. - A scan slot is one repository, branch or tag, project path, and set of ecosystems. The portal keeps the newest scan of each slot. A branch or tag that is not the default branch and has had no scan for the age limit of your plan is removed with all its scans, and frees its slot. A release and a host are never removed this way. The `slots` limit refuses a scan that starts a new slot. A new scan of a slot that exists is not refused. - The `releases` limit refuses a new release name. A scan that joins a release that exists is not refused. Delete a release to free its place. - Each token can send 10 requests a second, with a burst of 30. Above that, the portal answers 429 "rate limited". - The app shows this refusal in words: it names the limit and what you can do. At the `tokens` limit, revoke the tokens that you no longer use under [**Settings** › **Access**](/settings/access). - To raise a limit, [contact TuxCare](/guide/help#help). ### Ask TuxCare sales about the Corporate plan {#corporate} The Corporate plan is the paid plan of Pulse for a larger company. On the hosted service, an admin asks TuxCare sales about it from [**Settings** › **Plan and limits**](/settings/limits): 1. Select **Contact sales about Corporate**. The card shows what TuxCare sales gets. 2. Check the values, and select **Send request**. The request sends these values, which Pulse reads when you open the card: - the legal name of your organization, from [Organization](/guide/admin#organization); - the package ecosystems of the workspace, for example `maven` and `npm`; - the number of source repositories (images and hosts do not count); - the number of open findings, as the home page counts them; - your email address, where TuxCare sales replies, and the address of the workspace. Nothing else goes: no repository or package name, no finding, and no other user. TuxCare keeps the request in its sales system (HubSpot), and a sales person replies by email. To let sales read more of the workspace, [share it with TuxCare sales](/guide/admin#tuxcare-share); a request does not share the workspace. If the values change between the preview and the send, the card shows the new values; check them and send again. The card shows the state of the newest request. A request that is on its way, or that TuxCare sales received in the last 24 hours, cannot be sent again. The request belongs to the workspace: when another admin sent it, the card names the email of that admin, where TuxCare sales replies. If that admin loses access to the workspace while the request is on its way, the request can fail: send it again when the card says that it failed. If a request does not reach TuxCare sales, the card says so: send it again, or [contact TuxCare](/guide/help#help). An upgrade to the Corporate plan keeps the same workspace with its history, users, and settings. The card shows only to an admin who signed in, and not on a Pulse that you run yourself. The audit log records each request as `sales.request`. --- # On-prem portal URL: /guide/onprem What an admin of a portal that you run yourself does in the portal: the token of the TuxCare feed. ## Feed token of an on-prem portal {#feed-token} A portal that you run yourself gets the advisories and the TuxCare catalogue from the TuxCare feed. The feed asks for a TuxCare customer token: the token of your TuxCare subscription, which your builds use for the TuxCare package repositories. If you do not have it, ask TuxCare support. The administrator of the server puts the token in a file and names the file in `sync.feed_token` of `portal.yaml` (for example `file:/secrets/feed-token`), then restarts the worker. The install guide of the portal has the steps. When the feed refuses the token, or the portal sends none, [**Settings** › **Workspace**](/settings/workspace) shows the refusal to each admin, with the time and the fix, and the portal gets no new advisories until the token is right. The card goes away after the next sync that the feed accepts. The hosted service holds its own token, so this card does not show there. --- # TuxCare registry URL: /guide/registry Give the CLI, your own mirror, and the update bots access to the TuxCare registry of the builds: the registry token, the CLN link, a mirror in Artifactory or Nexus, and Renovate and Dependabot. ## Registry token {#registry-token} [**Settings** › **Registry and CLI**](/settings/registry) › **Registry token** keeps the token of the TuxCare registry. The CLI reads it with the access token of a developer or a CI job: `tuxcarectl registry login` on a computer, and `tuxcarectl registry env` in CI. So each person and each pipeline keeps only one secret. You need it only for [TuxCare builds](/guide/fix#builds). - Save it one time. Replace it when TuxCare gives you a new one. Then each person runs `tuxcarectl registry login` again. - Leave the user name empty for the TuxCare registry. Set it only for your own mirror that asks for one. - Renovate and Dependabot read the TuxCare registry with the same token, kept as a secret of the bot. See [Renovate and Dependabot](/guide/registry#bots). - The section shows who saved the token and when. - Each member, and each CI token with the submit permission, can read the whole token through the CLI. A viewer cannot. Each read goes into the **Audit log**, one row a day for each token and network, and the section shows the last one. Replace the token when a member leaves. ![The section Registry token of the Settings page. It shows who saved the token and when.](/guide/img/registry-token.png) **Settings** › **Registry and CLI** › **Registry token**, with a token saved. ### Use the TuxCare registry {#registry-use} [**Settings** › **Registry and CLI**](/settings/registry) › **Use the TuxCare registry** says whether the CLI points the package managers at the TuxCare registry, and whether `tuxcarectl auth login` writes the registry token into the user files of the package managers. It is on by default. Turn it off when the builds of the workspace use only your own package repositories. When it is off, the CLI gets no registry address and no registry token. A repository can override the value in both directions: open the repository, select **More**, and under **Use the TuxCare registry** select **Workspace default**, **On**, or **Off**. Only an admin can change the value of the workspace. A member or an admin of a repository can change the value of that repository; a viewer and a CI token cannot. The audit log records each change with the old and the new value. See [Use the TuxCare registry, or your own repositories](/guide/fix#registry-use). ### CLN account {#cln-link} [**Settings** › **Registry and CLI**](/settings/registry) › **CLN account** links the workspace to your CloudLinux Network (CLN) account, where you buy SecureChain. Pulse then takes the subscription and the registry token of the workspace from that CLN account, with no token to copy. Only an admin of a hosted workspace sees the section. Its button **Link a CLN account** shows when TuxCare turns the link on for your workspace. 1. Select **Link a CLN account**. A page of `sc.tuxcare.cloud` opens. Sign in there when it asks, then select **Continue to CLN**. 2. CLN uses your open CLN session, or asks you to sign in to CLN. Sign in as the owner of the CLN account, or as a sub-login with the role `ACC_ADMIN`. Pulse refuses each other role. 3. CLN sends you back, and the workspace opens on this section with the CLN account id, who linked it, and when. You can also start on the SecureChain page in CLN. Select **Open TuxCare Pulse**, sign in to Pulse, and choose a workspace you administer. Select **Continue to CLN** to link it. For a new workspace, select **Create workspace**, fill in its details, and select **Create workspace and continue to CLN**. - Finish within 10 minutes of **Continue to CLN**, in the same browser. Else start again. - One workspace links one CLN account. A new link replaces the old one. One CLN account can link more than one workspace. - A registry token that an admin or TuxCare saved in [Registry token](/guide/registry#registry-token) wins over the token from CLN. - **Unlink** removes the link, and Pulse deletes the subscription and the registry token that it took from CLN. - The **Audit log** keeps each link (`cln.link`, with the CLN account id and the role) and each unlink (`cln.unlink`). The row of a link also shows how the CLN login that made the link is protected, when CLN sends these facts: the time of its last sign-in to CLN (`auth_time`), whether it uses two-factor authentication (`two_factor_enabled`), and whether CLN confirmed its email address (`email_confirmed`). ### A registry token for each person and CI token {#registry-tokens} [**Settings** › **Registry and CLI**](/settings/registry) › **A registry token for each person and CI token** gives each CLI login and each CI token a registry token of its own, in place of the one shared token of the workspace. Pulse makes each token at your linked CLN account. When a member is disabled or the access of a member ends, a CI token is revoked or expires, or a CLI login signs out, Pulse deletes that token at CLN, and the other tokens keep working. An expiry or an end of an access starts the delete within an hour. No admin has to replace a shared token when a member leaves. Only an admin sees the card, and the mode needs a linked [CLN account](/guide/registry#cln-link). Its button **Turn on** works when TuxCare offers the mode to your workspace, after the release of the TuxCare CLI that keeps a registry token for each login. 1. Select **Turn on**. From then on, `tuxcarectl auth login`, `tuxcarectl registry login`, and `tuxcarectl registry env` get a token of their own login or CI token. Pulse never gives the shared token again. 2. Ask each person to run `tuxcarectl registry login` again, and change the registry token in your CI variables to the one that `tuxcarectl registry env` prints in the job. The shared token still works for 7 days. 3. After the 7 days the card asks you to delete the shared token in the CLN console. Pulse cannot delete it: CLN gives Pulse only the tokens that Pulse made. Then select **The shared token is deleted**. - The jobs of one [CI sign-in](/guide/tokens#ci-sign-in) rule share one token: each job gets a new access token, and the rule keeps the registry token until the rule ends or its creator loses the role. - The card lists each live token: the person or the CI token, the last four characters of the token, when Pulse made it, and the last use at the registry that CLN saw (CLN checks once a day). - **Revoke** deletes one token, for example of a lost laptop. It also signs that CLI login out, or revokes that CI token: else the laptop would get a new token at its next run. - Once the delete reaches CLN, the registry refuses the token within about 30 seconds — it checks each token in use again every 30 seconds. Measured on production, the first `403` came after a median of 26.4 s and at most 27.7 s (5 runs on 21 November 2026). In a rare case it takes up to 10 minutes when the cache eviction of CLN fails. When the delete at CLN fails, Pulse tries again, and the card warns after 24 hours. - When CLN cannot make a token, the CLI stops with exit 4 and the reason, and never uses the shared token. When your CLN account holds no SecureChain subscription, Pulse asks CLN again after 10 minutes, or at once when you link another CLN account. One CLN account holds at most 1000 such tokens across all workspaces that link it; TuxCare raises the limit on request. - Run the newest `tuxcarectl`. An older release keeps one registry token for each workspace on a machine, so two logins of one workspace on one machine share the token of the first login. - **Turn off** deletes each token of the mode, and the CLI gets the shared token of [Registry token](/guide/registry#registry-token) again. An unlink of the CLN account deletes each token too, and the CLI gets no token until you link again or turn the mode off. - A delete of the workspace deletes each token of the mode at CLN. If TuxCare restores the workspace, each CLI login and CI token gets a new token at its next run. - The **Audit log** keeps each switch (`registry_token.mode`), each new token (`registry_token.mint`), each delete (`registry_token.revoke`), and each delete that fails for 24 hours (`registry_token.revoke_failed`). No row holds a token. The other parts of [**Settings**](/settings): **Organization** (see [Organization](/guide/admin#organization)), **Fix deadlines** (see [Fix deadlines](/guide/findings#deadlines)), **Host criticality rules** (see [Criticality](/guide/radar-hosts#criticality)), **Show the coverage sections in the CLI report** (see [Coverage sections of the CLI report](/guide/admin#cli-coverage-sections)), **Send the failure reports of tuxcarectl and Radar to TuxCare** (see [Failure reports](/guide/admin#failure-reports)), and **API and MCP access** (see [Turn the API or MCP on](/guide/ai-connect#api-mcp-on)). ## Your own mirror: Artifactory or Nexus {#mirror} Many companies install packages only through their own repository manager, for example JFrog Artifactory or Sonatype Nexus Repository: a mirror. The mirror can serve the TuxCare builds. Add a remote repository of the TuxCare registry to the mirror (Nexus calls it a proxy repository), and put it first in the group that your package managers use (Artifactory calls the group a virtual repository). The mirror keeps the registry token. Your package managers keep the address of the mirror, and they need no credential of TuxCare. The address of the TuxCare registry is `artifacts.tuxcare.com`. Your mirror connects to it, so allow the mirror to reach that host on port 443. Keep the setting [**Use the TuxCare registry**](/guide/registry#registry-use) on. With the setting on, `tuxcarectl registry env` gives you the registry token, and `tuxcarectl registry check` reads the hash of each TuxCare build from the TuxCare registry. TuxCare does not publish these hashes in its feed yet. With the setting off, the check cannot compare the build of the mirror with the TuxCare build, and it reports `not checked`. The same applies to a portal that you install yourself and that names the mirror as its registry: the check does not compare the mirror with itself, so it reports `not checked` until TuxCare publishes the hashes. ### The three rules for each remote repository {#mirror-rules} - **The registry token is the user name.** The remote repository signs in to the TuxCare registry with the registry token of your workspace as the user name. The TuxCare registry does not read the password: put any value, for example `x`, when the mirror asks for one. To get the token, run `tuxcarectl registry env --format dotenv` in a repository of the workspace: the line `TUXCARE_TOKEN=` holds it. A member or an admin can read the token; a viewer cannot. The portal records each read in the **Audit log**. When the workspace has [a registry token for each person and CI token](/guide/registry#registry-tokens), the command prints the registry token of the CLI login, the CI token, or the [CI sign-in](/guide/tokens#ci-sign-in) rule that runs it, and that registry token ends when that login, CI token, or rule ends, or when an admin revokes it (see the admin page for more). So run the command with a [CI token](/guide/tokens#tokens) that only the mirror uses. Before that CI token expires, make a new one, run the command with it, and put the registry token that it prints into the remote repository. Keep the token only in the mirror, and do not paste it into a ticket or a log. When an admin replaces the [registry token](/guide/registry#registry-token), put the new token into the remote repository. - **Put the remote repository of TuxCare first, above the proxy of the public registry.** A group serves the build of its first member that has the version. A TuxCare build often has the same version as the public package, with other bytes: for example, `braces@3.0.2` of TuxCare is 15,590 bytes, and the public build is 15,637 bytes. When the public proxy is first, each install gets the public build and ends with exit code 0. Nothing tells you. TuxCare measured this on Nexus Repository 3.98.1 with npm, Maven, and pip: the order decided the result in each test, and the state of the caches changed nothing. Artifactory is different: on Artifactory OSS 7.161.26 with Maven, a copy that a remote repository has cached is served before the order of the virtual repository applies. So on Artifactory, after you move the remote repository of TuxCare first, delete the cached copies of the public remote repository for the packages that TuxCare rebuilds. `tuxcarectl registry check` finds this mistake: see [Check the mirror](/guide/registry#mirror-check). - **Set the cache time of the remote repository of TuxCare to minutes, and turn its cache of missing items off.** With the default settings, the mirror shows a new TuxCare build up to one day after TuxCare publishes it. Until then, an install of a version that `harden` wrote stops with "no matching version". On Nexus, the defaults are 1440 minutes for "Maximum metadata age" and 1440 minutes for the not found cache. Set "Maximum metadata age" to 30 minutes, and clear "Not found cache enabled". On Artifactory, set "Metadata Retrieval Cache Period" to 1800 seconds and "Missed Retrieval Cache Period" to 0. TuxCare did not measure these two settings on Artifactory. Change only the remote repository of TuxCare. Keep the proxy of the public registry as your own policy says: a quarantine of new public packages belongs there. ### npm, pnpm, Yarn, and Bun {#mirror-npm} On Nexus: 1. Create a repository of the type "npm (proxy)". "Remote storage": `https://artifacts.tuxcare.com/npm/`. Under "HTTP", set the authentication type "Username", the user name to the registry token, and the password to `x`. Set the cache times of [the third rule](/guide/registry#mirror-cache). 2. Create a repository of the type "npm (group)", or open the group that you use. Put the new proxy first in the list of members, above the proxy of `registry.npmjs.org`. 3. Point the project at the group. In `.npmrc`: `registry=https://nexus.example.com/repository/npm-group/`. On Artifactory: 1. Create a remote repository of the type npm. URL: `https://artifacts.tuxcare.com/npm/`. User name: the registry token. Password: `x`. Set the cache times of [the third rule](/guide/registry#mirror-cache). 2. Create a virtual repository of the type npm, or open the one that you use. Put the new remote repository above the remote repository of `registry.npmjs.org` in the list of repositories. 3. Point the project at the virtual repository. In `.npmrc`: `registry=https://artifactory.example.com/artifactory/api/npm/npm-virtual/`. Use the path `/npm/` of the TuxCare registry, not `/npm-upstream/`: only `/npm/` has the TuxCare builds (see [the two paths of the registry](/guide/fix#npm-paths)). Do not add `/npm` to the address of the mirror: the address of the group is the registry. TuxCare did not measure an npm virtual repository of Artifactory: the free edition of Artifactory serves no npm. ### pip, uv, Poetry, PDM, and Pipenv {#mirror-python} 1. Nexus: create a repository of the type "pypi (proxy)", with the "Remote storage" `https://artifacts.tuxcare.com/pypi/`. Nexus then asks `https://artifacts.tuxcare.com/pypi/simple/project/` for each project. Artifactory: create a remote repository of the type PyPI with the same URL. Set the user name, the password, and the cache times as for npm. 2. Put it first in the group (Nexus: "pypi (group)"; Artifactory: a virtual repository of the type PyPI), above the proxy of `pypi.org`. 3. Point the tools at the simple index of the group, for example `index-url = https://nexus.example.com/repository/pypi-group/simple/` in `pip.conf`. The address ends in `/simple/`. ### Maven and Gradle {#mirror-maven} 1. Nexus: create a repository of the type "maven2 (proxy)", with the "Remote storage" `https://artifacts.tuxcare.com/maven/`. Artifactory: create a remote repository of the type Maven with the same URL. Set the user name, the password, and the cache times as for npm. 2. Put it first in the group (Nexus: "maven2 (group)"; Artifactory: a virtual repository of the type Maven), above the proxy of Maven Central. 3. Point Maven at the group with a `` in `~/.m2/settings.xml`, and Gradle with a `maven { url = uri("…") }` entry in `repositories`. On Artifactory, delete the cached copies of the public remote repository for the packages that TuxCare rebuilds after you put the remote repository of TuxCare first: a cached copy wins over the order ([the second rule](/guide/registry#mirror-order)). Nexus follows the order alone. TuxCare measured the order of the Python and Maven groups on Nexus 3.98.1 and Artifactory OSS 7.161.26 with a test server in the place of the TuxCare registry. The free edition of Artifactory serves no PyPI and no npm, so the Python rules rest on Nexus alone. `tuxcarectl registry check` checks a Python index and a Maven or Gradle mirror (CLI 0.1.86 or later): see [Check the mirror](/guide/registry#mirror-check). ### Check the mirror: registry check {#mirror-check} ``` cd path/to/your/project tuxcarectl registry check ``` `registry check` asks the registry that the files of the project name whether it serves the TuxCare builds. It changes no file. It takes one package of the project that has a TuxCare build at the same version as the public package, and asks the registry for the hash of that version. Then it compares the hash with the hash of the TuxCare build. It asks with your own tools and your own credential for the mirror: npm with the `.npmrc` for npm, pnpm, Yarn 1, and Bun, Maven with `~/.m2/settings.xml`, Gradle with the credentials of the repository, and pip for pip, uv, Poetry, and PDM, with the configuration of pip, `~/.netrc`, or the keyring. pip does not read a credential that only uv, Poetry, or PDM holds: when the mirror then refuses pip in such a project, the check reports `not checked`. The mirror holds the token of TuxCare. Run it after you set up the mirror, and after each change of the group. It prints one block for each package manager: ``` npm: registry https://nexus.example.com/repository/npm-group/ ✖ it serves upstream's build of braces@3.0.2, not TuxCare's (sha512-b8um+L1RzM3W…, TuxCare's is sha512-xdS7zoiSHyo3…) cause: the group lists the TuxCare remote repository below the public proxy, so the public build wins fix: in Nexus or Artifactory, move the remote repository of artifacts.tuxcare.com above the public proxy in the group or the virtual repository, then run tuxcarectl registry check again ``` **A `${NAME}` in an `.npmrc` of the project.** npm fills each `${NAME}` of an `.npmrc` with the value of the variable, and puts the value into the request to the registry that the file names. So for npm, pnpm, Yarn 1, and Bun, the check reports `not checked` and starts no tool when an `.npmrc` in the project directory or above it holds a `${NAME}` reference in a line that is no comment, or names another configuration file (`userconfig`, `globalconfig`, or `prefix`). For pnpm, a `pnpm-workspace.yaml` with a reference gives the same result. The line names the file and the number of the line. To check such a project, move the line with the reference, for example `//host/:_authToken=${NPM_TOKEN}`, into your own `~/.npmrc` (`npm config set` writes it). The check does not count your own `~/.npmrc`. **An npm registry on plain `http` of the TuxCare registry host.** npm sends the key of a host to each address on that host, also over plain `http`. So for npm, pnpm, Yarn 1, and Bun, the check does not ask a registry that is `http` on the host of the TuxCare registry: npm would send each key of that host there in plain text, the key of `registry login` too. The block is `not checked` (exit code 2), and `tuxcarectl check` names the line of the `.npmrc` as `registry-transport-in-project`. Use `https` in that line. **Maven and Gradle run the build of the project.** On a Maven or Gradle project, `registry check` runs the build of the project, as each command does that reads such a project (see [A Gradle or Maven project runs its build](/guide/ci-gates#untrusted-build)). The build chooses the repository of the question, and it can read each variable of the job. So run the check on code that you do not trust yet only in a job that holds no secret. The question to your mirror gets no `TUXCARE_TOKEN` and no `TUXCARE_REGISTRY_USER`, unless the check knows that the question goes to the TuxCare registry. On Maven, it gives them when the mirror of `central` is on the TuxCare registry: then a `` of the pom that this mirror does not cover is asked in the same run, with the variables. On Gradle, it asks with no such variable first, and asks again with them only when each repository of the first answer is on the TuxCare registry. The build can still read each other variable of the job. | The line | What it means | What to do | Exit code | | --- | --- | --- | --- | | `✓ it serves the TuxCare build` | The mirror serves the TuxCare build. | Nothing. | 0 | | `✖ it serves upstream's build`, and the cause names the order | The group has the TuxCare builds, but the proxy of the public registry is above the remote repository of TuxCare. On Maven and Gradle, the cause also names a cached copy of the public remote repository on Artifactory. | Move the remote repository of TuxCare above the public proxy ([the second rule](/guide/registry#mirror-order)). On Artifactory, also delete the cached copies of the public remote repository. | 5 | | `✖ it serves upstream's build`, and the cause names no remote repository | The group has no TuxCare version: it has no remote repository of TuxCare, or the TuxCare registry refuses the token of that remote repository. A client of the mirror cannot see which of the two it is. On a subscription with no ELS, the cause can also be the order: TuxCare did not measure whether the mirror then lists TuxCare versions, and the cause on the line names the order too. | Add the remote repository of the format of the tool at the top of the group (`https://artifacts.tuxcare.com/npm/`, `https://artifacts.tuxcare.com/maven/`, or `https://artifacts.tuxcare.com/pypi/`), with the registry token as the user name, or put the new token into it ([the first rule](/guide/registry#mirror-token)). On a subscription with no ELS, also check the order ([the second rule](/guide/registry#mirror-order)). | 5 | | `✖`, and the cause says that the registry has no copy of the version | The mirror answers that it does not have the version: no remote repository of TuxCare and no public proxy that holds it, or a refused token. | The same as in the row above. | 5 | | `✖ it did not accept the credential of this machine` | The mirror refused your own credential for the mirror. This is not the token of TuxCare. | Sign in to the mirror: npm: `npm login --registry address of the mirror`; Maven: a `` with the id of the mirror in `~/.m2/settings.xml`; Gradle: a credentials block of the repository; pip: `~/.netrc`, the keyring, or the index URL. Or ask the administrator of the mirror for read access. | 5 | | `✖`, and the cause says that the files name the public registry | The project installs from the public registry (`registry.npmjs.org`, `registry.yarnpkg.com`, Maven Central, the Gradle Plugin Portal, or `pypi.org`), not from a mirror or the TuxCare registry. | Point the files of the project at the mirror, or run `tuxcarectl init`. | 5 | | `✖ could not ask` | The registry did not answer in time, two times, or it gave another error. | Run the check again when the registry answers. | 5 | | `· not checked` | The check could not judge this package manager: the project has no package with such a TuxCare build, the tree did not resolve, the package manager is Yarn 2 or later, Pipenv, or a tool of another ecosystem, the Python files name an index that the check does not judge (for example PyPI beside the mirror, more than one index, or a find-links), the mirror refused pip in a uv, Poetry, or PDM project, an `.npmrc` of the project holds a `${NAME}` reference ([above](/guide/registry#mirror-check-env)), the files name a registry on plain `http` of the TuxCare registry host ([above](/guide/registry#mirror-check-http)), the index serves only the source archive of the version and no wheel, a Gradle build lists no Maven repository, or the check has no TuxCare build to compare with (the setting off, or a portal of your own that names the mirror). | Read the reason on the line. | 2 | The exit code is the highest code of the blocks, and 5 is above 2. It is 0 only when the mirror served the TuxCare build to each package manager. With no portal token, or with no registry token in the workspace, the command stops with exit code 3. When the portal does not answer, it stops with exit code 4. The command needs CLI 0.1.85 or later. The check of Maven, Gradle, pip, uv, Poetry, and PDM needs CLI 0.1.86 or later. ## Renovate and Dependabot {#bots} An update bot opens pull requests that move your dependencies to newer versions. A TuxCare build has the version of the upstream release with `-tuxcare.N` added, for example `3.3.1-tuxcare.1`. Without a rule, a bot can replace the build with an upstream release that does not have the TuxCare fix. The finding then comes back. ### What the bots propose with no rule {#bots-see} We gave each bot a project with TuxCare builds and no rule. The table shows the update that each bot proposed. | Bot | npm: `jquery 3.3.1-tuxcare.1` | Maven: `commons-lang3 3.12.0-tuxcare.1` | | --- | --- | --- | | Renovate | `3.7.1` and `4.0.0`: upstream releases | `3.21.0`: an upstream release | | Dependabot | `4.0.0`: an upstream release | `3.14.0-tuxcare.1`: a TuxCare build of a later version | Renovate reads `-tuxcare.1` as a prerelease (npm) or a qualifier (Maven), and moves to the newest release. Dependabot for Maven stays on TuxCare builds, but it moves to a later version. Dependabot for npm reads the versions from the registry of the project, which has no TuxCare builds, and moves to the newest release. ### Renovate {#bots-renovate} Add the rule of your package manager to the Renovate configuration of the repository, for example `renovate.json`. For a repository with npm and Maven projects, put both rules into one file. Renovate updates the other dependencies as before. From CLI 0.1.73, `tuxcarectl init` writes the rule for npm and the rule for Maven into `renovate.json`, and `unharden` removes them. `init` and `unharden` find each rule by its `description`, so keep the `description` when you change a rule. A second `init` does not add a rule again. If your project keeps its Renovate configuration in another file, for example `.renovaterc.json` or the `renovate` key of `package.json`, `init` does not write `renovate.json`: Renovate does not run when it finds two configuration files. `init` then prints the rule, and you add it to your file. With a CLI before 0.1.73, see the steps below for each package manager. **npm** (also pnpm, Yarn, and Bun): Renovate opens no pull request for a package on a TuxCare build. Move these packages with [`tuxcarectl update`](/guide/fix#update), for example in a scheduled CI job. ``` { "packageRules": [ { "description": "TuxCare hardened builds: stay in the -tuxcare series, never jump to upstream", "matchDatasources": ["npm"], "matchCurrentValue": "/-tuxcare\\./", "enabled": false } ] } ``` Renovate can find a newer build, but it cannot update the lockfile for it. To update the lockfile, Renovate runs `npm install` with the registry of the project, `/npm-upstream/` (see [npm: the two paths of the registry](/guide/fix#npm-paths)). That path has no TuxCare builds, so npm stops with `ETARGET`. `tuxcarectl update` writes the new build and its lockfile line together. **The npm rule of an `init` before 0.1.73.** An `init` before 0.1.73 wrote a rule with the same `description` and the keys `ignoreUnstable`, `respectLatest`, `allowedVersions`, and `registryUrls` in place of `enabled`. With that rule, Renovate proposes a newer TuxCare build, also of a later version, for example `3.4.1-tuxcare.2` for `3.3.1-tuxcare.1`, and the lockfile update of the pull request fails. Run `tuxcarectl init` of CLI 0.1.73 or later: it replaces that rule with the rule above, and keeps the rest of the file. If you changed that rule, `init` keeps your rule, and prints the rule above. If you changed that rule, or if you keep a CLI before 0.1.73, replace those four keys with the line `"enabled": false` yourself, and keep the `description`. **Maven**: a Maven project has no lockfile, so Renovate can move the builds. With this rule, Renovate proposes only a newer TuxCare build of the same version: `3.12.0-tuxcare.2` for `3.12.0-tuxcare.1`. It proposes no upstream release and no build of another version. `tuxcarectl update` moves the builds in the same way. `init` of CLI 0.1.73 or later writes this rule. With a CLI before 0.1.73, add the rule yourself, and remove it yourself when you stop using TuxCare builds. ``` { "packageRules": [ { "description": "TuxCare builds for Maven: propose only a newer build of the same version", "matchDatasources": ["maven"], "matchCurrentValue": "/-tuxcare\\./", "versioning": "regex:^(?.+)-tuxcare\\.(?\\d+)$", "registryUrls": ["https://artifacts.tuxcare.com/maven/"] } ] } ``` - `matchCurrentValue`: the rule applies only to a dependency on a TuxCare build. - `versioning`: Renovate compares only the versions with the same base version, the part before `-tuxcare.N`, and selects the highest *N*. An upstream release does not match the expression, so Renovate does not propose it. The expression accepts each form of base version, for example `1.15`, `32.1.3-jre`, and `r09`. The base is the whole part before `-tuxcare.N`, and *N* is the number that Renovate compares. If you write an expression that accepts only `1.2.3`, Renovate skips the other builds and shows no message. - `registryUrls`: Renovate reads the builds from the TuxCare registry. `init` writes the Maven path of the registry of the project. **The registry token for Maven.** Renovate reads the Maven builds with the registry token, from a `hostRules` entry. `init` does not write this entry: when the configuration names a secret that Renovate does not have, Renovate stops for the whole repository. `init` prints the entry in a note. Do these steps in this order: 1. Save the token as the Renovate secret `TUXCARE_TOKEN`. Use the registry token that TuxCare gave you, the token that an admin saves under [**Settings** › **Registry and CLI**](/settings/registry) › [**Registry token**](/guide/registry#registry-token). For the Mend Renovate app, save it in the settings of the organization or the repository in the Mend developer portal. For a Renovate that you run yourself, save it in `secrets` of its configuration. Do not write the token into the file. 2. Add the `hostRules` entry to the file that holds the rule. The Maven registry takes the token as the user name and as the password. ``` { "hostRules": [ { "hostType": "maven", "matchHost": "artifacts.tuxcare.com", "password": "{{ secrets.TUXCARE_TOKEN }}", "username": "{{ secrets.TUXCARE_TOKEN }}" } ] } ``` Without the entry, Renovate cannot read the TuxCare builds: it proposes no update for them, and it updates the other Maven dependencies as before. ### Dependabot {#bots-dependabot} Dependabot has no setting that keeps a package on the builds of one version. So keep Dependabot away from the packages on TuxCare builds with an `ignore` entry for each package, and move these packages with [`tuxcarectl update`](/guide/fix#update), for example in a scheduled CI job. Dependabot updates the other dependencies as before. In our test, Dependabot opened no pull request for a package in the `ignore` list, for npm and for Maven. **npm**: `tuxcarectl init` writes the TuxCare registry into `.github/dependabot.yml`, and `harden` adds an `ignore` entry for each package that it moves to a TuxCare build. Add the registry token as the Dependabot secret `TUXCARE_TOKEN` in the settings of the repository. For a project on npm, the file is then: ``` version: 2 registries: tuxcare: type: npm-registry url: https://artifacts.tuxcare.com/npm token: ${{ secrets.TUXCARE_TOKEN }} tuxcare-upstream: type: npm-registry url: https://artifacts.tuxcare.com/npm-upstream token: ${{ secrets.TUXCARE_TOKEN }} updates: - package-ecosystem: npm directory: / registries: [tuxcare, tuxcare-upstream] schedule: {interval: weekly} # One entry per package `securechain harden` pinned. ignore: - dependency-name: jquery - dependency-name: lodash ``` Dependabot sends a token only to the URL of its registry entry, so each of the two npm paths has an entry. This is also true for pnpm and Yarn 2 or later. A project that a CLI before 0.1.21 set up for these tools has only the entry `tuxcare`: the next `tuxcarectl init` adds the entry `tuxcare-upstream`. **Maven**: from CLI 0.1.74, `harden` adds an `ignore` entry for each package on a TuxCare build to each `package-ecosystem: maven` block of `.github/dependabot.yml`. Each entry has the comment `# securechain harden`. `harden` keeps the entries that you wrote, and writes no registry, no new block, and no new file: without a `maven` block, Dependabot does not update the Maven project. `init` writes nothing for Maven into this file. For a project on Maven, the file is then: ``` version: 2 updates: - package-ecosystem: maven directory: / schedule: {interval: weekly} ignore: - dependency-name: org.springframework:spring-core versions: ["7.x"] - dependency-name: org.apache.commons:commons-lang3 # securechain harden ``` Here the entry for `spring-core` is your entry, and `harden` wrote the entry for `commons-lang3`. `harden` also puts a comment block at the top of the file. `unharden` removes only the entries with the comment `# securechain harden`. `tuxcarectl check` reports each package on a TuxCare build that has no entry in a `maven` block (`maven-dependabot-ignore`). An entry with `versions` or `update-types` stops only some updates, so `harden` adds its own entry beside it. The entries keep the builds also when Dependabot reads Maven Central: the file needs no TuxCare registry. If your file has a TuxCare registry with `replaces-base: true`, `harden` and `unharden` keep it. With a CLI before 0.1.74, `harden` writes nothing for Maven. Add an `ignore` entry for each package on a TuxCare build yourself, and add an entry each time that `harden` moves another package to a TuxCare build. Dependabot security updates may not follow the `ignore` list. Do not merge a pull request that replaces a `-tuxcare` version with an upstream release. --- # CLI commands URL: /guide/reference The commands of the CLI (`tuxcarectl`), how it signs in and what that writes, the options of sca and compare, and the failure reports of the CLI. This page describes the newest release of the CLI. A part that needs a recent release names it, for example "CLI 0.1.86 or later". `tuxcarectl version` prints the version that you have, and names a newer release when there is one (see [Upgrade the CLI](/guide/install#upgrade)). `securechain` is the old name of the CLI. It still works, and so do the old env vars, file names, and packages. The new names (`tuxcarectl`, the `TUXCARE_` variables, `.tuxcare.yaml`) need CLI 0.1.93 or later. Pin 0.1.94 or later: it is the first promoted release with them. ## Sign in the CLI {#auth} The CLI uses one secret: an [access token](/guide/tokens#access-tokens) of your workspace. **On your computer** : Run `tuxcarectl auth login`. The CLI shows a link and a code, and opens the link in your browser. Sign in, check that the page shows the same code, select your workspace, select the box that says that you started this sign-in, and select **Approve CLI access**. If you did not accept the terms in that workspace yet, the next page shows them: select the box to accept them, and select **Accept**. Then approve CLI access again. TuxCare Pulse sends you an email about each new CLI sign-in. If you did not start a sign-in in that email, revoke its token on the [**Access tokens**](/tokens) page. The CLI keeps the token in a file in its login folder: `~/.config/securechain` on Linux (`$XDG_CONFIG_HOME/securechain` when that variable is set), `~/Library/Application Support/securechain` on macOS, and `%LocalAppData%\securechain` on Windows. When `TUXCARE_CACHE` is set, the login folder is that directory (for its old name, see [The two names of each variable](/guide/install#var-names)). On Linux and macOS the file has mode `0600`, so only your user can read it. The CLI does not use the keychain of your computer. `auth login` prints the path of the file in its line `stored in`. Over SSH, or on a computer with no browser, open the link on another device. With no terminal and nothing on standard input, for example `docker run` with no `-i` and no `-t`, the CLI opens no browser: it prints the link and the code, and waits while you open the link on any device. A standard input that stays open, as with `docker run -i`, makes the CLI wait for a token: after 2 seconds with no input, it prints a line that tells you to pipe the token, or to press Ctrl-D in a Unix terminal for the browser sign-in (see [Troubleshooting](/guide/help#auth-no-terminal)). **In CI** : Make a token in the portal and keep it in a masked CI variable with the name `TUXCARE_PORTAL_TOKEN`. The CLI reads the variable and writes the token nowhere. In a CI job, the browser sign-in does not start, and `auth login` with no token stops. Where standard input is not a terminal, which is the usual case in CI, it stops with exit code 3. Where standard input is a terminal, it stops with exit code 2. The message names the two ways: set `TUXCARE_PORTAL_TOKEN`, or pipe the token to `tuxcarectl auth login --with-token`. See [Get started: CI/CD](/guide/ci-other#cicd). | Command | What it does | | --- | --- | | `tuxcarectl auth login` | Signs in with the browser, as above. The CLI keeps one sign-in for each workspace (CLI 0.1.46 or later). A new sign-in to the same workspace replaces its old sign-in and revokes the old token. A sign-in to another workspace keeps the others. Then it writes the TuxCare registry into the files of your package managers, and lists them: see [The files that auth login and registry login write](/guide/reference#auth-files). | | `tuxcarectl auth login --with-token` | Asks you to paste a token, in place of the browser sign-in. A token that you pipe to `auth login` works the same way. | | `tuxcarectl auth status` | Lists each workspace that the computer has a sign-in to. Prints the workspace that this directory uses and why, the portal address, and the subscription of the workspace (the line `subscription`). | | `tuxcarectl auth use workspace` | Sends the scans of this repository to that workspace. `--default` makes it the default workspace of the computer. | | `tuxcarectl auth logout` | Removes every sign-in, or with `--tenant workspace` the sign-in of that workspace only. It removes the token file, and revokes the token when it came from a browser sign-in. It also removes the registry credential and the registry lines, with their securechain header line, that `auth login` and `registry login` wrote. `--keep-token` keeps the token valid. `--keep-registry` keeps the registry credential and the registry lines. `--tenant` also keeps them. | - The CLI has no option for the token: a token on the command line shows in the process list and in the shell history. - When `TUXCARE_PORTAL_TOKEN` is set, the CLI uses it, not the stored token. - The CLI finds your workspace from the token. The portal address is `https://sc.tuxcare.cloud`. You do not type the address of your workspace. - A browser sign-in makes a token with the name "CLI login: *computer*" on the **Access tokens** page. The token has your role. It expires after 90 days: then run `tuxcarectl auth login` again. - To make sure that a job sends to the correct workspace, set `--tenant name`, the variable `TUXCARE_TENANT`, or the key `tenant` in [`.tuxcare.yaml`](/guide/config#config). When the token belongs to another workspace, the CLI stops with exit code 3 and sends nothing. ### The files that auth login and registry login write {#auth-files} After the sign-in, `tuxcarectl auth login` also does what `tuxcarectl registry login` does: it writes the address of the TuxCare registry and the registry credential into the configuration files of the package managers in your home directory. It does this for the package managers of the directory where you run it. It writes nothing, for example, when the setting [**Use the TuxCare registry**](/guide/fix#registry-use) is off, when the workspace has neither SecureChain nor ELS, when the directory has no package manager, and in a CI job. The files are: | Package manager | File | | --- | --- | | npm, pnpm, Yarn 1 | `~/.npmrc`, or the file that `npm_config_userconfig` names. For pnpm, also its own user files, for example `auth.ini`. | | Bun | `~/.npmrc`, or `.npmrc` in `XDG_CONFIG_HOME` when that variable is set. With Bun 1.4.0 and later, also `~/.npmrc` when `XDG_CONFIG_HOME` is set and holds no `.npmrc`: `registry login` reads `bun --version` and writes the file that Bun reads. | | Yarn 2 or later | `~/.yarnrc.yml` | | pip | the user `pip.conf` of pip (on Linux `~/.config/pip/pip.conf`, on Windows `pip.ini`), or the file that an absolute `PIP_CONFIG_FILE` names when that file exists | | PDM | the user `config.toml` of PDM | | uv | the user `uv.toml` of uv | | pip, Pipenv, PDM, uv, Poetry | `~/.netrc`, for the credential | | Maven | `~/.m2/settings.xml` | | Gradle | `~/.gradle/init.d/securechain.gradle`, or `init.d/securechain.gradle` in `GRADLE_USER_HOME` | These files give the registry key to your own installs. A run of `harden`, `update`, `fix`, or `registry check` with an `https` registry gives npm, pnpm, Yarn 1, Bun, pip, uv, PDM, Pipenv, and Poetry no key. Securechain adds the key itself to each request to the registry. A project or user CA setting that replaces the tool's CA list stops the command at exit 5. The command also refuses such settings in files above the checkout root. A readable `cafile` in the npm user configuration works because the run joins it with its own certificate authority. Two cases give the tool the key in its settings for the registry host alone. The first is when the run cannot start its certificate authority or guard. The second is when a Python tool runs on a host with no system CA file and none of `SSL_CERT_FILE`, `REQUESTS_CA_BUNDLE`, or `PIP_CERT` supplies one. Both set `TUXCARE_TOKEN` to the placeholder `securechain-guard-adds-the-registry-key`. A project file that uses `${TUXCARE_TOKEN}` for another host sends no key there. See [The package tools of a run get no registry key](/guide/help#run-key). With CLI 0.1.69 or later, the first line of each file that the CLI writes a registry line into tells you where the line came from and how to remove it: ``` # securechain wrote the TuxCare registry lines in this file. Run "securechain auth logout" to remove them. ``` In `~/.m2/settings.xml`, the same text is an XML comment after the XML declaration: ``` ``` The CLI writes the Gradle init script whole. Its first lines name `securechain registry login` and say "Delete this file to undo it." A second sign-in does not add a second header line. A file that an earlier release of the CLI wrote gets the header line at the next sign-in, and nothing else in it changes. After the sign-in lines, the CLI lists the files that it changed, and the command that removes its lines. For example, for pip: ``` wrote /home/u/.config/pip/pip.conf, for pip wrote /home/u/.netrc, for pip the files that this login changed: /home/u/.config/pip/pip.conf /home/u/.netrc to undo: tuxcarectl auth logout removes the registry lines from these files. It also signs this machine out of the portal. ``` A file that is already current is not in the list. When the run changes no file, it prints no list. If a file has a format with no comments, it gets no header line, and its line in the list ends with "(no tuxcarectl header: its format has no comments)". With `--output json`, `auth login` gives the list in `registry_login.files` (for each file: `path`, `managers`, and `header`) and the command in `registry_login.undo`. To undo the changes: - `tuxcarectl auth logout` removes the registry lines and the header line from these files, and deletes the Gradle init script. It changes no other line: your own lines and comments stay. It also removes every sign-in of the computer. - `tuxcarectl auth logout --keep-registry` and `tuxcarectl auth logout --tenant workspace` keep the files as they are. - No command removes only the registry lines and keeps the sign-in. Run `tuxcarectl auth logout`, then `tuxcarectl auth login` again. The new sign-in writes no registry line when the setting **Use the TuxCare registry** is off, or when you run it in a directory with no package manager. Do not edit the lines out by hand: the Gradle init script and the entries of `~/.yarnrc.yml` and `~/.m2/settings.xml` stop working when you remove only a part of them. ### More than one workspace {#workspaces} You can sign in the CLI to more than one workspace, for example your own workspace and the workspace of your company (CLI 0.1.46 or later). Each repository then sends its scans to one workspace. The CLI selects it in this order: 1. `--tenant`, the variable `TUXCARE_TENANT`, or the key `tenant` in `.tuxcare.yaml`. 2. The workspace that the CLI saved for this repository on your computer. 3. The only workspace, when the computer has a sign-in to one workspace. When none of these applies, the CLI asks "Which workspace gets the scans of this repository?" and saves your answer. Without a terminal, for example in a script, it stops with exit code 3 and sends nothing. The first scan of a repository saves its workspace, so a later sign-in to another workspace does not move the repository. Each run prints the workspace on a line that starts with `workspace:`. To move a repository to another workspace, run `tuxcarectl auth use workspace` in the repository. A CI job is not affected: it uses the token in `TUXCARE_PORTAL_TOKEN`. ## Commands {#commands} | Command | What it does | What it changes | | --- | --- | --- | | `sca` | Sends the package list of the project to your workspace and prints the findings. | Nothing | | `sca vuln ` | Prints one advisory in full, as your workspace has it. For example `tuxcarectl sca vuln CVE-2024-0001`. | Nothing | | `compare` | Sends the scan and prints the findings that the latest scan of a base branch does not have. Use it for a pull request. See [Pull and merge requests](/guide/ci-gates#pull-requests). | Nothing | | `sbom` | Writes the package list as a CycloneDX or SPDX file. `sbom --preview` writes exactly what an upload sends, sends nothing, and needs no token. | The file that you name | | `status` | Reports the package managers that it found, the subscription, and the packages that have a TuxCare build. | Nothing | | `init` | Sets up a repository for TuxCare builds. See [Set up a project](/guide/fix#setup). | Configuration files in the project | | `registry login` | Gives the package managers on this computer the credential of the TuxCare registry, and lists the files that it changed. `tuxcarectl auth logout` removes its lines. See [The files that auth login and registry login write](/guide/reference#auth-files). | Configuration files in your home directory | | `registry use on\|off\|default` | Sets the setting [**Use the TuxCare registry**](/guide/fix#registry-use) of the repository of the current directory: `on`, `off`, or `default` (the value of the workspace applies). It prints the value that applies now. It needs the sign-in of a member or an admin of the repository (a CLI release after 0.1.67). | The setting in the portal; no file | | `registry check` | Asks the registry that the files of the project name, for example your own mirror, whether it serves the TuxCare builds, and says what to fix. It checks npm, pnpm, Yarn 1, and Bun (CLI 0.1.85 or later), and Maven, Gradle, pip, uv, Poetry, and PDM (CLI 0.1.86 or later). It does not check Yarn 2 or later, or Pipenv. See [Check the mirror](/guide/registry#mirror-check). | Nothing | | `registry env --job-dir ` | Gives the package managers of one CI job the registry credential. See [A CI job that installs TuxCare builds](/guide/fix#builds-ci). | Files in the job directory only | | `fix` | Writes the upstream fix for each open finding, installs it, and checks the result. It needs a portal token and no TuxCare registry. It covers npm, pnpm, Yarn classic, Yarn Berry, Bun, Deno, uv, PDM, Poetry, Pipenv, pip, pip-tools, conda, Maven, Gradle, and Cargo (CLI 0.1.81 or later), and NuGet, Bundler, Composer, Stack, Cabal, CocoaPods, Julia, renv, CPAN, Pub, Mix, SwiftPM, Paket, Bazel rules_jvm_external, Go modules, GitHub Actions, and Conan (a CLI release after 0.1.81). It runs your package manager, so the tool must be on the computer: Cargo needs `cargo`. Where it cannot vouch that no finding stays open, it exits 1, 2, 5, or 7; the deprecated `--on-unvouched warn` keeps exit code 0 there until 2027-12-01 (see [How a run of fix ends](/guide/fix#fix-unvouched)). See [tuxcarectl fix](/guide/fix#fix-command). | The manifest and the lockfile. On GitHub Actions: the workflow file | | `harden` | Changes the project to TuxCare builds, installs them, and checks the result. See [harden](/guide/fix#harden). | The manifest and the lockfile | | `update` | Moves each TuxCare build of the project to the newest build of the same version. See [update](/guide/fix#update). | The manifest and the lockfile | | `check` | The CI gate for a project that uses TuxCare builds. See [check](/guide/fix#check). | Nothing | | `guard ` | Runs one command of npm, npx, pnpm, Yarn, Bun, bunx, pip, uv, uvx, Poetry, gem, Bundler, dotnet, mvn, gradle, go, or cargo through the guard, for example `tuxcarectl guard npm install`: the tool gets no known malicious version. cargo gets the crates.io filter, on each registry. The guard also runs the wrappers of a project, `./gradlew` and `./mvnw` (also `gradlew` and `mvnw`, the wrapper of `--dir`; for `mvnw`, maven-wrapper 3.3.0 to 3.3.4 of the type `only-script`), with the checks of gradle and mvn: see [the wrappers](/guide/malicious#guard-wrapper). The guard refuses nuget (nuget.exe): run the restore with dotnet. The lockfile checks read the project of the tool, in each form of the option of the tool: npm `-prefix` and a prefix such as `--prefi`, pnpm `-dir` and `--C`, the variable `PNPM_CONFIG_DIR` of pnpm (also in `guard check`), go `--C`. For uv, `--directory` (else `UV_WORKING_DIR`) moves them first, and `--project` (else `UV_PROJECT`) moves them again, relative to it. Poetry reads `--directory` and `--project` the same way, also as `-Cdir`, `-Pdir`, or a prefix of the name. In a member directory of a uv workspace, the checks also read the `uv.lock` of the workspace root. The checks also read the lockfile that the tool reads above the folder of the command: for cargo the `Cargo.lock` of the workspace root of the nearest `Cargo.toml`, for Bundler the lockfile of the nearest `gems.rb` or `Gemfile`, and for go the `go.mod` of each module of the `go.work` (else the `go.mod` above). mvn `-f` and `--file`, and gradle `-p` and `--project-dir`, name the project. See [tuxcarectl guard](/guide/malicious#guard-tool). A word of a dotnet command that names a project, a folder, or a solution outside `--dir` adds the checks of that project: `guard dotnet` checks each one and folds them as one check, and a malicious version of any of them gives exit code 1. CLI 0.1.94 or later. | What the tool changes | | `guard check` | Stops with exit code 1 when a lockfile of the project holds a malicious version. Run it in CI before the install. See [tuxcarectl guard check](/guide/malicious#guard-check). It also stops with exit code 5, or 2 when the gap is of the CLI, when it cannot read a lockfile. CLI 0.1.94 or later. | Nothing | | `guard setup` | Makes a plain `npm install` of your shells run through the guard, and each command of the other tools of `guard `: mvn, gradle, go (also `go build` and `go test`), and cargo (also `cargo build` and `cargo test`) too. `guard setup --ci` does the same for the later steps of a CI job. See [Run a plain npm install through the guard](/guide/malicious#aliases) and [In CI](/guide/malicious#ci). CLI 0.1.94 or later. | The start files of your shells. With `--ci`: a new folder of the job | | `guard remove` | Removes the block of `guard setup` from the start files of your shells. | The start files of your shells | | `unharden` | Removes the TuxCare builds and the settings that `init` and `harden` wrote. See [unharden](/guide/fix#unharden). | The manifest, the lockfile, and the configuration files | | `migrate` | Changes the old npm aliases `npm:@els-js/…` to the normal package names. | The manifest | | `auth` | Signs the CLI in and out. See [Sign in the CLI](/guide/reference#auth). | The token file in the login folder (see [Sign in the CLI](/guide/reference#auth)). `auth login` and `auth logout` also change the configuration files in your home directory: see [The files that auth login and registry login write](/guide/reference#auth-files). | | `doctor` | Checks your environment: the package managers, the configuration, the proxy, and the connection to the portal. `--bundle ` writes a support archive, with the tokens removed. See [Check your environment](/guide/help#doctor). | The archive that you name | | `upgrade` | Moves the CLI to the promoted release. See [Upgrade the CLI](/guide/install#upgrade). | The CLI | | `version` | Prints the version of the CLI. | Nothing | - `tuxcarectl --help` lists the commands. `tuxcarectl sca --help` lists the options of one command. - Each command runs in the current directory. `--dir path` selects another project root. - `harden`, `update`, `init`, `unharden`, and `fix` take `--dry-run`: they print the change and write nothing. `sca` and `sbom` read the lockfiles of these ecosystems: npm, pnpm, Yarn, Bun, Deno, pip, uv, Poetry, PDM, Pipenv, conda, Maven, Gradle, Go, Cargo, Composer, Bundler, NuGet, Paket, Julia, Mix, Pub, SwiftPM, CocoaPods, Stack, and Cabal. `harden` and `check` work for JavaScript, Python, Maven and Gradle projects, and in part for Deno. See [TuxCare builds](/guide/fix#builds). ## Options of sca and compare {#options} | Option | Command | What it does | | --- | --- | --- | | `--fail-on ` | `sca` | Exits with code 1 when an open finding is at this severity or higher: `critical`, `high`, `medium`, or `low`. Without it, `sca` only reports. | | `--fail-on-exploited` | `sca` | Exits with code 1 when an open finding is known exploited, at any severity. It combines with `--fail-on`: either gate fails the job. `--fail-on-exploited=false` turns the key `fail_on_exploited` off for one run. A finding that `--baseline-portal` skips, a finding that a TuxCare build fixes, a finding with no fix planned or a live-patched finding (see [below](/guide/reference#no-step)), and a dev finding under `--ignore-dev` do not fail this gate. `compare` has no such option: run `sca --fail-on-exploited` beside `compare --fail-on-new`. CLI 0.1.80 or later. See [the gate on known-exploited findings](/guide/ci-gates#gate-exploited). | | `--base ` | `compare` | The branch to compare with, for example `main`. Required. The base branch needs a scan of its own. | | `--fail-on-new` | `compare` | Exits with code 1 when the scan has an open finding that the latest scan of the base branch does not have. | | `--min-severity ` | `sca` | Hides the findings below this severity from the printed report. JSON and SARIF output still hold them. | | `--group-by ` | `sca` | Groups the printed findings by `ecosystem` (the default), `package`, or `severity`. | | `--output ` | both | The format of the result. `sca`: `human` (the default), `json`, `markdown`, or `sarif`. `compare`: `human` or `json`. `check` also writes `junit`. The JSON format is stable: use it in scripts. | | `--baseline-portal` | `sca` | Skips the findings that your team [ignores](/guide/findings#triage) in the portal. | | `--wait ` | both | How long to wait for the portal to match the scan. The default is `2m` for `sca` and `5m` for `compare`. | | `--release ` | `sca` | Records the scan as a release with this name. An empty name stops the run with exit code 2. See [Record a release](/guide/ci-releases#release). | | `--product-release ` | `sca` | Also adds the release to this product release. Needs `--release`. | | `--force-release` | `sca` | Replaces a release of the same name that another commit holds. Needs `--release`. | | `--on-portal-error warn` | `sca`, `image submit`, `check`, `guard`, `guard check` | Changes exit code 4 (the portal did not answer) to 0 with a warning. `guard` and `guard check` take `fail` too, and their default is `fail` in CI and `warn` on your computer: see [When the portal does not answer](/guide/malicious#portal-down). A signal that ends the wait for the verdicts, and a `guard` command that stops before the tool starts, stay exit code 4. In `guard` and `guard check`, a lockfile that the check did not read is no outage: `warn` does not lower it, and it stays exit code 5, or 2, also when the `--timeout` limit ended the wait. `sca` and `image submit` take the flag with the default `fail`. From CLI 0.1.97, under `fail` too, `sca --fail-on`, `sca --fail-on-exploited`, and `image submit --fail-on` exit with code 5, or 2, for a part that the run did not read (1 when a finding is at a gate), and not with code 4 for an outage at the upload, the release call, or the read of the findings: see [A portal that does not answer](/guide/ci-gates#gate-portal). | | `--timeout ` | all | The time limit of the whole command. The default is `20m`. `0` sets no limit. | | `--dir ` | all | The project root. The default is the current directory. | | `--ecosystem ` | all | Uses only this package manager, for example `npm`. You can give the option more than one time. In `sca`, `sbom`, and `compare` it also takes an ecosystem family, for example `golang` or `cargo`. From version 0.1.71, a name that the CLI does not know (for example `go`) stops the run with exit code 2, and the message lists the names. | ### Findings with no fix planned, and live-patched findings {#no-step} Some findings need no step from you. The portal gives an OS package of a TuxCare build the status `no_fix_planned` when TuxCare stated that it will not fix the finding on that build. It gives a finding the status `live_patched` when a live patch that is loaded on the host closes it. `sca` and `tuxcarectl image submit` read both statuses (a CLI release after 0.1.84): - The report lists the finding, and the `FIXED IN` column shows the reason: "TuxCare will not fix", or "live-patched". `--output json` gives the reason in `status_reason` of the finding. - The totals line counts these findings apart, for example "2 security vulnerabilities found in 1 component; TuxCare will not fix 3 findings; 1 finding is live-patched". Under `--fail-on`, `vulnerabilities.gate` of the JSON counts them in `no_fix_planned` and `live_patched`. - Such a finding never fails `--fail-on` or `--fail-on-exploited`. CLI 0.1.84 and earlier do not read these statuses: the run stops with exit code 4. Upgrade the CLI (see [Upgrade the CLI](/guide/install#upgrade)). A finding of an OS package of a TuxCare build that TuxCare is investigating (its VEX calls the build under investigation, and nothing else judges it) is not open either. The portal does not send it to the CLI: the report does not list it, and it never fails `--fail-on`. Before this status, such a finding was open. The [Hosts page](/guide/radar-hosts#investigating) of the portal lists it as **TuxCare is investigating**. ## Failure reports {#failure-reports} A run that ends with exit code 2, 3, 4, 5, 6, or 7 writes a failure report in `cache/failure-reports/`, the cache directory of the CLI (`TUXCARE_CACHE`). When the workspace takes reports (see [Failure reports](/guide/admin#failure-reports) of the admin page), a later run of the same token sends the reports that wait to the portal of that token. The CLI talks to no other host. Exit 0 and exit 1 are no failure, and a run with no token, or a run that a signal stopped, writes no report. A run that the `--timeout` limit ended is a failure, and writes its report. - A report holds only the words and numbers of the CLI: the command, the names of the flags, the exit code and its name, the class of the error, the names of the programs that the CLI started and their exit codes, the routes that it called and their status, the operating system, the architecture, and counts. For exit code 7, it also holds the function names with their full module paths and the lines of the CLI code where the error came. - A report never holds a path, an argument value, a host, a URL, a token, a package, or the text of an error, of a warning, or of a program. - The queue keeps at most 20 reports, for at most 7 days. A report never changes the exit code or the output of the run. - Turn the reports off on one computer with `TUXCARE_FAILURE_REPORTS=off`, or for one project with `failure_reports: off` in [`.tuxcare.yaml`](/guide/config#config). A setting that says off wins. `preview` writes the reports into the queue and sends nothing, so that you can read them first. - `tuxcarectl doctor` shows the setting and where it came from, the count of the reports that wait, and the time of the last send. `doctor --output json` also gives the reports that wait and the last 20 sent, and `doctor --bundle` adds the file `failure-reports.json` with the exact bytes of each of these reports. --- # The file .tuxcare.yaml URL: /guide/config The keys of the configuration file of the CLI, .tuxcare.yaml, which each command reads from the root of the project. ## The keys {#config} `tuxcarectl init` writes this file into the project root. Commit it. It holds no secret. The CLI refuses a key that it does not know, with exit code 2, so a typo does not go unseen. | Key | Meaning | | --- | --- | | `schema_version` | The version of the file format. Set it to `1`. The key is necessary: without it, the CLI stops with exit code 2. `tuxcarectl init` writes it. | | `registry` | The address of the registry, for example your own mirror. Without the key, the CLI uses the registry that the portal names. | | `tenant` | The name of your workspace. With this key, each command stops when the token belongs to another workspace. | | `ecosystems` | The package managers to use, when you do not want the CLI to find them, or the ecosystem families to scan, for example `[golang]` or `[cargo]`. The option `--ecosystem` does the same for one run. A family name (`golang`, `cargo`, `pypi`, and the others that the error message lists) makes `sca`, `sbom`, and `compare` scan only the families that the key names, as `--ecosystem` does. A list of package managers only (for example `[pnpm]`) chooses the package manager of its language, and the CLI still finds the other languages. A name that the CLI does not know stops the run with exit code 2. Family names in this key need version 0.1.71 or later. | | `ignore` | A list of paths to leave out, for example test fixtures that have lockfiles of their own. The CLI reads no dependency file under these paths and sends nothing from them. From version 0.1.71, a file under these paths also does not select a package manager: an unused `setup.py` under `ignore` does not make the CLI look for a Python environment. | | `submit.remote_repo_url` | The repository URL to file the scans under. Without it, the CLI reads the URL from the CI variables, else from the git remote `origin`. | | `baseline.portal` | `true` makes `sca` skip the findings that your team ignores in the portal, as `--baseline-portal` does. | | `fail_on_exploited` | `true` sets `sca --fail-on-exploited` for every run of the project. The option wins over the key. CLI 0.1.80 or later. | | `fix_on_unvouched` | `fail` (the default) or `warn`: the value of `fix --on-unvouched` when the command line does not give it. `warn` keeps exit code 0 of `fix` where it cannot vouch that no finding stays open. It is deprecated, each run that uses it prints a warning, and it is removed on 2027-12-01. The option wins over the key. `init` never writes it. Any other value stops each command that reads the file with exit code 2. See [--on-unvouched warn is deprecated](/guide/fix#fix-on-unvouched). | | `guard.min_release_age` | The release age of `tuxcarectl guard`, for example `24h`: a version that is younger does not reach the install, unless it is a TuxCare build or an admin allowed it. Absent or `0`: off. See [The release age](/guide/malicious#release-age). | | `guard.on_portal_error` | `fail` or `warn`: the value of `--on-portal-error` of `guard` and `guard check` when the command line does not give it. Absent: `fail` in CI, `warn` on your computer. | | `failure_reports` | `off` or `preview`: the [failure reports](/guide/reference#failure-reports) of the runs in this project. The key can only turn the reports off or to `preview`: `on` in the file changes nothing. Another value stops each command that reads the file with exit code 2. | | `dev_extras` | A list of the project's extras that hold only development tools, for example `["test"]`. A package that only these extras or a dependency group need is marked `(dev)`, and `sca --ignore-dev` keeps its findings out of `--fail-on`. The key applies to uv and Poetry projects. | | `reinstall` | The install command of the project, as a list, when it is not the default one. For example `npm: ["npm", "install", "--legacy-peer-deps"]`. | | `unharden` | The original lines that `init`, `harden`, and `update` changed. `unharden` reads them. The CLI writes this key: do not change it, except to set `project_dir` of an entry that has none before you share the file with another project directory (see [unharden](/guide/fix#unharden)). | --- # Exit codes URL: /guide/exit-codes The exit codes of the CLI (`tuxcarectl`), what each one means, and what to do about it. ## The codes {#exit-codes} Code 1 is the result of a gate. Each other code that is not 0 means that the run did not finish. | Code | Meaning | What to do | | --- | --- | --- | | 0 | The run finished, and no finding reached the level that fails the job. | Nothing. See [Troubleshooting: exit 0](/guide/help#exit-0). | | 1 | A finding failed the gate: a finding at the `--fail-on` level, a known-exploited finding under `--fail-on-exploited`, a new finding for `compare --fail-on-new`, a newer build for `update --check-only`, a problem that `check` found, or a finding that `fix` left. | Read the findings in the job log or in the portal. See [Troubleshooting: exit 1](/guide/help#exit-1). | | 2 | The command cannot run as you wrote it: a wrong option, a configuration file that the CLI cannot read, no package manager that it knows, or a browser sign-in in a CI job. | Read the message. Check the options and the directory. See [Troubleshooting: exit 2](/guide/help#exit-2). | | 3 | The token is missing, wrong, expired, or revoked, the workspace refused it, a [limit](/guide/audit#limits) stopped it, the `--tenant` pin does not match, or the workspace has no registry token. | Read the message. See [Troubleshooting: exit 3](/guide/help#exit-3). | | 4 | The portal did not answer in time, or its answer failed a check. A CLI that is too old also gets this code, and so does a CLI version that the portal blocks (CLI 0.1.86 or later): the message then gives the reason, the version to use, and the command that pins it. | Run the job again. Upgrade the CLI if the message tells you to. For a blocked version, do what the message says. See [Troubleshooting: exit 4](/guide/help#exit-4). | | 5 | A tool on your side failed: the install command of your package manager, or a file that the CLI cannot write. Starting with the release that adds [shared configuration locking](/guide/fix#shared-configuration), a wait for the lock also exits 5 if it reaches the timeout or the command cancels the wait after a signal. If a portal or OIDC token is set and `TUXCARE_PORTAL_URL` and `SECURECHAIN_PORTAL_URL` name different portals, the CLI stops before sending anything. The CLI also stops before sending anything when the portal token and URL are set under different families of variable names with no matching pair (CLI 0.1.94 or later), for example only `SECURECHAIN_PORTAL_TOKEN` and only `TUXCARE_PORTAL_URL`. See [The two names of each variable](/guide/install#var-names). | Read the job log. If the CLI was waiting for the lock, the error names the `--timeout` limit or the signal that ended the wait. For [mixed variable names](/guide/help#portal-variable-families), set both variables under one family or set the token or URL under both names with the same value. See [Troubleshooting: exit 5](/guide/help#exit-5). | | 6 | `harden`, `update`, `unharden`, or `fix` changed the project, but the installed packages are not the planned ones. The CLI put your files back. | Read the message: it names the package. [Contact TuxCare](/guide/help#help) if the error stays. See [Troubleshooting: exit 6](/guide/help#exit-6). | | 7 | An error in the CLI. The CLI prints "internal error: *what the run was doing*: *error*; please report this to TuxCare support" and writes no report file. | Run `tuxcarectl doctor --bundle file`, and send the archive to [TuxCare](/guide/help#help). See [Troubleshooting: exit 7](/guide/help#exit-7). | ## The last lines at a terminal {#terminal-lines} When you run the CLI at a terminal outside CI, it can end with two more lines on stderr. A run that exits with a code other than 0 prints the Troubleshooting entry of that code: ``` tuxcarectl: what to do about exit 4 (portal): https://sc.tuxcare.cloud/guide/help#exit-4 ``` The link names the guide of the portal of the run. A `tuxcarectl sca` scan that has a scan page in the portal and exits with code 0 or 1 also prints the next step: the [**Set up CI**](/setup-ci) page of your workspace, which writes the CI job for the scan. ``` tuxcarectl: next: add this scan to your CI pipeline: https://workspace.sc.tuxcare.cloud/setup-ci ``` A CI job log, a pipe, and a file get neither line. The lines change no exit code, no stdout, and no report. --- # REST API URL: /guide/api Read and change your workspace from a script or a dashboard with the REST API: the token, the base URL, examples with curl and jq, and the answers when the portal refuses a request. ## Before you start {#api-intro} An admin turns the API on, and you make a token with a preset for the API: see [Turn the API or MCP on](/guide/ai-connect#api-mcp-on). ## The REST API {#api-rest} The base URL is `https://name.sc.tuxcare.cloud/api/v1`. Send the token in the `Authorization` header. The API does not accept a token in the URL. ``` curl -fsS \ -H "Authorization: Bearer $SECURECHAIN_API_TOKEN" \ "https://name.sc.tuxcare.cloud/api/v1/repos?limit=20" ``` - A `GET` request needs the read permission. Any other method needs the write permission. - The OpenAPI document at `/api/v1/openapi.json` lists each route, its permission, and the role that it needs. It needs no token. - The role and the scope of the token apply, the same as in the browser. The [rate limit](/guide/audit#limits) of each token also applies. - The [examples](/guide/api#api-examples) list hosts and vulnerabilities. - Useful routes: the [exports](/guide/releases#export) (`/api/v1/export/findings`), the [compliance report](/guide/releases#report) (`/api/v1/repos/{id}/report`), and the [VEX file](/guide/releases#vex) of a release (`/api/v1/releases/{id}/vex`). ## Examples {#api-examples} The examples use [jq](https://jqlang.org/) to read the JSON. Put the token in a variable first: ``` export SECURECHAIN_API_TOKEN='' B=https://name.sc.tuxcare.cloud/api/v1 H="Authorization: Bearer $SECURECHAIN_API_TOKEN" ``` **The hosts**, as the [Hosts](/guide/radar-hosts#hosts) page lists them. Each `id` is the key of the host in the other routes: ``` curl -fsS -H "$H" "$B/hosts" | jq ``` Each host has its `id`, `name`, `os` (`almalinux-9.6`), `support` (`els`, `esu`, `essential`, or empty when the host has no TuxCare release file: the pages then show "Community", or "No TuxCare licence" on RHEL), the booted `kernel`, `live_patched_to` (the kernel build that KernelCare's patches bring it to), `addresses` (the addresses of its network interfaces), `submitted_from` (the address that its last scan came from), `last_scan`, `agent` (`tuxcare-radar/3.0.2`), `tags`, and the open `vulnerabilities` by severity. The route takes filters: `?os=almalinux-9.6` (the hosts of one release; the Hosts page has no such list, and sorts by the **OS** column instead), `?tag=prod`, `?q=web`. `?q=` also finds a host by an address: `?q=192.168.0.53`. ``` # one line per host: name, operating system, kernel, last scan, critical and total curl -fsS -H "$H" "$B/hosts" \ | jq -r '.[] | [.name, .os, .kernel, .last_scan, .vulnerabilities.critical, .vulnerabilities.total] | @tsv' ``` **The vulnerabilities of one host**, as its page lists them. Use the `id` from the list of hosts. The answer is the latest scan of the host: ``` curl -fsS -H "$H" "$B/repos/6/vulnerabilities" | jq ``` Each row has the `advisory` (a CVE id), its `summary`, the `packages` it is on, its `severity`, and the `fix`: the version that fixes it, or "no fix yet", "TuxCare will not fix", "live-patched by KernelCare", "kernel not running", "TuxCare is investigating", "not evaluated: TuxCare has not assessed this build". Add `?kernels=all` to include the installed kernels that the host does not run. ``` # the critical CVEs of host 6 that have a fix, as CSV curl -fsS -H "$H" "$B/repos/6/vulnerabilities" \ | jq -r '.vulnerabilities[] | select(.severity == "critical" and (.fix | test("^[0-9]"))) | [.advisory, (.packages | join(" ")), .fix] | @csv' ``` **Every vulnerability of the workspace**, with the hosts and other assets that have it, as the [Vulnerabilities](/guide/findings#vulnerabilities) page lists them: ``` curl -fsS -H "$H" "$B/vulnerabilities?severity=critical&kind=host" | jq ``` Each row has the `advisory`, `summary`, `severity`, and the `assets` (`id`, `name`, `kind`). `severity` takes a comma list in any case: `CRITICAL,HIGH`. Other filters: `exploited=1` (known exploited), `fixable=1`, `tuxcare=1` (TuxCare has a fix), `untriaged=1`, `reboot=1` (a reboot would close at least one of its findings, on a host that KernelCare does not patch), `kind=host`, `q=openssl`. **Files:** add `format=xlsx` or `format=csv` to `/repos/{id}/vulnerabilities` or `/vulnerabilities` for the report as a file, with the filters of the request. `/repos/{id}/vulnerabilities` also takes the filters of the host's table: `q`, `severity`, `fix` (for example `tuxcare`, `none`), and `triage`. ``` curl -fsS -H "$H" -OJ "$B/repos/6/vulnerabilities?format=xlsx&severity=critical,high" ``` ``` # one line per CVE with the names of its hosts curl -fsS -H "$H" "$B/vulnerabilities?severity=critical&kind=host" \ | jq -r '.[] | [.advisory, .severity, ([.assets[].name] | join(","))] | @tsv' ``` ## When the portal refuses a request {#api-mcp-refusals} | Answer | Cause | What to do | | --- | --- | --- | | 403 "this token cannot use the api channel" (or cli, mcp) | The token does not have that channel in its rights. | Make a token with a preset for that channel. | | 403 "API access is off for this workspace" (or MCP) | The switch of the channel is off. | Ask an admin to [turn it on](/guide/ai-connect#api-mcp-on). | | 403 "this token cannot read" (or submit, write) | The token does not have the permission, or the role of its user does not have it. | Make a token with the permission. A viewer can only read. | | 403 "this token does not allow requests from" an address | The token has a list of [allowed addresses](/guide/tokens#token-addresses), and the request came from another address. | Send the request from an allowed network, or change the list of the token. | | 403 "this workspace does not allow requests from" an address | The workspace has a list of allowed addresses for the API and MCP, and the request came from another address. | Ask an admin to add the network under [API and MCP access](/guide/ai-connect#api-mcp-on). | | 404 "no such route" | The path is wrong, or the channel is not available for your workspace. | Check the path in the OpenAPI document. [Contact TuxCare](/guide/help#help) if the channel is not available. | An AI assistant shows a 401, 403, or 404 as a connection error. --- # Troubleshooting URL: /guide/help What the common errors of the CLI and the portal mean, what to do about each, and how to get help from TuxCare. ## Common errors {#errors} | Error | Cause | What to do | | --- | --- | --- | | CLI exit 3 "no portal token" | The CLI found no token. | On your computer, run `tuxcarectl auth login`. In CI, set `TUXCARE_PORTAL_TOKEN` and check that the job can read it. GitLab gives a protected variable to protected branches only. GitHub gives no secret to a pull request from a fork. | | CLI exit 5 "the token and the portal URL are under two families of names" | The job sets the token and the URL under different families of names with no matching pair (CLI 0.1.94 or later). For example, the job sets only `SECURECHAIN_PORTAL_TOKEN` and gets the URL only as `TUXCARE_PORTAL_URL` from a CI group variable. The CLI sends nothing. | Set the token and the URL under the same family of names, or set either variable under both names with the same value. | | 401 "unknown or revoked token" | The token is wrong, revoked, [expired](/guide/tokens#token-expiry), or belongs to another workspace. A CI token of one repository also stops when the person who made it loses the member role on that repository, or the admin role for a token with the poll or write permission or the api or mcp channel. | Check the CI secret. Make a new token. | | The scans of a repository go to the wrong workspace | The CLI has a sign-in to more than one workspace, and this repository uses another one. | Read the line that starts with `workspace:` in the output of the scan. In the repository, run `tuxcarectl auth use workspace`, or set the key `tenant` in `.tuxcare.yaml`. A CLI before 0.1.46 keeps one sign-in only: upgrade it. See [More than one workspace](/guide/reference#workspaces). | | CLI exit 3 "this machine has a login to more than one workspace" | The command ran without a terminal, and this repository has no workspace yet. | Run `tuxcarectl auth use workspace` in the repository, or set `--tenant`. | | `auth login` exit 2 or 3 in CI "the browser sign-in does not run in CI" | The browser sign-in does not run in a CI job: nobody is there to sign in, and the job would wait until its time limit. A job whose standard input is a terminal stops with exit 2. A job with no terminal, which is the usual case, stops with exit 3. The portal gets no request. | Set `TUXCARE_PORTAL_TOKEN` in the job to a token from the [**Access tokens**](/tokens) page (**My tokens** in the account menu), or pipe the token to `tuxcarectl auth login --with-token`. See [In CI/CD](/guide/ci-other#cicd). | | `auth login` with no terminal prints a link and a code, and waits | Standard input is not a terminal and is empty, for example `docker run` with no `-i` and no `-t`. The CLI opens no browser. It prints the sign-in link and the code, and waits for the sign-in. An older CLI stops with exit 3 and "the browser sign-in needs a terminal". | Open the link in a browser on any device, check that the page shows the same code, and approve. The CLI then continues by itself. With `docker run -i` and no `-t`, standard input stays open, and the CLI waits for a token on it. When nothing comes within 2 seconds, the CLI prints "tuxcarectl waits for the portal token on standard input, and nothing came yet. Pipe the token to standard input. For the browser sign-in, close standard input (Ctrl-D in a Unix terminal), or run docker with no -i.", and goes on waiting. A token that you pipe in later still signs you in. For the browser sign-in, press Ctrl-D in a Unix terminal: standard input ends, and the CLI prints the link and the code. You can also run the command with no `-i`, or close standard input (`< /dev/null`). Do not enter the token by hand there: the terminal shows it on the screen. CLI 0.1.79 prints no line and waits with no message: press Ctrl-D, or run it with no `-i`. In a script, set `TUXCARE_PORTAL_TOKEN`, or pipe the token to `tuxcarectl auth login --with-token`. With an older CLI, upgrade it, or run the command in a terminal, for example with `docker run -it` or `ssh -t`. | | `auth login` exit 3 "the login was denied", or the code expired | Somebody selected **Deny**, the workspace refused the login, or nobody approved in time. | Run `tuxcarectl auth login` again and approve in the browser. A viewer can sign in, but cannot send scans. | | `auth login` exit 2 "this portal does not support browser login. Pipe a token to `tuxcarectl auth login --with-token`" | The portal at the URL of the CLI answered 404 to the start of the browser sign-in. A portal version from before the browser sign-in answers so, and so does an address that is not the portal itself. | Check that the portal URL names your portal. Make a [token](/guide/tokens#access-tokens) in the portal and pipe it to `tuxcarectl auth login --with-token`. | | 403 "this token cannot submit" (or read, write) | The token does not have the permission, or the role of its user does not have it. A token of a viewer cannot send scans. | Make a token with the **CI token (one repository)** preset, or ask an admin to change your role. | | 403 "this token cannot use the cli channel" (or api, mcp) | The token does not have that channel in its [rights](/guide/tokens#token-rights). | Make a token with a preset for that channel, for example **CI token (one repository)** for the CLI. | | 403 "this token is scoped to one repository" | A repository token asked for another repository. | Use the token of that repository, or check the repository URL that the CLI sends. | | CLI exit 2 "the portal token is scoped to the repository …, and the command sent the repository …" | A CI token of one repository runs in another repository, for example a fork, or a project that copied the CI secret. The portal matches the URL exactly, so the same repository with another spelling (`.git` at the end) also stops. Nothing was stored. A CLI before this change exits 4 with "repo_url does not name this token's repo". | Make a CI token for this repository and put it in its CI secret. If the token's repository is this project, set `submit.remote_repo_url` in `.tuxcare.yaml` to the URL that the message names for the token. | | CLI exit 2 "tuxcarectl found no repository URL for this project, and the portal needs one for a token with scope "user"" | The project has no git remote `origin`, and the CI variables name no repository, for example a new local repository. The token is not scoped to one repository, so the portal needs the repository URL to file the scan. Nothing was sent. | Add the remote (`git remote add origin URL`), or set `submit.remote_repo_url` in [`.tuxcare.yaml`](/guide/config#config). A token scoped to the repository also works. | | 403 "this action needs the member role" | Your role cannot make this change. | Ask an admin to change your role. | | 403 "API access is off for this workspace" (or MCP) | An admin has not turned the channel on. | Ask an admin to [turn it on](/guide/ai-connect#api-mcp-on). | | 400 with zero components | The CLI found no packages to send. | Run the CLI in the project root, or use `--dir`. Check that the lockfile exists and is committed. | | The scan has no branch | The CLI ran on a detached HEAD outside a CI system that it knows. | Check out the branch before the scan, for example `git checkout -B main`. | | Warning "git is not installed, so tuxcarectl listed the project's files with a directory walk" | The image of the job has no git. The scan goes on, with two differences. The directory walk does not apply the `.gitignore` of the project, so it can read files that git ignores. The scan does not record the path of the project in the repository, so the portal cannot tell two projects of one repository (a monorepo) apart. In CI, the repository URL, the branch, and the commit still come from the CI variables. | Install git in the image, for example with `apt-get install git`, `apk add git`, or `dnf install git`. | | A finding on `pip`, `setuptools`, or `wheel` whose WHERE is the environment, for example "/usr/local (environment tooling)" or ".venv (environment tooling)" | The package came with the Python image or with the virtual environment, and no file of the project declares it. In a conda environment, `conda` can show the same way. A line under the table names the environment and its packages. The finding is a real vulnerability in the image that runs the project, so it still counts for `--fail-on`. | Upgrade the environment, not `requirements.txt`. Use a newer base image, or run `python -m pip install --upgrade pip` in the environment, with each package that the line names. For a virtual environment, run `python -m venv --upgrade-deps environment`. For a conda environment, run `conda update -p environment packages`. | | "--fail-on high could not fail this build: the advisory match is incomplete" | The CLI cannot show that every package of the scan was checked, so the result is not clean. The CLI could not read all the findings of the portal, or could not place them on the packages of the report, the portal has no advisory source for a package type of the project (the report lists those packages under NOT ANALYSED), or the match did not end. A message "this scan is incomplete" means that the match is complete, but the CLI could not read, match, or apply a part of the project: each refusal of the report names that part. From CLI 0.1.86, such a scan under `sca --fail-on` or `sca --fail-on-exploited` fails the job: see the next two rows. | Read the vulnerabilities section of the output: it tells you why. Fix the cause, and run the command again. A complete scan with no finding prints "clean: *N* packages checked, no finding at or above high" and exits 0. A CLI of version 0.1.74 or earlier can print "could not fail this build: no vulnerability finding in this report has a severity" for a clean scan too. | | CLI exit 5 or 2 "--fail-on *level*: no finding reached the bar, but tuxcarectl did not read *N* part(s) of this project, so this build does not pass" | No finding reached the level of `--fail-on`, and the scan did not read a part of the project (CLI 0.1.86 or later). Exit 5: you can fix each part, and the message names the fix of each one, for example a lockfile that does not parse. Exit 2: each part is a gap of tuxcarectl, for example a file that tuxcarectl does not support. CLI 0.1.94 or later names itself `tuxcarectl` in the message. | Exit 5: do the fix that the message names, and run the job again. Exit 2: report it to [TuxCare support](/guide/help#help). To keep exit 0 until 2027-12-01, give `--accept-unread all`, or set `accept_unread: all` in `.tuxcare.yaml`. See [A part of the project that the run did not read](/guide/ci-gates#gate-unread). | | CLI exit 5 or 2 "--fail-on-exploited: no finding that can fail this build is known exploited, but tuxcarectl did not read *N* part(s) of this project, so this build does not pass" | The same, for `sca --fail-on-exploited` with no `--fail-on` (CLI 0.1.86 or later). CLI 0.1.82 to 0.1.85 printed a warning and exited 0. Exit 5: the message names the fix of each part. Exit 2: each part is a gap of tuxcarectl. | The same as in the row above. | | Warning "--accept-unread all is deprecated, and is removed on 2027-12-01" | The run used `--accept-unread all`, or the key `accept_unread: all`. The warning goes on: "It keeps exit 0 of --fail-on and --fail-on-exploited over a part of the project that tuxcarectl did not read." Each run that uses it prints the warning, whatever it read. | Fix each part that a refusal of the report names. Then remove `--accept-unread all`, and the key `accept_unread: all` of `.tuxcare.yaml`, before 2027-12-01. | | CLI exit 5 or 2 from `image submit` "--fail-on *level*: no finding reached the bar, but tuxcarectl did not read *N* part(s) of this image, so this build does not pass" | A package reader left part of the image unread and no finding failed a gate. Exit 5 covers a malformed SQLite RPM database, an unexpected end of JSON input in `package.json`, or a dpkg `Status` value in `/var/lib/dpkg/status` without exactly three whitespace-separated words. Other reader errors give exit 2. Earlier releases warned and exited with code 0 when no finding failed a gate. | For exit 5, follow the repair in the message and rebuild the image. For exit 2, report the reader failure to [TuxCare support](/guide/help#help). To skip the unread-part exit until 2027-12-01, use `--accept-unread all`. See [A part of a container image that the run did not read](/guide/ci-gates#gate-image-unread). | | Warning of `image submit` "--accept-unread all is deprecated, and is removed on 2027-12-01" | The `--accept-unread all` flag skips the unread-part exit from `--fail-on`. Findings can still fail a gate. The CLI emits one deprecation warning per run that uses the flag. The override is available only as a command-line flag for `image submit`. | Fix the image or report the reader to [TuxCare support](/guide/help#help). Then remove `--accept-unread all` before 2027-12-01. | | CLI exit 4 | The portal did not answer in time, the CLI is older than the portal accepts, or the portal blocks this version of the CLI (CLI 0.1.86 or later). | Run the job again. If the message tells you to upgrade, see [Upgrade the CLI](/guide/install#upgrade). For a blocked version, the message gives the reason, the version to use, and the command that pins it: do what it says. | | 202 on findings | The portal is still matching the scan. | Wait some seconds and read again. The CLI does this for you. | | 429 | A [limit](/guide/audit#limits) or the rate limit. | Read the `quota` field and the `Retry-After` header. | [Exit codes](/guide/exit-codes#exit-codes) lists what each exit code of the CLI means. ## Errors with TuxCare builds {#errors-builds} These errors come from the CLI or from your package manager, in a project that [uses TuxCare builds](/guide/fix#builds). | Error | Cause | What to do | | --- | --- | --- | | CLI exit 3 "the portal holds no registry credential for this tenant" | The workspace has no registry token. | Ask an admin to save it under [**Settings** › **Registry and CLI**](/settings/registry) › [**Registry token**](/guide/registry#registry-token). | | CLI exit 4 "the portal … does not support /securechain/v1/registry-credential" after `auth login` or `registry login` | The setting **Use the TuxCare registry** is off for the workspace or the repository, and the CLI does not know the setting yet. After `auth login`, the sign-in is saved. The CLI wrote no registry and no token into the files of your package managers. A portal that serves no registry credential route gives the same message. | If your builds use only your own package repositories, nothing is wrong. Else ask an admin to turn the setting on for the workspace, or a member or an admin of the repository to turn it on for the repository: see [Use the TuxCare registry](/guide/fix#registry-use). If the setting is on, the portal needs an update: ask your TuxCare administrator, as the message says. | | `E401` from the package manager during an install | The package manager has no credential for the TuxCare registry. | On your computer, run `tuxcarectl registry login`. In CI, get the credential before the install step: see [TuxCare builds in CI](/guide/fix#builds-ci). | | After `auth login`, pip, npm, or another package manager installs from the TuxCare registry, and you did not expect it | The setting **Use the TuxCare registry** is on, so `auth login` wrote the registry into the configuration files of the package managers in your home directory, for example `pip.conf` and `~/.netrc`. The output of `auth login` lists these files. With CLI 0.1.69 or later, the first line of each file names the CLI and the command that removes the lines. | Run `tuxcarectl auth logout`: it removes the registry lines, and it signs the computer out. If your builds use only your own package repositories, ask an admin or a member of the repository to turn the setting off before you sign in again: see [Use the TuxCare registry](/guide/fix#registry-use). See [The files that auth login and registry login write](/guide/reference#auth-files). | | CLI exit 5 "tuxcarectl did not run *command* in *directory* with the registry credential: *file* turns the TLS check off for *host*", or "registry env wrote no job directory and printed no variables" | A file of the project turns off the TLS check of pip, uv, pdm, pipenv, or Poetry for the host of the TuxCare registry: `--trusted-host` in a requirements file, `allow-insecure-host` in `pyproject.toml` or `uv.toml`, `verify_ssl = false` in a source of pdm or of the `Pipfile`, or in `pdm.toml`, or `cert = false` in `poetry.toml`. The lockfile counts too: a source in `_meta.sources` of `Pipfile.lock` whose `verify_ssl` is not `true`, because `pipenv sync` takes the sources of the lockfile. The CLI reads these files in the folder of the command and in each folder above it. It also reads them in each member of a uv workspace (a folder that a glob of `[tool.uv.workspace] members` names), and in each local path dependency of the project: the path of a source of `[tool.uv.sources]`, a requirement `name @ file:…`, a chain of them, and the members of a workspace whose root is one. The message then names the file of that folder. The tool would send the registry credential over a connection that it does not verify. So a run with the registry credential stops before it runs the tool, and `registry env --job-dir` writes no job directory. The message names the file and the setting. The package tools of such a run no longer get the registry key at all: see [The package tools of a run get no registry key](/guide/help#run-key). | Remove the setting from the file. In `Pipfile.lock`, remove the setting, or remove the lockfile and lock again from project files that pass the check. If your network needs a certificate authority, give it where your tool reads it — `cert` in your own `pip.conf` or `PIP_CERT` (pip), `SSL_CERT_FILE` or `--system-certs` (uv), `PIP_CERT` or `REQUESTS_CA_BUNDLE` (pipenv), `REQUESTS_CA_BUNDLE` (PDM, Poetry — their own `ca_certs` or `cert` stops the run too) — not in the project. `tuxcarectl check` reports each such setting as `registry-transport-in-project` and gives the same per-tool CA advice. On uv, it also reports a setting in a member of a uv workspace or in a local path dependency, and names the file by its path from the project (`packages/a/pyproject.toml`, `../lib/pyproject.toml`). A member glob that `check` cannot read to its end is a High finding with the key `registry-transport-in-project:file:tool.uv.workspace.members`, and more than 10,000 path dependency folders is a High finding with the key `registry-transport-in-project:file:tool.uv.sources.path`. | | CLI exit 5 "*tool*: tuxcarectl did not run *tool* in *directory* with the registry credential: *file* turns the TLS check off", or "registry env wrote no job directory and printed no variables" | A project `.npmrc` sets `strict-ssl` to a value other than `true`, or a `pnpm-workspace.yaml` sets `strictSsl` to a value other than `true`, and the pnpm of the run takes that setting: pnpm 12.0 to 12.15 for `.npmrc`, and pnpm 10.6 to 10.x for `pnpm-workspace.yaml`. For an `.npmrc`, the CLI reads a key under a `[section]` at the top level and a key with a variable such as `${X?}` with the variable empty. On a pnpm in the range of the file it also refuses a key in quotes or with a JSON escape, a key after a bare carriage return, and a key cut at `#`: pnpm 11 or a later pnpm 12 reads such a spelling, and the refusal is wider than each pnpm on purpose. An `.npmrc` that sets `strict-ssl=false` and then `true` on a later line with the key in another spelling (in quotes, in upper case, or with `_`, `--`, or `[]`) is refused too: pnpm 12.0 to 12.15 take only the key `strict-ssl`, so for them the `false` stays. A `.yarnrc` keeps the reading of Yarn 1. The commands that run pnpm with the registry credential stop at these settings before pnpm starts, and `registry env --job-dir` writes no job directory. `tuxcarectl check` reports a `strict-ssl` value other than `true` in each of these readings as a High finding of `registry-transport-in-project`; this finding does not depend on the pnpm version. | Remove the setting from the project file. If your network needs a certificate authority, put it in the `cafile` of your own `~/.npmrc`, or use pnpm 12.16 or later for `.npmrc` (11.0 or later for `pnpm-workspace.yaml`). Then run the command again. | | CLI exit 5 "tuxcarectl did not run *command* in *directory* with the registry credential: *file* names an index on plain http of *host*", or "*file* turns the TLS check off for *host* with *variable*" for a `.env` | The TuxCare registry is on `https`, and a Python project names its host on plain `http`: an `index-url`, `extra-index-url`, or `find-links` in a requirements file, an index of uv, or a source of pdm, of the `Pipfile`, or of Poetry. The lockfiles count too: a source `url` of `_meta.sources` or the `file` of a package in `Pipfile.lock`, and an `http` URL of the registry host in `uv.lock` or `pdm.lock`, because `pipenv sync`, `uv sync`, and `pdm sync` fetch from them. The tool would send the registry credential in plain text. Or the `.env` that pipenv loads sets `REQUESTS_CA_BUNDLE`, `PIP_CERT`, `SSL_CERT_FILE`, `CURL_CA_BUNDLE`, `PIP_CONFIG_FILE`, or `PIP_TRUSTED_HOST`: then the project chooses the certificate that pipenv trusts for the registry. The CLI reads these files in the folder of the command and in each folder above it, in each member of a uv workspace, and in each local path dependency of the project, as for [a setting that turns the TLS check off](/guide/help#python-tls-off). A uv command also makes the CLI read the requirements files that it names (`-r`, `-c`, `--overrides`, `-b`, `--excludes`, `--with-requirements`, the files of `UV_CONSTRAINT`, `UV_OVERRIDE`, `UV_BUILD_CONSTRAINT`, and `UV_EXCLUDE`, and each file of `uv pip compile` and `uv pip sync`), and each file that they name with `-r` or `-c`. An index on plain `http` of the registry host in such a file counts. A `--trusted-host` there does not count, because uv ignores it. Each local folder that the command or a line of these files names (`-e ../lib`, `../lib`, `name @ file:…`) counts as a local path dependency. A pip command reads the local folders of its requirements files too. When the CLI cannot read each member of a uv workspace, the message says "it did not read each of the members of the uv workspace". When the project has more than 10,000 local path dependency folders, the message says "it did not read each of the local path dependencies of the project". So a run with the registry credential stops before it runs the tool, and `registry env --job-dir` writes no job directory. The package tools of such a run no longer get the registry key at all: see [The package tools of a run get no registry key](/guide/help#run-key). | Use `https` for the registry. In a lockfile, use `https`, or remove the lockfile and lock again from project files that pass the check. If your network needs a certificate authority, give it where your tool reads it, as [the row above](/guide/help#python-tls-off) says, not in the `.env` of the project. `tuxcarectl check` reports each one as `registry-transport-in-project`. | | CLI exit 5 "*tool*: tuxcarectl did not run *tool* in *directory* with the registry credential, because *file*:*line* names an http URL on *host*, the host of the TuxCare registry" | `harden`, `update`, or `fix` on npm, pnpm, or Yarn 1: a file of the project names an `http` URL on the host of the TuxCare registry. The files are a scope registry of `.npmrc` or `.yarnrc`, `package.json`, `package-lock.json`, `npm-shrinkwrap.json`, `pnpm-lock.yaml`, `pnpm-workspace.yaml`, and `yarn.lock`. The command reads these files in its directory and in each directory above it, in each folder below the root of the workspace, so also in each workspace member, and in each local dependency that a `package.json` names with `file:`, `link:`, or a path: a folder or a tarball. For a file in a tarball, the message names *tarball*:package/*name* as the file. On Bun, the command reads `.npmrc`, `package.json`, `bunfig.toml`, and `bun.lock` in its directory and in each directory above it. Bun fills in a variable of `bunfig.toml` or `.npmrc` from a `.env` file of the project. So the CLI reads each `$NAME` and `${NAME}` of these files with the values of the `.env` files too. It reads each `.env` file that Bun can load: `.env`, `.env.local`, `.env.development`, `.env.production`, and `.env.test`, each also with `.local` at the end. When such a `.env` file sets the variable to an `http` URL on the host, the message says that *file*:*line* "names a variable that" the `.env` file "sets to an http URL on" the host, and names the `.env` file. The tool sends the registry key of that host to each address on the host, also over plain `http`, where anyone on the network path can read it. So the command does not run the tool. The package tools of such a run no longer get the registry key at all: see [The package tools of a run get no registry key](/guide/help#run-key). | Use `https` in the line that the message names. For a `.env` file, use `https` in the value of the variable. In a lockfile, change the URL, or remove the entry and install again. Then run the command again. In CI, `registry env --job-dir` refuses the same files: see [TuxCare builds in CI](/guide/fix#job-dir-http). `tuxcarectl check` reports each place that the run reads as `registry-transport-in-project`: `package.json`, the lockfiles, the workspace members, the `file:` and `link:` dependencies, `pnpm-workspace.yaml`, `bunfig.toml`, `bun.lock`, and the files in the directories above the project. It gives one finding for each file, with the key `registry-transport-in-project:file:http-url`. | | CLI exit 5 "*tool*: tuxcarectl did not run *tool* in *directory* with the registry credential, because *file*:*line* sets *setting*, a certificate authority of the project", or a warning of `registry env --job-dir` "*tools*: *file*:*line* sets *setting*, a certificate authority of the project" | A command with the registry credential found a project file that names a certificate authority: `ca` or `cafile` of `.npmrc` (npm, pnpm, Yarn 1), of `.yarnrc` (Yarn 1), or of `pnpm-workspace.yaml` (pnpm); a `cert` path of `[certificates.name]` in `poetry.toml`; or `ca_certs` of a PDM source or of `pdm.toml`. For pnpm, it also names the certificate authority of one registry in `.npmrc`: `URL:cafile` or `URL:ca` in lower case (for example `//registry host/:cafile`), the key also in double or single quotes (`"//registry host/:cafile"=./ca.pem`), when its host is the host of the TuxCare registry (any port and path) or a host that the CLI cannot read. A value `null` in any case counts too (`null`, `NULL`, `Null`): pnpm 11.21.0 opened `NULL` as a file, and pnpm 12.21.0 also `null`, so only an empty value names no authority. The CLI also reads the key as the ini reader of pnpm 11 reads it: a JSON escape in a key in double quotes (`"//registry host/:\u0063afile"` is `//registry host/:cafile`), also inside single quotes; a key with no quotes that ends at an unescaped `#` or `;` (`//registry host/:cafile#x`); and a key after a carriage return with no line feed, which ends a line. The CLI also reads a key with a variable `${X}` or `${X?}` with the variable empty, so `${X?}cafile=./ca.pem` counts as `cafile`. A `.yarnrc` keeps the reading of Yarn 1. Such a variable key, a quoted key, and a value `null` stop a command with the registry credential at exit 5, with no warning release first, and `tuxcarectl check` reports them: pnpm 11.21.0 or 12.21.0 used the authority of each such line, so a server that this authority signs could get the key. The authority of another host does not count, and neither do the same key in `pnpm-workspace.yaml` and the spellings that pnpm ignores (`:cafile[]`, `:ca[]`, `:CAFILE`, `:ca_file`, a leading `--`). npm and Yarn 1 do not use the key. The message names the key with no user info of its URL, and the warning of `registry env --job-dir` names the same settings. A command that reaches an https registry through the guard still stops at such a key of any host — the keys are `ca`, `ca[]`, and `cafile` of `.npmrc` (and of `.yarnrc` for Yarn 1) — also in upper case or as `URL:ca[]`, in double or single quotes as at the same key with no quotes, read as the ini reader of pnpm reads the key, or with the value `null` in any case; only an empty value names no authority. The message of [the next row](/guide/help#tool-ca) names the file. The CLI reads these files in the directory of the command and in each directory above it, up to the root of the checkout. The tool would trust each certificate that this authority signs, also for the host of the TuxCare registry, so a host that the repository chooses would get the registry key. On the other CA settings of this row, CLI 0.1.97 or later exits 5 before it starts the tool; CLI 0.1.95 and 0.1.96 ran the tool and warned. For Poetry and PDM the message reads "*tool*: tuxcarectl did not run *command* in *directory* with the registry credential: *file* names a certificate authority of the project for *host* with *setting*". CLI 0.1.97 or later warns on such a setting of the checkout in `registry env --job-dir` and still writes the job directory; a later CLI release refuses the checkout with exit 5 and writes none. A CA setting of your own stops the command too: see [the next row](/guide/help#tool-ca). | Remove the setting from the project. Put a certificate authority that your network needs in `NODE_EXTRA_CA_CERTS`, in the `cafile` of your own `~/.npmrc` (npm, pnpm, Yarn, Bun), or in `REQUESTS_CA_BUNDLE` (PDM, Poetry). `tuxcarectl check` reports the setting as `registry-transport-in-project`. For the certificate authority of one registry, `tuxcarectl check` reports a High finding with the key `registry-transport-in-project:file:URL:cafile` (or `:ca`). CLI 0.1.97, the first release with that check, gave only a note; the High finding is the default since CLI 0.1.99. For `ca` and `cafile` of each host, the finding key stays `registry-transport-in-project:file:cafile` (or `:ca`), and the finding reads the quoted, escaped, comment-cut, and carriage-return forms with a value other than an empty one. Then run the command again. | | CLI exit 5 "*tool*: tuxcarectl did not run *tool* in *directory* with the registry key, because *file or variable* names a certificate authority for *tool*" Warning "tuxcarectl could not prepare the certificate authority of this command" or a warning that a Python tool's host has no file of system certificate authorities. Warning "*tool*: *tool* in *directory* did not trust the certificate authority that tuxcarectl made for *host*" | When a CA setting replaces the tool's list, the CLI exits 5 before the tool runs. The message names the file or variable and omits its value. CLI 0.1.93 to 0.1.96 ran the tool with the registry key in its setting for the host alone and warned. For npm, pnpm, Yarn 1, and Bun, the CLI refuses inline `ca` or `ca[]` in the npm user configuration, `npm_config_ca`, and a `cafile` in the npm user configuration that the run cannot read. A readable `cafile` in that configuration works because the run joins it with its own certificate authority. The variable `npm_config_cafile` stops npm and Yarn 1. pnpm and Bun add its file to their CA list and run. For PDM, the CLI refuses `[pypi] ca_certs` in the user configuration. For Poetry, it refuses a `cert` path under `[certificates.source]` in the user configuration or a `POETRY_CERTIFICATES_SOURCE_CERT` variable. The CLI also checks files above the checkout root, stopping before the home directory. It checks `ca`, `ca[]`, and `cafile` in `.npmrc` for npm, pnpm, Yarn 1, and Bun and in `.yarnrc` for Yarn 1; in `pnpm-workspace.yaml` for pnpm it checks `ca` and `cafile`. It checks `ca_certs` in `pdm.toml` for PDM and a `cert` path in `poetry.toml` for Poetry. A project `.npmrc` with `ca` or `cafile` also stops Bun at exit 5. Bun 1.4.4 replaces its CA list when the file sets `cafile`. See the [project CA refusal](/guide/help#project-ca) for the other tools. The preparation warning and the warning about a missing system CA file describe the [two cases where the tool receives the key](/guide/reference#run-key-exceptions). The warning that the tool did not trust the run's CA means that the tool got no package from the registry host. | For the exit 5 refusal, remove the setting or move the CA to `NODE_EXTRA_CA_CERTS` or a readable `cafile` in your own `~/.npmrc` for npm, pnpm, Yarn 1, or Bun. For PDM or Poetry, use `REQUESTS_CA_BUNDLE`. If the tool did not trust the run's CA, move the CA to `NODE_EXTRA_CA_CERTS` for npm, pnpm, Yarn 1, or Bun. For pip, uv, Pipenv, PDM, or Poetry, follow the [per-tool Python CA advice](/guide/help#python-tls-off). Then run the command again. | | `ETARGET` "No matching version found" for a version that ends in `-tuxcare.N` | A tool looked for a TuxCare build among the public packages. `npm update` does this, and so does an install with no lockfile. | Commit the lockfile and install from it. Move the builds with `tuxcarectl update`. See the [rules](/guide/fix#rules). | | Bun "*name*@*range* failed to resolve", after "No version matching" for a version that ends in `-tuxcare.N` | The `overrides` or `resolutions` block of `package.json` is not the block that `bun.lock` recorded: someone added or changed a key. Bun then resolves every override again, and the registry of the project, `/npm-upstream/`, has no TuxCare builds. `tuxcarectl check` reports this as `bun-lockfile-overrides`, for most forms of key. | Run `BUN_CONFIG_REGISTRY=https://registry host/npm/ bun install` once, then commit `bun.lock`. The registry host is in the `registry:` line of `.tuxcare.yaml`. See the [rule for Bun](/guide/fix#bun-overrides) in the [rules](/guide/fix#rules). | | `EINTEGRITY` from npm | The lockfile has the hash of the public package for an address that now serves a TuxCare build. A project that a CLI before 0.1.16 set up can have this. | Run `tuxcarectl init`, then `tuxcarectl harden`, and commit the lockfile. See [the two paths of the registry](/guide/fix#npm-paths). | | `harden` exit 2, with a message that names another registry | The package manager of the project does not use the TuxCare registry. | Run `tuxcarectl init`, commit the files, and run `harden` again. | | `harden` exit 4 on a Java project | Only CLI v0.1.97 or earlier stops here: it needed a BOM file from TuxCare. CLI 0.1.99 or later takes the versions from the portal answers, as on JavaScript and Python, and needs no BOM file. | Run `tuxcarectl upgrade`, then run `harden` again. | | CLI exit 6 | `harden`, `update`, `unharden`, or `fix` changed the project, but the installed packages are not the planned ones. The CLI put your files back. | Read the message: it names the package. Contact TuxCare if it stays. | ### The package tools of a run get no registry key {#run-key} In a run of `harden`, `update`, `fix`, or `registry check` with an `https` registry, the package tools npm, pnpm, Yarn 1, Bun, pip, uv, PDM, Pipenv, and Poetry get no registry key. tuxcarectl adds the key itself to each request to the host of the registry. It sends the request over a connection that it checks with your system certificate authorities and with your own settings: `SSL_CERT_FILE`, `NODE_EXTRA_CA_CERTS`, `REQUESTS_CA_BUNDLE`, `PIP_CERT`, the `cafile` of your own npm configuration, `CARGO_HTTP_CAINFO`, and `http.cainfo` of your own cargo configuration. tuxcarectl reads that configuration from the folder `CARGO_HOME`, else `~/.cargo`: the file `config` when it exists, else `config.toml`. When `TUXCARE_CA_BUNDLE` is set, tuxcarectl checks the connection with that bundle alone, so put each certificate authority that your network needs into that bundle. A certificate authority of a project file is never trusted for this connection. A CA setting that replaces the tool's certificate authorities stops the command at exit 5. This includes `ca` or `cafile` in a project `.npmrc` for Bun. See [the CA refusals and warnings](/guide/help#tool-ca) for the settings each tool checks and where to move your CA. A project file that sends a tool past tuxcarectl, for example through another proxy, sends no key: the registry answers 401, and the command exits 5. A corporate TLS proxy keeps working when its certificate authority is in your own settings above. Yarn 2 or later, Maven, and Gradle are not in this rule: they get `TUXCARE_TOKEN` alone. Each other program that the CLI starts in such a run — Deno, cargo, go, gem, a node that runs no package tool, and the rest — gets no key: `TUXCARE_TOKEN` is empty for it. ## Errors by exit code {#by-exit-code} Each exit code of the CLI and the errors of the tables above that end with it. [Exit codes](/guide/exit-codes#exit-codes) says what each code means. ### Exit 0 {#exit-0} The run finished, and no finding reached the level that fails the job. If you expected the job to fail, check the `--fail-on` level of the command. See [Gates and pull requests](/guide/ci-gates). ### Exit 1 {#exit-1} A finding failed the gate. This is a result, not an error: read the findings in the job log or in the portal. See [Gates and pull requests](/guide/ci-gates). ### Exit 2 {#exit-2} The command cannot run as you wrote it. Read the message, and check the options and the directory. - [The browser sign-in does not run in CI](/guide/help#auth-in-ci) - [This portal does not support browser login](/guide/help#no-browser-login) - [The portal token is scoped to another repository](/guide/help#repo-out-of-scope) - [No repository URL for this project](/guide/help#no-repository-url) - [--fail-on: parts of the project were not read](/guide/help#fail-on-unread) - [--fail-on-exploited: parts of the project were not read](/guide/help#fail-on-exploited-unread) - [--fail-on of `image submit`: parts of the image were not read](/guide/help#image-fail-on-unread) - [`harden` and another registry](/guide/help#harden-other-registry) ### Exit 3 {#exit-3} The token or the workspace stopped the run. - [No portal token](/guide/help#no-token) - [Unknown or revoked token](/guide/help#unknown-token) - [A login to more than one workspace](/guide/help#many-workspaces) - [The browser sign-in does not run in CI](/guide/help#auth-in-ci) - [The login was denied, or the code expired](/guide/help#login-denied) - [The token cannot submit, read, or write](/guide/help#token-permission) - [The token cannot use the channel](/guide/help#token-channel) - [The token is scoped to one repository](/guide/help#token-repo-scope) - [API or MCP access is off](/guide/help#channel-off) - [A limit of the workspace](/guide/help#limit) - [No registry credential](/guide/help#no-registry-credential) ### Exit 4 {#exit-4} The portal did not answer in time, or its answer failed a check. - [The portal did not answer, or the CLI is too old](/guide/help#portal-no-answer) - [The portal refused a scan with zero components](/guide/help#zero-components) - [The rate limit](/guide/help#limit) - [The portal does not support the registry credential](/guide/help#registry-unsupported) - [`harden` on a Java project](/guide/help#harden-java) ### Exit 5 {#exit-5} A tool on your side failed, or a setting on your side stopped the run before it sent anything. - [The token and the portal URL are under two families of names](/guide/help#portal-variable-families) - [--fail-on: parts of the project were not read](/guide/help#fail-on-unread) - [--fail-on-exploited: parts of the project were not read](/guide/help#fail-on-exploited-unread) - [--fail-on of `image submit`: parts of the image were not read](/guide/help#image-fail-on-unread) - [A Python file turns the TLS check off](/guide/help#python-tls-off) - [An npm or pnpm file turns the TLS check off](/guide/help#npm-tls-off) - [A Python index on plain http](/guide/help#python-plain-http) - [An npm registry on plain http](/guide/help#npm-plain-http) - [A certificate authority of the project](/guide/help#project-ca) - [A certificate authority of the tool](/guide/help#tool-ca) - [The package tools of a run get no registry key](/guide/help#run-key) ### Exit 6 {#exit-6} The installed packages are not the planned ones. See [CLI exit 6](/guide/help#install-differs). ### Exit 7 {#exit-7} An error in the CLI. Run `tuxcarectl doctor --bundle file`, and send the archive to [TuxCare](/guide/help#help). ## Diagnose your setup: doctor {#doctor} ``` tuxcarectl doctor tuxcarectl doctor --bundle support.tar.gz ``` `doctor` checks the environment of the CLI: the package managers and their versions, the configuration files, the connection to the portal, and the proxy and CA settings. It prints what it finds and changes nothing. The line `flags` names each rollout flag of the build, `on` or `off`, and what set it: `portal` (your portal sent the value) or `default` (the default of the build). When the portal sent no flags, the line says so. A flag is not a check: it does not change the result of `doctor` (CLI 0.1.86 or later). `--bundle` also writes a support archive. The archive has the same facts and the trace of the last command. The CLI removes each token from it. Attach the archive when you contact TuxCare. ## Get help {#help} The hosted service of TuxCare Pulse has a status page: [status.tuxcare.cloud](https://status.tuxcare.cloud/). TuxCare posts the major incidents of the hosted service there, with the state of the website and sign-up, the sign-in, the customer workspaces, and the vulnerability data updates. The page runs outside the hosted service, so it answers when the portal does not. Look at it first when the portal does not answer or a sign-in fails. A page with no incident does not prove that the cause is on your side: when the problem stays, contact TuxCare. A portal that you install yourself ([on-prem](/guide/onprem)) is not on the page. If this guide does not answer your question, [contact TuxCare](https://tuxcare.com/contact/). Give these facts: - The address of your workspace. - The version of the portal. TuxCare Pulse is a beta service: the header shows **Beta**, and the account menu at the top right shows the version, for example **Beta, version 0.23.351**. - For a scan, the scan number from the **Scans** tab of the repository page. - The output of `tuxcarectl version`, and the archive of `tuxcarectl doctor --bundle`. To report a vulnerability in TuxCare Pulse itself, use [vulnerability reporting](https://tuxcare.com/vulnerability-reporting/). --- # Package managers URL: /guide/package-managers What the scan reads for each package manager, what a CI job must install before the scan, and the details of Python, Go, and a repository with more than one project. ## What the job needs before the scan {#job-needs} Run the scan in the image that builds the project, after its install step. For some package managers the CLI reads what is installed, not only the lockfile: | Package manager | What the job needs before the scan | | --- | --- | | npm, pnpm, Yarn, Bun | The installed `node_modules`. Run `npm ci`, `pnpm install --frozen-lockfile`, `yarn install --immutable`, or `bun install --frozen-lockfile`. | | pip, PDM, Pipenv, conda | The environment of the project, with the requirements installed in it. For pip, activate the virtual environment, set `VIRTUAL_ENV`, or keep it in `.venv` in the project (CLI 0.1.34 or later). An earlier CLI does not read `.venv` by itself: activate the environment or set `VIRTUAL_ENV`. From CLI 0.1.75, an installed environment comes before a `uv.lock`, `poetry.lock`, `pdm.lock`, or `Pipfile.lock` beside the `requirements.txt` (see [Python projects](/guide/package-managers#python-environment)). | | Maven, Gradle, uv, Poetry | The tool on the `PATH` (`mvn`, `./gradlew` or `gradle`, `uv`, `poetry`). The CLI asks it for the dependency tree. | | Go, Cargo, Composer, Bundler, NuGet, and the others | Nothing. The CLI reads the lockfile. | A job with no package manager of its own can use the image `tuxcare/tuxcarectl:-toolchains`, which has npm, mvn, and pip. See [Install the CLI](/guide/install#install). ## Python projects {#python} A pip job must install the requirements, or the CLI finds no packages. Each job ends with `tuxcarectl sca --fail-on high`. Use the install line of your project in place of the one shown. **uv** (GitLab CI): ``` tuxcarectl: image: ghcr.io/astral-sh/uv:python3.12-bookworm rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH script: - uv sync --frozen - curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh - tuxcarectl sca --fail-on high ``` The line `uv sync --frozen` is optional. The CLI reads the packages from `uv.lock`, so the findings are the same without it. The line installs the packages into `.venv`, and the CLI reads from `.venv` the version ranges that each package sets for its dependencies. Without `.venv`, the CLI assumes a range that admits every version. Then, in the CLI report, the WHERE cell of a fix that rests on such a range ends in "(range assumed)", and the fix that it names can fail when the real range is narrower. On a large project, the install can download several hundred MB on each run. Remove the line to save the download, or keep it to get exact WHERE cells. WHERE names the file that you change to move the package to the fixed version, not the file that holds the version. For a package that comes in through another package, this is often the override section of your package manager, for example "pyproject.toml (tool.uv.override-dependencies)", while the version is in `uv.lock`. "add", as in "pyproject.toml (add tool.uv.override-dependencies)", means that the section does not exist in the file yet: the fix adds it (from the CLI release after version 0.1.72). **Poetry** (GitLab CI): ``` tuxcarectl: image: python:3.12 rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH script: - pip install poetry - poetry install --no-root - curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh - tuxcarectl sca --fail-on high ``` **pip** (GitLab CI): ``` tuxcarectl: image: python:3.12 rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH script: - python -m venv .venv - .venv/bin/pip install -r requirements.txt - curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh - tuxcarectl sca --fail-on high ``` - The pip job needs CLI 0.1.34 or later. That release reads the `.venv` directory of the project when `VIRTUAL_ENV` is not set. An earlier release finds no packages unless the job activates the environment. With an earlier release, add `. .venv/bin/activate` before `tuxcarectl sca`, or set `VIRTUAL_ENV: "$CI_PROJECT_DIR/.venv"` in `variables`. - CLI 0.1.34 or later also reads a requirements file as a lockfile when every requirement is pinned with `==` and has a `--hash`. An `--index-url` line does not change this. A fully hashed file other than the root `requirements.txt`, for example `dev-requirements.txt`, is a lockfile in each run. An earlier release reads such a file only with `--declared`, as the requirements of the project and not as the installed versions. - When pip finds an environment, the CLI reads the installed packages from it, and not the root `requirements.txt`. When pip finds no environment and the root `requirements.txt` is fully hashed, the CLI reads that file as a lockfile. With CLI 0.1.66 or later, `tuxcarectl sca` then exits 0 or 1 by its findings, so the job passes with the setting [allow exit code 1 only](/guide/ci-gates#exit). The CLI prints this note: "No virtual environment: tuxcarectl read the hashed requirements.txt. Create the environment to scan what is installed." An earlier release reads the file and prints the report, but exits with code 5, and the job fails. - Keep the virtual environment and the `pip install` lines also for a fully hashed file: the CLI then reads the packages that are installed. The environment can hold packages that the file does not name, for example a package that a person installed by hand or that another requirements file installed. - When pip finds no environment and the root `requirements.txt` is not fully hashed, or when there is no root `requirements.txt`, `tuxcarectl sca` exits with code 5, and the job fails. It also exits with code 5 when pip fails for another reason, for example when it finds an environment and cannot list its packages. On a PyPI release line with both TuxCare build forms, `tuxcarectl check` and `tuxcarectl harden` can warn that a version range may install a `.postN+tuxcare` build instead of the selected `+tuxcare.N` build. The warning names both builds and gives the requirement that keeps the selected build. ### The installed environment comes before a lockfile {#python-environment} From CLI 0.1.75, the installed Python environment is the source of the scan. The scan then shows what the image or the job holds, not what a lockfile recorded at an earlier time. An earlier release reads the lockfile first. Your results can change after the upgrade when the project has both an environment and a lockfile: the report shows the versions of the environment, and no package that only the lockfile names. - The CLI finds an environment in `VIRTUAL_ENV`, in `CONDA_PREFIX`, or in the `.venv` directory of the project. A `.venv` counts only when the machine that runs the scan made it: its `python` links to a Python outside the project, the project is in a git work tree, and git tracks no file of the `.venv`. In other cases, for example in a copy of the project with no `.git`, set `VIRTUAL_ENV`. When the CLI finds an environment and the project has a `requirements.txt` or a `requirements.in`, the CLI reads the environment. It does not read the `uv.lock`, `poetry.lock`, `pdm.lock`, or `Pipfile.lock` beside it, and uv, Poetry, PDM, and Pipenv need not be installed. A warning names each lockfile that the CLI did not read. When the `python` of the environment does not start, the CLI reads the lockfile in its place. This is also true with `--ecosystem pip`: each package is counted once, and you do not need `--exclude uv.lock`. - When the CLI finds no environment, nothing changes: the tool of the lockfile reads it, as before. - A project with only a `pyproject.toml` and a `uv.lock`, `poetry.lock`, or `pdm.lock` stays with the tool of the lockfile, also with an environment. `harden` must change the settings of the tool that installs the build. When the tool is uv and uv is not installed, the CLI reads the environment. The CLI also warns where the lockfile and the environment disagree: see [A lockfile that disagrees with the installed environment](/guide/package-managers#python-lock-warning). - An environment with no pip, for example one that `python -m venv --without-pip` or `uv venv` makes, works: the CLI reads the metadata of the installed packages. An earlier release exits with code 5. - When the CLI read the environment, a `pyproject.toml`, `setup.py`, or requirements file of a sub-project is "covered by the environment" when the environment holds the sub-project or each package that the file lists. The report does not show it under NOT ANALYSED. A file that names no package and no project is not covered. When the environment holds neither the sub-project nor each listed package, the file stays under NOT ANALYSED, and the report names the packages that the environment does not hold. - Pipenv: when the job runs `pipenv install --system`, Pipenv makes no environment of its own, and `pipenv graph` fails. The CLI then reads the installed environment (`VIRTUAL_ENV`, `CONDA_PREFIX`, or the `.venv` directory of the project). With no environment, the CLI reads `Pipfile.lock`, exits with code 5, and the report says that the scan is partial, from `Pipfile.lock`. The portal marks the scan partial. - `--exclude` changes only the report of one run. The scan on the portal still holds the files that it leaves out. To leave a file out of the scan too, list it under `ignore:` in `.tuxcare.yaml` (see the [configuration file](/guide/config#config)). ### A lockfile that disagrees with the installed environment {#python-lock-warning} The project with only a `pyproject.toml` and a `uv.lock`, `poetry.lock`, or `pdm.lock` is the one exception to the rule above: it keeps the tool of the lockfile, also with an installed environment, because no requirements file says that pip installs the environment. The findings of uv and Poetry then come from the lockfile, and a stale lockfile reports versions that the environment does not hold. From CLI 0.1.75, `sca`, `check`, and `harden` compare the lockfile with the installed packages and warn where the two disagree. - **When a warning comes.** Only when the CLI finds an installed environment: `VIRTUAL_ENV`, `CONDA_PREFIX`, or the `.venv` of the project, as above. With no environment, nothing is compared and no warning comes. - **A version that differs.** One warning for each package that the two sides hold at different versions. It names the package, the version of the lockfile, the installed version, and the environment, and it gives the command that syncs them: `uv sync`, `poetry sync` (`poetry install --sync` before Poetry 2.0), or `pdm sync --clean`. Two spellings of one version agree. With `pdm.lock`, a hardened install is no disagreement: an installed `1.4.5+tuxcare.1` agrees with a locked `1.4.5`. - **A package that only one side holds.** One warning lists the packages that only the lockfile holds, and one lists the packages that only the environment holds, each with its version. pip, setuptools, and wheel make the environment and count only where the lockfile names them. A package that the lockfile marks for another platform, for example `colorama; sys_platform == 'win32'` on Linux, is on no list. A package installed in editable mode or from a directory is the project's own code and is not compared. - When the environment has no `site-packages` directory, for example only Debian's `dist-packages`, one warning says that the run did not compare. A warning also names each `site-packages` directory and each package's metadata (`.dist-info` or `.egg-info`) that the CLI cannot read. ## Go projects {#go} The CLI matches the Go standard library against the Go version of the build. In CI, state the toolchain with `--go-toolchain 1.24.13` or with the variable `TUXCARE_GO_TOOLCHAIN=1.24.13` (CLI 0.1.34 or later; a CLI before 0.1.93 reads only the old name `SECURECHAIN_GO_TOOLCHAIN`). The commands `tuxcarectl sca`, `check`, `harden`, `update`, `status`, and `compare` all read the variable. Without it, the CLI uses `go env GOVERSION`, then the `toolchain` line of `go.mod`, then the `go` line. An earlier release has no flag and no variable: it uses `go env GOVERSION`, then the `go` line of `go.mod`. With an earlier release, run the job in an image that holds the Go toolchain of your build, for example `golang:1.24.13`. ``` tuxcarectl: image: golang:1.24 variables: TUXCARE_GO_TOOLCHAIN: "1.24.13" rules: - if: $CI_COMMIT_BRANCH == $CI_DEFAULT_BRANCH script: - curl -fsSL https://securechain.tuxcare.com/get/tuxcarectl | sh - tuxcarectl sca --fail-on high ``` ## More than one project in a repository {#monorepo} - Run the CLI in each project directory, or give the directory with `--dir path/to/project`. The portal keeps the scans of each directory and each set of package managers apart. It calls each one a *slot*. - The CLI finds the package managers by itself. To choose them, use `--ecosystem npm` (repeat it for more), or set `ecosystems` in `.tuxcare.yaml`. - To leave a path out of the scan, for example test fixtures, add it to `ignore` in `.tuxcare.yaml`. - The repository page of the portal shows a **Slot** list when a branch has two or more slots. The repository list counts the findings of all the slots. When a new slot of the same directory replaces an old one, for example after a CLI upgrade changed the set of package managers, the old slot retires after 14 days with no scan: it leaves the counts, and the **Slot** list marks it retired. --- # Terms URL: /guide/glossary The words that the portal and this guide use for a finding, its severity, and its state. ## Terms {#terms} **Severity** : The rating of a CVE follows TuxCare's CVE tracker: the CVSS score of NVD, or of the CVE's CNA or an ADP in the CVE record (the newest CVSS version first, then the higher score); where none has a score, the score in TuxCare's VEX statement for the host's release, then TuxCare's severity word for that release. TuxCare's VEX names where its score comes from, for example Red Hat, and the badge and the exports show that name. For a CVE that nobody else has scored yet, the VEX score is TuxCare's provisional estimate, shown as "TuxCare estimate"; a score from NVD, the CNA or a vendor replaces it later. A CVE that nobody has rated is "unrated". The badge shows the word and the score, for example "Critical 9.8"; point at it, or read it with a screen reader, to see who gave the score. The exports have the same in the **Severity source** column. A rating of the advisory group (for a package that the operating-system vendor or an upstream source judges) applies only where none of these exists, and the word of an operating-system vendor's advisory rates only a vulnerability that nothing scored. **Why the critical counts fell in November 2026** : Before November 2026, the word of an operating-system vendor's advisory, for example "Critical", could rate a CVE above the band of its CVSS score, and a CVE that TuxCare had not rated for the release of the host took TuxCare's word from another release. Both rules are gone, so that the portal gives the same rating as TuxCare's CVE tracker. So a host or a repository can show fewer critical findings than before, with the same packages. A CVE that has no CVSS score anywhere and no rating in TuxCare's statement for the release of the host now reads "unrated": it gets a rating when NVD, the CNA, or TuxCare scores it. An unrated finding is still open: fix it as any other finding. **open** : The advisory applies to the version that you ship, and the finding is not ignored. **New in this scan, reopened** : "New in this scan": the finding is on this branch for the first time. "reopened": the previous scan did not have it, and this scan has it again. **fixed by TuxCare** : You ship a TuxCare build (a version that ends in `-tuxcare.N`) that has the fix. **Known exploited** : A named source, for example CISA KEV or ENISA EUVD, says that attackers use the vulnerability. It passes any alert severity filter, uses the critical fix deadline, and starts a [CRA clock](/guide/releases#cra-clocks). A finding that is not open keeps the mark on its row, muted and with the reason, for example "closed by the TuxCare build you are on" or, on a host, "live-patched by KernelCare": the claim is about the vulnerability, and the finding is not open work, so the **Exploited** filter and the counts leave it out. An ignored finding is not open either: its mark is muted with "ignored", and they leave it out in every triage view, also in **All**. The exploitation block of the finding page is muted the same way and says why. **Not assessed** : The portal could not check the package, for example because no advisory source covers its ecosystem. It is not clean. **Tracked refs** : The default branch and the supported and deprecated releases of a repository. The workspace views count these only. **Slot** : One project path and one set of ecosystems on a branch. A slot that a newer slot of the same path replaced, and that sent no scan for 14 days, is retired and does not count.