Ritvik Singh

← All writing

Incident note · Supply chain · · 2 min read

An editor extension as the way in: Nx Console and GitHub

CISA's alert on a poisoned VS Code extension that led to GitHub's internal repositories, and the CI/CD hygiene it recommends.

What happened

On 28 May 2026, CISA published an alert titled “Supply Chain Compromises Impact Nx Console and GitHub Repositories”. It describes a chain with three links:

  1. Nx developer systems were compromised first. The alert does not say how.
  2. Attackers used that access to ship a malicious build of the Nx Console extension for VS Code, version 18.95.0. It went out through VS Code’s automatic update mechanism, so machines that already had the extension could receive it without anyone installing anything.
  3. That build compromised a GitHub employee’s device, which led to unauthorised access to, and exfiltration of, internal GitHub repositories.

The malicious version was assigned CVE-2026-48027 and added to CISA’s Known Exploited Vulnerabilities catalog. The alert names no threat actor and makes no statement about customer impact.

The second campaign

The same alert covers a separate campaign CISA calls Megalodon. A threat actor injected malicious GitHub Actions workflows into public repositories to harvest CI/CD secrets, cloud credentials and tokens.

What CISA recommends

  • Audit workflow files and contributor activity for suspicious pull requests and direct commits, especially from automated accounts.
  • Revert unauthorised changes, particularly those made after 18 May 2026.
  • If you find a compromise, review CI/CD logs, cloud audit trails and affected developer machines.
  • Rotate or revoke every secret a pipeline can reach: API keys, cloud credentials, SSH keys, registry tokens and source-control tokens.
  • Wait at least three hours before pulling a new package, pin to specific trusted versions, and pull only from known sources.

What I take from it

  • A developer laptop is one hop from production. An editor extension runs with the developer’s access.
  • Automatic updates are a trust decision that gets made once and then forgotten.
  • A pipeline should hold only the secrets it needs. Whatever it can read is what an injected workflow can take.
  • A short delay before adopting a new release costs little and gives the ecosystem time to notice.

Sources