Build Security
Butler SOS takes a security-first approach throughout its development lifecycle. Every release goes through a multi-layered security process covering code analysis, dependency scanning, Docker image hardening, and supply chain protection. This page explains what that means for you as a Butler SOS admin.
Automated Vulnerability Scanning
Butler SOS is continuously monitored for security issues using multiple scanning tools:
- Trivy scans Docker images on every release. Builds are blocked if critical or high vulnerabilities are found, ensuring that images on Docker Hub are safe to deploy. A finding that cannot be reached through Butler SOS, and has no fix in a Debian base image yet, can be accepted for a limited time; see Vulnerability scan results.
- Snyk and npm audit continuously scan the codebase and dependencies for known vulnerabilities.
- Dependabot opens weekly pull requests to keep dependencies up to date, reducing exposure to newly discovered vulnerabilities.
This means Butler SOS binaries and Docker images are actively monitored against the latest known vulnerability databases.
Static Code Analysis
CodeQL runs on every push and pull request to the codebase, analyzing code for security vulnerabilities and common coding errors. Results are tracked in the project's GitHub Security tab.
Supply Chain Protection
The Butler SOS build pipeline uses several measures to protect its software supply chain:
- Pinned action versions: All GitHub Actions steps are locked to specific commit SHAs rather than mutable tags, preventing supply chain attacks on the CI system itself.
- Software Bill of Materials (SBOM): Every release includes an SBOM listing all dependencies, making it easier to track what's included in any given version.
Workflow Security
The GitHub Actions pipelines themselves are hardened:
- Zizmor scans pipeline definitions for security issues such as dangerous triggers, excessive permissions, and credential leakage.
- GitHub secret scanning prevents credentials from being accidentally committed to the repository.
These checks ensure that even the build infrastructure itself follows security best practices.
Docker Image Security
When running Butler SOS in Docker, the container is hardened by design:
- Multi-stage builds keep the final image lean and free of build tools.
- Non-root user: Butler SOS runs as the
nodeuser, not root, limiting the impact of any potential container compromise. - Minimal base image: Built on Debian Linux (bookworm, slim), with only Node.js added. Since Butler SOS 15.1.1 the image contains no npm, npx, Corepack or Yarn; see What is in the image.
- Healthcheck: A REST endpoint lets Docker verify the container is healthy.
For reference deployments with recommended security configurations, see the Docker Compose examples.
Vulnerability scan results
If your organisation scans container images before running them, these are the results of scanning the Butler SOS images with Trivy. They count only findings rated HIGH or CRITICAL for which a fixed version exists. Other scanners, or other scan settings, may report different totals.
Butler SOS 15.5.0: fewer findings in perl-base and apt
Changed in 15.5.0
Butler SOS 15.5.0 moved the Docker image to a newer Debian base image.
The Butler SOS Docker image is built on Debian Linux. This release moves it to a newer Debian build, which includes fixed versions of two operating-system packages: perl-base and apt. Nothing changes in how you run or configure the container.
The visible effect is in vulnerability scans: if your organisation scans container images before running them, this release reports fewer findings than 15.4.0.
Scanned with Trivy on 2026-11-30, the Butler SOS 15.4.0 image has 15 findings rated HIGH or CRITICAL. In this release:
| Where the findings were | 15.4.0 | This release |
|---|---|---|
perl-base, the core of the Perl programming language | 7 | 0 |
apt and libapt-pkg6.0, Debian's package installer | 2 | 0 |
libpam0g and the other PAM packages, which handle logging in to a system | 4 | 4 |
libzstd1, a data compression library | 1 | 1 |
zlib1g, a data compression library | 1 | 1 |
| Total | 15 | 6 |
The zlib1g finding was published on 2026-11-30, so a scan of 15.4.0 made before then shows 14. These numbers count only findings for which a fixed version exists. Other scanners, or other scan settings, may report different totals.
Six findings remain, all in operating-system packages that Debian installs in every system:
- The PAM packages (
libpam0g,libpam-modules,libpam-modules-binandlibpam-runtime) handle logging in to a Linux system. Nothing logs in to the Butler SOS container: it starts Butler SOS directly. libzstd1andzlib1gare compression libraries used by Debian's package tools. Those tools never run in the container. Butler SOS doesn't use either library: the Node.js runtime it runs on has its own copies of both.
None of these can be reached through Butler SOS.
Debian has released fixed versions of all of them, but so far only as security updates. They are not yet included in any Debian base image, and are expected in one after Debian's next point release. Butler SOS moves to newer Debian base images as they are published, so a later release is expected to include the fixes. Check the release notes of later versions, or scan the image of a newer release yourself, to confirm.
Butler SOS 15.1.1: updated operating-system packages, and no npm
Changed in 15.1.1
Butler SOS 15.1.1 moved the Docker image to a newer Debian base image, and removed npm from it.
The Butler SOS Docker image is built on Debian Linux. This release moves it to a newer Debian build, which brings newer versions of the operating-system packages the image is made of. Nothing changes in how you run or configure the container.
The visible effect is in vulnerability scans: if your organisation scans container images before running them, this release reports fewer findings than 15.1.0.
A scan of the Butler SOS 15.1.0 image with Trivy reported 24 findings rated HIGH or CRITICAL. In this release:
| Where the findings were | 15.1.0 | This release |
|---|---|---|
| npm's supporting packages (npm is no longer in the image) | 11 | 0 |
libpcre2-8-0, a text-matching library that is part of the operating system | 4 | 0 |
handlebars, a template library Butler SOS uses | 2 | 0 |
perl-base, the core of the Perl programming language | 7 | 7 |
| Total | 24 | 7 |
These numbers count only findings for which a fixed version exists. Other scanners, or other scan settings, may report different totals.
Removing npm is described on its own: see No npm, npx, Corepack or Yarn.
The seven remaining findings were all in perl-base. Debian installs it in every system as an essential package; Butler SOS never runs Perl, so none of these can be reached through Butler SOS. The fixed perl-base arrived with Butler SOS 15.5.0, above.
VirusTotal Scanning
Release artifacts are scanned by VirusTotal before publication, checking for malware or other threats in downloadable binaries.
Network Security
Butler SOS uses the Fastify web framework with security-focused plugins:
| Plugin | Purpose |
|---|---|
@fastify/rate-limit | Rate limiting prevents API abuse and DoS attempts |
@fastify/cors | Configurable CORS policy restricts which origins can call the API |
@fastify/sensible | Applies secure HTTP header defaults |
Code Signing
Butler SOS binaries are signed to ensure integrity and authenticity:
- macOS: Signed with an Apple Developer ID certificate and notarized with Apple's Notary Service. The OS can verify the binary has not been tampered with.
- Windows: Signed by Ptarmigan Labs AB, with a certificate from Microsoft's identity-verified code-signing service, and timestamped. See Signed binaries.
System Information Security
Butler SOS can gather detailed system information about the host it runs on. In security-sensitive environments where OS command execution is restricted, this can be disabled:
Butler-SOS:
systemInfo:
enable: falseWhen disabled, Butler SOS will not execute any OS commands for gathering host information. Note that telemetry requires system information to be enabled.