Skip to content

Security: RandyNorthrup/ost

SECURITY.md

Security policy

Supported versions

Version Supported
0.4.2 (the newest release) Yes
0.4.1 and older No

Security fixes go into the newest release only; older releases aren't patched. Update to the newest release before you report a problem, and check that it still happens there.

Security documents

  • Threat model: OST's trust boundaries, threats, mitigations (cited in the code) and the risks that remain, including the confirmed issues still being fixed.
  • Data flows: what personal data OST keeps on the device (where, with which file permissions, for how long) and what it sends where.
  • Hardening guide: recommended settings for organizations deploying OST.
  • PRIVACY.md: the same facts for users.

OST is an independent open-source client, not a Microsoft product. It holds no security certification and hasn't had a paid third-party audit; Microsoft's certifications cover Microsoft's services, not OST.

Reporting a vulnerability

Please report security problems privately, not in a public issue or discussion. Use GitHub's private vulnerability reporting:

  1. Open the repository's Security tab.
  2. Choose Report a vulnerability (direct link).
  3. Describe the problem: the OST version (Settings ▸ About, or ost-desktop --version), your distribution, the steps to reproduce it, and what an attacker could do with it.

Only the maintainers can see the report. What happens next:

  1. Acknowledgement and triage. We reply in the report, confirm whether we can reproduce it, and rate it by its impact on users (who can trigger it, what they gain, and what has to be true first), the same way as the ratings in the threat model.
  2. Fix. We work on the fix privately in the advisory (GitHub lets us use a temporary private fork for it), and ask you to check it if you can.
  3. Release and disclosure. The fix ships in a new release. The advisory is published with it, with a CVE requested through GitHub when the issue warrants one, and the release notes' Security section names it. Please keep the details private until then; tell us if you plan to publish on a date of your own.

You're credited unless you'd rather not be. OST is maintained by a small team; we aim to acknowledge every report within 14 days. If you hear nothing in the report by then, it's fine to add a comment there.

Please don't put sign-in tokens, passwords, or other people's messages and data in a report. If a log is needed, remove personal details first (OST's logs don't hold tokens, but check anyway).

