Skip to content

In development. Expect rough edges and changes. The source code is not public yet.

Figma 9 min read Case study mediumAdept

Enforcing device trust on code changes

Figma requires code merged into GitHub release branches to come from company-managed MacBooks by signing commits with short-lived X.509 Okta Device Trust certificates instead of relying on GitHub's "Verified" badge, which trusts personal GPG keys and web-flow signatures that compromised tokens can obtain. A forked smimesign plus a wrapper script makes Git look up the current certificate key ID at commit time, since the certificates rotate every 15 days. A GitHub App backed by an AWS Lambda receives push webhooks, checks that the HEAD commit's S/MIME signature chains to the private CA, and posts a required commit-integrity-verification status. Bot commits such as Dependabot's are checked against an allowlist and heuristics on what they change.

Assumes: Git commit signingX.509 certificatesGitHub webhooks and branch protection

Related posts

  • Our response to the Axios developer tool compromise

    OpenAI mediumAdept

    A GitHub Actions workflow in OpenAI's macOS app-signing pipeline downloaded and executed a malicious Axios 1.14.1 during the March 31, 2026 npm supply chain attack, exposing the code-signing certificate and notarization material for ChatGPT Desktop, Codex, Codex CLI and Atlas. OpenAI judged exfiltration unlikely because of payload timing and job sequencing, but is treating the certificate as compromised: it is rotating it, blocking new notarizations with Apple, and fully revoking it on May 8, 2026 after a 30-day update window. The root cause was a workflow that used a floating tag instead of a pinned commit hash and had no minimumReleaseAge for new packages. Both settings are concrete mitigations for CI pipelines that handle signing secrets.

  • Rolling out Santa without freezing productivity: Tips from securing Figma’s fleet

    Figma mediumAdept

    Figma deployed Google's Santa binary authorization tool in lockdown mode across its entire macOS laptop fleet. It started with file access authorization for browser cookies, then used monitoring mode data to build an allowlist. Rules default to SigningID and reserve TeamID for highly trusted developers, compiler rules cover locally built binaries, and a custom Package Rule workflow regenerates SHA-256 rules for Homebrew and GitHub packages every 30 minutes. Blocked users self-approve through a Slack app backed by malware checks, and MDM-triggered syncs make approvals take effect in about three seconds. A three-month phased rollout by unknown-binary count, with group-scoped rules for engineers and a temporary escape hatch, reached 100% coverage with roughly 150 global allow rules and 80,000 generated binary rules.

  • Securing the Docker MCP Catalog: Commit Pinning, Agentic Auditing, and Publisher Trust Levels

    Docker mediumAdept

    Docker's MCP Registry now pins every Docker-built MCP server to a specific Git commit, enforced in CI and propagated to the org.opencontainers.image.revision label, so builds are deterministic and verifiable with docker inspect or cosign. A nightly workflow bumps pins via per-server PRs, and each incoming change gets an agentic security review by Claude Code and OpenAI Codex. The reviewers are treated as untrusted: they run in a Docker Compose stack with read-only code mounts, no Internet access, a fixed-file output directory, and a reverse proxy that injects API keys so secrets never enter the container. Risk labels map to GitHub status checks (critical blocks merge), and the catalog adds publisher trust indicators distinguishing known publishers from community servers.

  • Defending Your Software Supply Chain: What Every Engineering Team Should Do Now

    Docker mediumAdept

    Recent supply chain compromises (the axios npm hijack attributed to Lazarus Group, the TeamPCP campaign via Trivy's GitHub Action, Shai-Hulud, GlassWorm) share one root cause: implicit trust in mutable tags, broad long-lived tokens and unsandboxed runners. The recommended defenses start with pinning Actions to commit SHAs and images to digests, using lock files with npm ci, and applying 3-day cooldowns on new dependency versions, since most malicious releases live only hours. Further layers are short-lived scoped CI credentials, avoiding pull_request_target, artifact proxies and build-time SBOMs, plus canary tokens and credential cleanup on developer machines. AI coding agents should run in microVM sandboxes and MCP servers should be governed. Many recommendations are paired with Docker products such as Hardened Images, Scout, Sandboxes and MCP Gateway.

  • Our response to the TanStack npm supply chain attack

    OpenAI easyNovice

    Two OpenAI employee devices were compromised via the malicious TanStack npm package in the Mini Shai-Hulud supply chain attack, leading to credential-focused exfiltration from a limited set of internal repositories that held code-signing certificates for iOS, macOS and Windows apps. OpenAI isolated systems, revoked sessions, rotated credentials, blocked new notarizations with the old certificate, and is rotating signing certificates, which requires macOS users to update apps before the revocation deadline (extended to June 26, 2026). The affected devices had not yet received hardening controls rolled out after the Axios incident, including package manager minimumReleaseAge settings and provenance validation, which would have blocked the malicious package. No customer data, IP or signed malware was found.

The quest for software engineering knowledge.

Look:
Layout: