These write-ups are not threat intelligence and are not kept up to date as an incident develops. They are here to show how each attack worked, so you can find and fix the same techniques in your own setup. For the latest on an incident, read its sources.
GlassWorm: editor extensions that steal GitHub tokens and force-push
October 2025 – March 2026 · Ongoing
Malicious VS Code, Cursor and Open VSX extensions took developers' GitHub tokens, which were then used to rebase each victim's latest commit with malware appended and force-push it over the default branch of their Python repositories, keeping the original message, author and date.
- Access held
- T0repoTokens and credentials
- Scale
- At least 151 GitHub repositories found by code search in 3 to 9 March 2026; StepSecurity found hundreds more
Full summary
GlassWorm hides its loader in invisible Unicode characters that look like an empty string in every editor, terminal and code review view. Aikido traced it to malicious npm packages in March 2025, compromised Open VSX extensions on 17 October 2025 and GitHub repositories from 31 October. The extension payload takes credentials from the developer's machine, GitHub tokens among them, from git's credential helper, VS Code's extension storage and other places. In March 2026 the stolen GitHub access was put to use: from 8 March StepSecurity found hundreds of accounts whose Python repositories had been rewritten. The attacker took the latest commit on the default branch, appended obfuscated code to setup.py, main.py or a similar file, and force-pushed the result, so the commit message, author and author date stayed the same and only the committer date showed the change. Anyone who installed one of those packages from GitHub ran the malware, which fetches its next stage through Solana. Aikido's code search found at least 151 repositories with the decoder between 3 and 9 March, and many more had already been deleted.
How it unfolded
Pick a step to zoom into it. A dashed line is a step the sources do not state. Blue dots are the checklist items that break the step.
Whole path
The whole attack, one row per step. Pick a step on the left, or click a box in its row.
The loader is encoded in Unicode characters that render as nothing, inside what looks like an empty string. Aikido first saw it in npm packages in March 2025, in compromised Open VSX extensions on 17 October 2025, and in GitHub repositories from 31 October.
Developers installed malicious VS Code, Cursor or Open VSX extensions. The payload's credential module collects GitHub tokens from git credential fill, VS Code's extension storage and other files on the machine, along with other secrets.
What breaks this step
- Set an organization-wide maximum PAT lifetime (90 days is a reasonable default)
- Enforce an IP allow list for Git and web UI access from trusted ranges
- Allow-list IDE extensions centrally and block the rest.
- Hold new extension and tool versions for a few days before they install (a cooldown).
- Work on sensitive repositories in Codespaces or dev containers instead of on the laptop.
From 8 March 2026 the stolen access was used on hundreds of accounts. The attacker took the latest legitimate commit on each Python repository's default branch, appended obfuscated code to setup.py, main.py or a similar file, rebased and force-pushed. Message, author and author date were kept; only the committer date showed it, for example 10 March on amirasaran/django-restful-admin.
A pip install from the repository or python setup.py install ran the appended code, which fetches a further stage through the Solana blockchain and steals tokens and credentials. Aikido's search found at least 151 repositories with the decoder from 3 to 9 March, and npm and VS Code packages were hit in the same wave.
What breaks this step
- Adopt artifact attestations for build provenance on published binaries/images
- Cloud credentials migrated from static keys to OIDC federation, scoped to repo + branch
- Publish packages with trusted publishing (OIDC) instead of long-lived registry tokens
- Put production secrets in environments with required reviewers
- Write and rehearse a credential-rotation runbook before you need it
- Third-party Actions pinned to a full commit SHA instead of a mutable tag or branch
- Restrict which Actions can run to GitHub-verified creators or an internal allow-list
- Review new dependencies in PRs and hold new package versions for a few days before they're allowed in (a cooldown).
- Disable install scripts where you can (npm ignore-scripts).
Frameworks
Part of
Ongoing. First seen October 2025, last seen 13 March 2026. At least 151 GitHub repositories found by code search in 3 to 9 March 2026; StepSecurity found hundreds more (as of 13 March 2026, source). Mapping by ghtier, not yet reviewed. Threat landscape
Sources
- researchGlassworm returns: invisible Unicode malware found in 150+ GitHub repositories
- researchForceMemo: hundreds of GitHub Python repos compromised via account takeover and force-push
- trackerGlassWorm attack uses stolen GitHub tokens to force-push malware into Python repos
Reported by: Aikido, StepSecurity