How OST protects your account

  • Tokens go only where they belong. A request carries a Teams, Skype, IC3 or Graph token only when its address is HTTPS and its host is one of the Microsoft services that token is for (an exact allowlist matched on whole host labels); the main API client doesn't follow redirects off those services. Card and preview pictures from other sites load without any credentials. A few call-related requests (the meeting recorder's command address, some call-controller links, Trouter's session request) and a QML rich-text hole that loads pictures named in message text don't follow these rules yet; the threat model lists them and the fixes in progress.
  • Token storage. Tokens live in the system keyring (Secret Service). Without one OST keeps them in memory only; a file (0600, written atomically) is used only if you opt in (Settings ▸ Accounts and orgs ▸ Stay signed in without a keyring, or OST_NO_KEYRING=1). Tokens an older OST wrote to the file move to the keyring once it works.
  • Embedded pages. Camera, microphone, location and notifications go only to a hosted app's own pages (its declared valid domains) and only as its App permissions allow; any other origin is refused. Values OST puts into the pages it builds are serialized so they can't break out of their script. Each profile has its own web storage, and signing out of the desktop app clears it (teams-cli logout doesn't yet).
  • Logs and feedback. Tokens, cookies and signed-address parameters are removed from every log line before it is written. Report a problem opens the issue form with only your text; logs are saved to a file you review and attach yourself.
  • No test hooks in releases. A release build refuses the desktop test harness's launch flags before anything starts, and CI checks it. The harness's own code (the script runners that inject JavaScript, the timers that drive the scripted steps, the QtTest checks) is compiled only with the test-harness cargo feature, which release packages don't enable. The views keep small …ForTest helpers and checks of those flags, which nothing in a release build calls or sets. Qt's own QTWEBENGINE_REMOTE_DEBUGGING and QTWEBENGINE_CHROMIUM_FLAGS variables still work in release builds; the hardening guide lists the variables a managed session shouldn't set.

Verifying a download

Every file on a release (the AppImage, the tarball, the .deb, .rpm and .flatpak packages, the SBOMs and SHA256SUMS) has a GitHub build-provenance attestation, signed through Sigstore and recorded in its public transparency log. It proves the file was built by this repository's release workflow (.github/workflows/release.yml) on GitHub's hosted runners from the tagged commit, and that it hasn't changed since. Check one with the GitHub CLI (2.49 or newer):

gh attestation verify OST-0.4.2-x86_64.AppImage -R RandyNorthrup/ost

To also pin the workflow, the tag and the kind of attestation:

gh attestation verify OST-0.4.2-x86_64.AppImage -R RandyNorthrup/ost \
  --signer-workflow RandyNorthrup/ost/.github/workflows/release.yml \
  --source-ref refs/tags/v0.4.2 --deny-self-hosted-runners \
  --predicate-type https://slsa.dev/provenance/v1

sha256sum -c SHA256SUMS --ignore-missing in the download folder checks the files against the checksums; on its own that only shows they weren't damaged, so verify SHA256SUMS itself with gh attestation verify first:

gh attestation verify SHA256SUMS -R RandyNorthrup/ost \
  --signer-workflow RandyNorthrup/ost/.github/workflows/release.yml \
  --source-ref refs/tags/v0.4.2 --deny-self-hosted-runners
sha256sum -c SHA256SUMS --ignore-missing

From 0.4.3 on, each release also carries its signed attestations as ost-<version>.intoto.jsonl (one Sigstore bundle per line: the build provenance and the three SBOM attestations), so a machine without network access to GitHub's attestation API can verify against it:

gh attestation verify OST-0.4.3-x86_64.AppImage -R RandyNorthrup/ost \
  --bundle ost-0.4.3.intoto.jsonl \
  --signer-workflow RandyNorthrup/ost/.github/workflows/release.yml \
  --source-ref refs/tags/v0.4.3

For an older release, download the attestations once with gh attestation download <file> -R RandyNorthrup/ost (it saves a <digest>.jsonl bundle) and pass that file to --bundle. Organizations that mirror releases internally should verify each file before publishing it (see the hardening guide).

The packages themselves aren't GPG-signed, and there is no signed apt, dnf or Flatpak repository yet; the attestation is the signature to check. Releases before 0.3.0 have checksums only.

The AUR packages are updated from the same release files: ost-bin checks the AppImage against the SHA-256 recorded when the release was published, and ost builds the tagged source. The update script computes that checksum from its own download; it doesn't yet compare it with the attested SHA256SUMS (see the threat model, TB8), so verify the AppImage yourself if that matters to you.

Build provenance (SLSA)

The build-provenance attestations are SLSA v1.0 provenance (predicateType https://slsa.dev/provenance/v1), made by actions/attest-build-provenance in the release workflow's release job. Their buildDefinition names the workflow file, the repository, the tag and its commit, and the event that started the run; runDetails names the run (its log is public on the Actions tab). To read one:

gh attestation verify OST-0.4.2-x86_64.AppImage -R RandyNorthrup/ost --format json \
  | jq '.[0].verificationResult.statement.predicate'

What that amounts to, against the SLSA v1.0 build track:

Level Requirement OST
Build L1 Provenance exists, describing how the package was built Yes: every released file has it
Build L2 Hosted build platform; provenance signed by it Yes: GitHub-hosted runners only (--deny-self-hosted-runners checks it); signed with a short-lived Sigstore certificate bound to the workflow's OIDC identity, logged in Rekor
Build L3 Hardened builds: the provenance can't be forged by the build's own steps; runs isolated from each other Not yet. The attestation step runs in the same workflow (and job) as steps the repository controls, so a compromised workflow could attest a file it didn't build. Caches are keyed by Cargo.lock and checked by cargo's checksums, but not isolated per run.

So OST's releases are SLSA Build Level 2. Reaching Level 3 needs the build and the signing moved into a reusable workflow that the release workflow calls (GitHub's documented path to L3 for artifact attestations), verified with --signer-workflow pointing at that reusable workflow, and no caches shared between runs. Until then, check --signer-workflow, --source-ref and --deny-self-hosted-runners as shown above.

Software bill of materials

Each release (from 0.4.3 on) has three CycloneDX 1.6 SBOMs, listed in SHA256SUMS and attested like every other file:

  • ost-desktop-<version>.cdx.json: every crate compiled into the desktop app (the engine and video effects included), with its version, licence, Package URL and the crates.io SHA-256 from Cargo.lock (cargo-cyclonedx).
  • teams-cli-<version>.cdx.json: the same for the terminal client.
  • ost-<version>-bundled-libraries.cdx.json: the Ubuntu 26.04 packages (Qt, OpenSSL, ...) the AppImage, the tarball and AUR ost-bin bundle, at their exact versions with their source packages (pkg:deb Package URLs), and the AppImage runtime's components. The .deb, .rpm and Flatpak packages use the distribution's or Flathub's own libraries instead, which those publish.

Each package also has SBOM attestations (predicateType https://cyclonedx.org/bom) that bind it to the SBOMs of what it contains, so a scanner can trust which SBOM describes which file:

gh attestation verify OST-0.4.3-x86_64.AppImage -R RandyNorthrup/ost \
  --predicate-type https://cyclonedx.org/bom \
  --signer-workflow RandyNorthrup/ost/.github/workflows/release.yml \
  --source-ref refs/tags/v0.4.3

Feed the SBOMs to a scanner such as grype sbom:ost-desktop-0.4.3.cdx.json or osv-scanner --sbom ost-desktop-0.4.3.cdx.json to check a release you run against today's advisories.

How the releases are built

  • Each package is built in a container of the distribution it is for, from that distribution's signed package repositories, on GitHub-hosted runners.
  • The workflows' GitHub Actions are pinned to full commit SHAs (with the version in a comment), the Flatpak builder image to its digest. Every workflow starts with read-only token permissions; a job that writes (the release upload, the attestations, the code scanning upload) asks for that permission itself. No workflow runs on pull_request_target or puts untrusted input (titles, branch names, inputs) into a script except through environment variables. Checkouts don't keep the token (persist-credentials: false).
  • Every tool the build downloads is pinned to an exact version and checked against its SHA-256 before it runs: linuxdeploy, appimagetool and the AppImage runtime; linuxdeploy-plugin-qt is built from an exact commit (desktop/packaging/build-appimage.sh); flatpak-cargo-generator.py is fetched at an exact commit, and its Python dependencies are installed with pip --require-hashes from desktop/packaging/flatpak/cargo-generator-requirements.txt; cargo-deny, cargo-audit, cargo-about, cargo-cyclonedx and rustup-init likewise. The Flatpak runtimes come from Flathub, checked against Flathub's signing key, whose hash the workflow pins.
  • Every crate comes from crates.io at the version and checksum in Cargo.lock (--locked); cargo deny refuses any other source.
  • OpenSSF Scorecard checks these practices every week and on every push to main (.github/workflows/scorecard.yml); its findings are in the repository's code scanning alerts. CodeQL scans the Rust, C++, JavaScript, Python and workflow code, and the parsers of network input are fuzzed every week (docs/fuzzing.md).
  • docs/security/openssf-best-practices.md maps the OpenSSF Best Practices criteria to where the project meets them.

Dependency policy

  • What's allowed. Crates only from crates.io, under the permissive licences deny.toml allows (with its per-crate exceptions), no git or other registries, no wildcard versions. The Loop host's bundled JavaScript (desktop/vendor/fluid-loader) is locked with integrity hashes in its package-lock.json.
  • Checked on every change. CI's Dependency audit job (tools/ci/dependency-audit.sh) runs cargo deny (advisories, licences, sources, bans) and cargo audit on every push and pull request, and fails with a message saying what failed and how to fix it. It's one of the checks a pull request must pass before it merges.
  • Checked every day. The Advisories workflow runs the same check on main every day against the newest RustSec database, so a new advisory for a crate OST already ships fails a run (and notifies the maintainers) without waiting for the next change. GitHub's Dependabot alerts cover the same crates, the npm packages, the Python tools and the Actions from the GitHub Advisory Database.
  • Updates. Dependabot proposes version updates once a week (cargo, GitHub Actions, npm; monthly for the fuzz targets and the Flatpak generator's Python tools), grouped into one pull request per ecosystem for minor and patch updates, and only for releases at least 7 days old. Security updates open as soon as an advisory is published. Every update goes through the same CI as any other change (.github/dependabot.yml).
  • When an advisory affects OST. A vulnerability in a crate OST uses is fixed by updating the crate (or the crate that pulls it in) or replacing it, and released as soon as possible; the release notes' Security section names the advisory. If no fixed version exists yet, the advisory may be accepted only with its reason and a review date at most three months out, in both deny.toml and .cargo/audit.toml; the audit fails again on that date until someone looks at it again. Accepted advisories today are "unmaintained" notices, not vulnerabilities (deny.toml lists them).
  • Vulnerabilities reported to OST follow Reporting a vulnerability. The aim is to fix every known vulnerability of medium or higher severity within 60 days of it becoming public.

Data, tokens and system changes

PRIVACY.md lists what OST stores and where, where the sign-in tokens live, which hosts it talks to, what the log keeps and masks, the Flatpak's permissions, and the optional system changes of the Bluetooth headset call setup.

  • Sign-out in the desktop app deletes the account's tokens and its web profile (cookies, local storage, IndexedDB, cache and service workers of the sign-in page and every embedded Microsoft 365 app); other signed-in accounts keep theirs, since each account has its own web profile. teams-cli logout deletes the tokens but not yet the web profile. Caches, drafts and the log stay until you delete them (data flows).
  • Release builds have no test hooks. The desktop test harness (launch flags that drive the app, take screenshots or run JavaScript, and the engine's traffic-dump variables) is compiled only with the test-harness cargo feature, which CI's test jobs and development builds turn on and no package does. A release build refuses those flags before anything starts, and the harness's script runners, the timers that drive its runs (HarnessTimers.qml) and its QtTest checks aren't in its QML at all; CI checks both on every pull request. What stays in every build is small: the views' …ForTest helpers and checks of the (refused) flags.
  • Logs never hold credentials, and the log file doesn't hold names, addresses, phone numbers or message text either: JSON fields are redacted by name (any …token, …secret, …password, Authorization, sig…), and patterns catch the rest (headers, JWTs, refresh tokens, signed addresses, meeting passcodes, sharing links). One exception is being removed: Trouter's session id is logged at the info level.
  • The Flatpak has no access to the Secret Service, your home folder (except Downloads) or devices other than the GPU and sound (cameras come through the camera portal); the sign-in is sealed with a secret from the Secret portal.
  • The Bluetooth headset call setup (install-hfp-calls.sh) is never run by a package or by OST. It lists every system change first, asks before making any, asks separately before touching ModemManager, and undoes all of it with --uninstall (PRIVACY.md also has the steps by hand).

Scope

This policy covers OST's own code: the desktop app (ost-desktop), the terminal client (teams-cli), the engine, and the packages published on this repository's releases page. Vulnerabilities in Microsoft Teams or Microsoft 365 services go to Microsoft through the Microsoft Security Response Center. Problems in a distribution's Qt, OpenSSL or other system libraries go to that project or distribution.

Acknowledgements

Thank you to the people who reported security problems and helped fix them:

  • Serph91P reported that links in message cards could open any URI scheme (#34), then hardened local file opening and the live event key token (#45). They also reported that the TeamsJS app host answered token and context calls from any https page in an app's frame (#35, fixed in #59).

There aren't any published security advisories