Security Considerations
Security is important! Keep these things in mind when deploying Butler SOS.
INFO
Security is a whole field in its own.
What's considered secure in one company might be considered insecure in another.
It's a good idea to review your tools and services every now and then, for example making sure they are updated to include the latest security patches etc.
When in doubt, be paranoid.
Security considerations
Security/Disclosure
If you discover a serious bug with Butler SOS that may pose a security problem, please disclose it confidentially to security@ptarmiganlabs.com first, so that it can be assessed and hopefully fixed prior to being exploited. Please do not raise GitHub issues for security-related doubts or problems.
Make sure to configure the firewall on the server where Butler SOS is running to only accept connections from the desired clients/IP addresses.
A reasonable first approach would be to configure the firewall to only allow calls from localhost. That way calls to Butler SOS can only be made from the server where Butler SOS itself is running.
If Butler SOS is not running on the Sense server, the IPs of the Sense servers should also be whitelisted in the firewall, of course.Butler SOS uses various Node.js modules from npm. If concerned about security, you should review these dependencies and decide whether there are issues in them or not.
Same thing with Butler SOS itself - while efforts have been made to make Butler SOS secure, you need to decide for yourself whether the level of security is enough for your use case.
Butler SOS is continuously checked for security vulnerabilities by using GitHub security audit, Snyk, npm audit and other tools.
Butler SOS talking to Qlik Sense
Butler SOS uses https for all communication with Sense, using Sense's certificates for authentication.
Signed binaries
The macOS executable binary is signed and notarized by Apple's standard process.
A warning may still be shown first time the app is started. This is expected and normal.
Windows
Changed in 15.1.1
The Windows executable is digitally signed again from Butler SOS 15.1.1, now by Ptarmigan Labs AB. Releases 15.0.0 to 15.1.0 shipped it unsigned.
The Windows version of Butler SOS, butler-sos.exe in the Windows zip file of each release, is digitally signed by Ptarmigan Labs AB. The releases from 15.0.0 up to 15.1.0 shipped an executable with no signature at all.
Nothing about how Butler SOS runs or is configured changes. What changes is how Windows, and the security tools on your servers, treat the file when you download and start it.
Why a signature matters
A digital signature tells Windows two things: who published the file, and that it has not been altered since it was signed. Without one, Windows and many security products treat a program with suspicion:
- Windows SmartScreen may show "Windows protected your PC" when the file is first started, and require an extra click to run it.
- Antivirus and endpoint protection products are more likely to quarantine or block an unsigned program, especially one that opens network connections, as Butler SOS does.
- Application control policies (AppLocker, Windows Defender Application Control and similar) often allow software by its publisher. An unsigned program has no publisher to allow, so it had to be allowed some other way, or not at all.
With the signature, butler-sos.exe identifies itself as published by Ptarmigan Labs AB.
How to check the signature
In Windows Explorer: right-click butler-sos.exe, choose Properties, and open the Digital Signatures tab. The list should show Ptarmigan Labs AB. Select it and click Details; Windows should report that the digital signature is OK.
In PowerShell:
Get-AuthenticodeSignature .\butler-sos.exe | Format-List Status, SignerCertificateStatus should be Valid, and the signer certificate should name CN=Ptarmigan Labs AB. The certificate is issued through Microsoft's identity-verified code-signing service, and the signature carries a timestamp, so it remains valid after the certificate itself expires.
Optionally, check where the file was built. A signed Windows executable normally also has a published record showing that it was built and signed by Butler SOS's own release process on GitHub, from the source code of that release. With the GitHub command-line tool (gh) installed and signed in to a GitHub account, you can check a downloaded copy against that record:
gh attestation verify butler-sos.exe --repo ptarmiganlabs/butler-sosOccasionally a release is published without this record, when it could not have named the right source commit. The command then reports that it found no attestation. The digital signature described above is unaffected and still identifies the file.
What you need to do
Nothing, in most cases. Download and install Butler SOS exactly as before.
If your organisation controls which programs may run:
- Allowed by publisher: you can now allow Butler SOS by its publisher, Ptarmigan Labs AB, instead of by a file-specific rule.
- Allowed by file hash: the hash changes with every release, signed or not, so update the rule for each new version as you did before.
How Butler SOS is built securely
Butler SOS uses a security-first development process backed by multiple automated tools. Trivy, Snyk, CodeQL, Dependabot, zizmor, and VirusTotal all play a role in keeping the project secure. For full details on Docker image scanning, supply chain protection, code signing, and more, see Build Security.
Security Testing (PEN Testing)
Butler SOS undergoes regular penetration testing using a combination of static and dynamic analysis tools. This broadly follows the OWASP Testing Guide and PTES methodology.
Static analysis examines source code and dependencies without running the application:
- Dependency scanning (
npm audit, Snyk) — checks all npm packages for known vulnerabilities - Secret scanning (Gitleaks) — detects accidentally committed credentials, API keys, and tokens in the entire git history
- SAST (Semgrep) — applies security rules to source code to find injection vulnerabilities, insecure API usage, and OWASP Top 10 issues
- CodeQL — deep semantic analysis to find vulnerabilities that pattern-based tools miss
Dynamic testing probes a running instance of the application:
- Port scanning (nmap) — discovers open ports and services on the target host
- TLS/SSL auditing (sslscan) — verifies strong protocols and ciphers, checks for Heartbleed and similar vulnerabilities
- HTTP security headers — verifies HSTS, CSP, X-Frame-Options, X-Content-Type-Options, and other recommended headers are set
- CVE and misconfiguration scanning (Nuclei) — template-based scanning against thousands of known vulnerabilities, exposed panels, and default credentials
- DAST (OWASP ZAP) — active and passive scanning to find XSS, SQL injection, broken authentication, and other runtime vulnerabilities
- UDP endpoint fuzzing (Radamsa, boofuzz) — mutation and structure-aware fuzzing tests the robustness of UDP services against malformed input
Results are reviewed, prioritized, and acted on (unless deemed low/acceptable risk) before each release.