Malicious Nx Console 18.95.0 extension and the Megalodon CI workflow campaign
A hijacked Nx Console editor extension stole developer credentials.
Are you affected?
The free scanner that answers this opens soon. Until then, the steps below work by hand.
What happened
A hijacked Nx Console extension stole developer keys. Nx Console 18.95.0, a VS Code extension, was published on 2026-05-18 and was available for about 18 minutes on the Visual Studio Marketplace and 36 on Open VSX; forks such as Cursor were affected too. It is CVE-2026-48027, in CISA's KEV catalog since 2026-05-27. Nx says the attacker got in with a gh CLI token stolen from an Nx developer by a malicious TanStack package on 2026-05-11. The payload took GitHub tokens from the gh CLI config, git credentials, environment and process memory, npm tokens, AWS metadata, Secrets Manager and SSM, Vault and Kubernetes tokens, an active 1Password CLI session, SSH keys, .env files and GCP and Docker credentials, and installed a Python backdoor. GitHub says a poisoned extension on an employee's device led to exfiltration of GitHub-internal repositories. On the same day SafeDep saw Megalodon push 5,718 commits to 5,561 GitHub repositories under fake CI-bot authors, adding workflows that send CI secrets, cloud credentials and tokens to an attacker.
- Exposure starts
- 2026-05-18
- Exposure ends
- 2026-05-18
- Confidence
- high
- Scope
- every credential on disk, in the environment or in memory on a machine that ran Nx Console 18.95.0, and every secret available to GitHub Actions in a repository that merged or ran a Megalodon workflow
What to do, in this order
- On a machine that had Nx Console 18.95.0, update to 18.100.0 or later, kill __DAEMONIZED and cat.py processes, unload the com.user.kitty-monitor LaunchAgent and delete ~/.local/share/kitty/cat.py and the other persistence files
The advisory's order; the Python backdoor would see credentials created while it runs.
- GitHub tokens (including the gh CLI token) and npm tokens
The payload read them from the gh CLI config, git credentials, environment and memory; the Nx compromise itself began with a stolen gh CLI token. Advisory inference, from Nx's advice to consider a rebuild, is to rotate from another machine.
github_pat, github_oauth_token, github_fine_grained_pat, npm_token
- Cloud, Kubernetes and Vault credentials, SSH keys, 1Password session access, .env contents and every other credential on the machine
Nx says rotate every credential that was on disk or in the shell environment during the window.
aws_access_key_id, aws_secret_access_key, private_key, anything else stored there
- Consider rebuilding the machine
Nx says the malware may persist after rotation.
- Revert Megalodon commits from 2026-05-18, delete added ci.yml (SysDiag) or replaced Optimize-Build workflows, and rotate every secret available to Actions runners
SafeDep's and CISA's steps; review cloud audit logs for OIDC token requests from unknown workflow runs.
anything else stored there
Notes
- Nx says not affected: the Nx CLI, official @nx plugins and Nx Cloud. Nx telemetry recorded about 6,000 extension activations against far fewer marketplace installs, a gap Nx says it is still reconciling.
- The window is the 18.95.0 listing (12:30 to 13:09 UTC) and the Megalodon commit burst (about 11:36 to 17:48 UTC), both on 2026-05-18. The backdoor keeps running on an affected machine until it is removed.
- SafeDep says @tiledesk/tiledesk-server 2.18.6 to 2.18.12 shipped a Megalodon workflow file; the payload runs in CI, not at npm install, so the package is not listed for install-time matching.
- CISA says to revert unauthorized changes made after 2026-05-18, especially from the automated accounts build-bot, auto-ci, ci-bot and pipeline-bot. GitHub asks GitHub Enterprise Server administrators to rotate the instance's GPG keys with its script; GitHub Enterprise Cloud needs no action.
How to tell if you’re affected
- angular-console 18.95.0 in code --list-extensions --show-versions (VS Code or a fork such as Cursor)
- ~/.local/share/kitty/cat.py, ~/Library/LaunchAgents/com.user.kitty-monitor.plist, /var/tmp/.gh_update_state or /tmp/kitty-* files
- A process with __DAEMONIZED=1 in its environment
- Commits on 2026-05-18 by build-bot, auto-ci, ci-bot or pipeline-bot (build-system@noreply.dev, ci-bot@automated.dev)
- Connections from CI to 216.126.225.129
Sources
- Nx Console advisory GHSA-c9j4-9m59-847w
- Nx: Postmortem, Nx Console v18.95.0 supply-chain compromise
- CISA: Supply chain compromises impact Nx Console and GitHub repositories
- GitHub: Investigating unauthorized access to GitHub-owned repositories
- SafeDep: Megalodon, mass GitHub repo backdooring via CI workflows
Rotating the keys
Pro, $49 a year when it opens, plans the rotation of each affected key for this incident, in this order. Automatic rotation is in testing and included.
By hand, free: the steps above.