Skip to content

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

Docker 9 min read Opinion mediumAdept

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

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.

Related posts

  • Coding Agent Horror Stories: The 29 Million Secret Problem

    Docker mediumAdept

    The s1ngularity supply-chain attack on the Nx npm package used a post-install script to find installed AI coding CLIs (Claude Code, Gemini CLI, Amazon Q) and invoke them with permission-bypass flags like --dangerously-skip-permissions, prompting the agent to inventory secrets across the home directory before exfiltrating them to public repos under the victim's GitHub account. GitGuardian counted 2,349 stolen secrets across 1,079 repos and also found AI-assisted code leaks secrets at about twice the GitHub baseline. Docker Sandboxes is pitched as the mitigation: agents run in microVMs that see only the project workspace, and credentials stay in the host keychain and are injected by a proxy at the network boundary, so the agent only ever holds a placeholder.

  • Open source security at Astral

    Astral mediumAdept

    Astral secures Ruff, uv and ty against supply chain attacks with layered controls across CI/CD, repository settings, releases and dependencies. In GitHub Actions they ban `pull_request_target` and `workflow_run` org-wide, pin all actions (including nested ones) to verified commit SHAs using zizmor and GitHub policy, default to empty permissions, and isolate secrets in deployment environments. Releases use Trusted Publishing, Sigstore attestations, immutable releases, no caching, two-person approval gates and tag protection rulesets. Privileged automations like commenting on PRs move into a separate GitHub App, and dependency updates go through Renovate/Dependabot with cooldowns.

  • 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.

  • 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.

  • Trivy, KICS, and the shape of supply chain attacks so far in 2026

    Docker mediumAdept

    On April 22, 2026, attackers used stolen Checkmarx publisher credentials to push malicious images to the checkmarx/kics repository on Docker Hub. Five existing tags were overwritten and two new tags were created. The trojaned KICS binary kept scanning normally but encrypted the scan output, which often holds secrets and infrastructure details, and sent it to audit.checkmarx[.]cx using a KICS-Telemetry/2.0 User-Agent. Docker caught the push within about 30 minutes by correlating several signals: a tag with no matching upstream release, provenance pointing to a day-old source repository, and unusual publishing timing. Affected users should rotate any credentials in scope, pin the image by digest, purge cached digests from runners and mirrors, and check egress logs, and Docker argues that only layered defenses and real-time signal sharing across registries can keep these attacks contained.

The quest for software engineering knowledge.

Look:
Layout: