Supply chain¶
Two questions get asked about anything that runs in a phone system: what is inside it, and how do you know it is not vulnerable. This page answers both for siphon-pbx, and says plainly what is not covered yet.
Bill of materials¶
Every CI run produces a bill of materials from the exact dependency graphs that build the artifact,
uploaded as the sbom artifact of the run:
| Document | Format | Covers |
|---|---|---|
siphon-pbx.spdx.json |
SPDX 2.3 (JSON) | the Rust crate graph, from Cargo.lock |
siphon-pbx.cdx.json |
CycloneDX 1.4 (JSON) | the same graph, for vulnerability scanners |
siphon-pbx-web.cdx.json |
CycloneDX (JSON) | the web packages, runtime only, from web/package-lock.json |
Two formats for the crate graph because tools differ: SPDX is what most licence compliance tooling expects, CycloneDX is what Grype, Trivy and Dependency-Track ingest natively.
The web graph is there because the UI is built into the binary rather than served beside it. What ships is one executable containing both, so a bill of materials that listed only the crates would be describing half of it.
Generate the same documents from any checkout:
cargo install cargo-sbom --version 0.10.0 --locked
cargo sbom --output-format spdx_json_2_3 > siphon-pbx.spdx.json
cargo sbom --output-format cyclone_dx_json_1_4 > siphon-pbx.cdx.json
cd web
npm ci --ignore-scripts
npm sbom --sbom-format cyclonedx --omit dev > ../siphon-pbx-web.cdx.json
Because both are derived from the lockfiles, a checkout of the same commit produces an equivalent component list.
Scanning it¶
For continuous monitoring, upload the CycloneDX documents to Dependency-Track, which re-evaluates the component list as new advisories are filed rather than waiting for another scan.
Keeping it clean¶
A bill of materials is a snapshot; advisories keep arriving. Two gates run beside it:
cargo deny check bans licenses sourceson every pull request. Dependencies must resolve to an OSI-permissive licence from an explicit allow-list, and come from crates.io.- RustSec advisories weekly and on any change to the dependency set, in
audit.yml, so an advisory against unchanged code surfaces within a week.
The dependency policy behind those gates: prefer what siphon-sip and siphon-rtp already use, then the standard library, then a small hand-rolled helper. Adding a package is a decision someone makes, not a convenience.
One package is used in CI only: @modelcontextprotocol/client, the official MCP client, which the
mcp-client job drives the MCP endpoint with (deploy/e2e/mcp-client). It is pinned by a committed
lockfile and installed with npm ci --ignore-scripts, so no install script of it or of what it pulls
in runs. It is never shipped, so it is not in the bill of materials.
The documentation site is built in CI only, by pages.yml, with mkdocs-material and its Python
dependencies, every package pinned to an exact version in docs-build/requirements.txt. Nothing from it
is in the image or the binary. The site serves the console's own typefaces and brand mark from
web/public and fetches nothing from a font or asset service.
The browser phone¶
jssip 3.13.9, the SIP-over-WebSocket library behind the in-browser phone. The headless end-to-end
test drives a page built from it today (web/browser-phone.html, deploy/e2e/browser.sh), and the
console's own phone will use the same pin.
- Publisher. The JsSIP project (
versatica/JsSIP), MIT. Two npm maintainers, both of that project. 3.13.9 was published on 2026-10-20 and the pin is exact, with the registry's integrity hash inweb/package-lock.json. - Install scripts. None, in JsSIP or in anything it pulls in. Every path that installs the web
packages runs
npm ci --ignore-scriptsanyway (the web job, the SBOM job,Dockerfile, the browser test image), so a script a later version adds is not run. - Native code. None: plain JavaScript, no
.node, no WebAssembly, nobinding.gyp. - Its three dependencies, and what is done about two of them.
debugandeventsare a few lines of use each, soweb/vite.config.tsaliases them to files of our own (web/shims/debug.cjs,web/shims/events.cjs, tested inweb/src/browser-phone/shims.test.ts) and neither is bundled.debugis the package hijacked in the September 2025 npm compromise (4.4.2); the lockfile holds 4.4.3 and, aliased, it is installed but never part of the page or of the binary. That leavessdp-transform2.15.0 (one maintainer, MIT, no dependencies, no scripts) as the only transitive package in the bundle.ms, whichdebugpulls in, is installed and not bundled. - What the SBOM says. The web bill of materials lists these packages as runtime dependencies,
because the lockfile does. The bundle holds JsSIP and
sdp-transformonly. - Not covered. No signature or provenance check of the tarball beyond npm's integrity hash.
The browser test image (deploy/e2e/browser.Dockerfile) is a test fixture: Debian's chromium and
tshark, built by the script, never published, holding no secret. The test needs no browser driver and
no npm package beyond the console's own.
The DNS resolver¶
hickory-resolver 0.26.3 asks for the SRV records of a carrier that publishes no address record, which
tokio::net::lookup_host cannot (crates/siphon-pbx-core/src/trunk_hosts.rs). It is the same crate at the
same version siphon-sip ships. Features tokio and system-config only: plain UDP and TCP to the
resolvers in the machine's own configuration, with none of DNSSEC, DNS over TLS or HTTPS, or QUIC.
- Publisher. The Hickory DNS project (
hickory-dns/hickory-dns), MIT OR Apache-2.0. Its resolver,hickory-protoandhickory-netare released together at one version. - Unsafe and build scripts. None in
hickory-resolver,hickory-protoorhickory-neton Linux (searched in the 0.26.3 sources; the Android and Apple system-configuration files are the only ones that mention it, and they are not compiled here). Nobuild.rsin any of the three. - New to the tree on Linux: 16 crates.
hickory-resolver,hickory-proto,hickory-net;mokawithcrossbeam-channel,crossbeam-epoch,crossbeam-utils,tagptr,equivalent,uuid,portable-atomicandcritical-section; andresolv-conf,ipnet,prefix-trieandeither. The lockfile gains 33 entries in all; the rest (the Windows, macOS and Android system-configuration crates) are target-gated and not compiled for the Linux image. - Network. It talks only to the nameservers in
/etc/resolv.conf, once per trunk host per sweep, and never on a call's path. - Not covered. No independent audit of the crate beyond reading it, and the publisher's owner list was not checked against the registry from this checkout.
The XML reader¶
quick-xml 0.42.0 reads the simservs document an XCAP client writes
(crates/siphon-pbx-core/src/simservs/xml.rs). It is the one XML parser in the tree, used through its
namespace-aware reader into a small owned element tree, never through serde. It is the same crate at the
same version siphon-sip, siphon-http and siphon-smpp ship. Default features only: no serialize, no
encoding (input must already be UTF-8), no async.
- Publisher. The
quick-xmlproject (tafia/quick-xml), MIT. Three owners on crates.io at the time of writing: tafia, Mingun and dralley. - Unsafe and build scripts. The crate declares
#![forbid(unsafe_code)]and has nobuild.rs. - New to the tree: one crate. Its only dependency,
memchr, is already here. The lockfile gains thequick-xmlentry and one dependency edge fromsiphon-pbx-core. - What it is trusted with, and what is not left to it. The body of a write that arrives over the network. Our reader refuses any DOCTYPE before it looks at entities (so there are no external entities and nothing to expand), keeps only the five predefined entities and character references, accepts UTF-8 only, and caps the body at 64 KiB and the nesting at 32 levels, all checked by tests that include a billion-laughs document.
- Not covered. No independent audit of the crate beyond reading its reader; the owner list was read from the registry once and is not monitored.
The tests validate what the PBX writes with xmllint (libxml2-utils), which is a developer and CI
tool only and is never shipped.
Images the end-to-end suite runs¶
Beyond the images the stack ships, deploy/e2e starts one more, in the end-to-end suite alone: it is in
deploy/e2e/docker-compose.srv-dns.yml and in no file under deploy/, so no deployment can run it.
coredns/coredns, the authoritative DNS server for the SRV-only carrier step (a name that has SRV records and no address record, which a stack cannot be shown to resolve without a real DNS server answering for it). Pinned by the digest of the multi-architecture index,sha256:0a9d8c8d...a26(full value in the compose file), at release 1.15.0.- Publisher. The CoreDNS project, a graduated project of the CNCF, from its own
coredns/corednsrepository on Docker Hub. - Size and contents. About 80 MB unpacked for linux/amd64: one statically linked binary, no shell and no package manager, run as a non-root user (65532).
- Network. It fetches nothing when it runs. Its Corefile (
deploy/e2e/srv-dns/Corefile) serves one static zone from a file beside it and forwards every other query to the resolver the container was given, so the rest of the run resolves as it did without it. - Not covered. No signature or provenance check of the image beyond the digest pin, and no scan of its layers. It is a test fixture on a test network that holds no secret and sees no real traffic.
Fonts and other bundled assets¶
The UI bundles its typefaces (Inter and JetBrains Mono, both SIL Open Font License 1.1) rather than
fetching them at runtime, because a PBX has to work on a closed network. The files, their versions,
their checksums and their licences are in web/public/fonts, and they are the released files
unmodified.
Known gaps¶
Stated honestly, because a supply-chain page that overclaims is worse than none:
- No release workflow yet, so the documents live as CI artifacts rather than release assets. When releases start, they attach there as they do for siphon-sip and siphon-rtp.
- No container image bill of materials or build provenance. The documents describe the crate and
web graphs, not the image layers under them. Scan the image with your registry scanner until
docker buildx --sbom --provenanceis wired. - No signing of artifacts.
- The web graph is enumerated but not scanned in CI.
cargo denycovers the Rust side; the CycloneDX document for the web side is produced for your scanner rather than checked here.