Search I’ve been hacked Advice Menu

Glassworm: invisible Unicode characters smuggle malicious code into open-source projects

Published 3 min read 1 Sources

Key points

  • Published: 13 March 2026, Aikido Security (analysis, later updated)
  • Period: according to Aikido, GitHub compromises between 3 and 9 March 2026
  • Scale: at least 151 GitHub repositories containing the decoder pattern; the actual number is likely higher, as many repositories had already been deleted
  • Other ecosystems: affected npm packages and an extension on the VS Code Marketplace (versions dated 12 March 2026)
2 more points
  • Technique: invisible Unicode characters that a small decoder turns into code and runs with eval()
  • Source: Aikido Security: Glassworm returns
Affected
Open-source projects on GitHub, npm and VS Code Marketplace
Attack type
Supply chain attack

As of

On this page
  1. What happened?
  2. What this means for Swiss SMEs
  3. Sources

In short: On 13 March 2026, the security company Aikido Security described a new wave of the Glassworm campaign: attackers hide malicious code in invisible Unicode characters directly in the source code of open-source projects. A code search found at least 151 affected GitHub repositories, plus npm packages and a VS Code extension. For Swiss SMEs that use open-source components, this is a supply chain risk that code reviews alone cannot detect.

Key facts

  • Published: 13 March 2026, Aikido Security (analysis, later updated)
  • Period: according to Aikido, GitHub compromises between 3 and 9 March 2026
  • Scale: at least 151 GitHub repositories containing the decoder pattern; the actual number is likely higher, as many repositories had already been deleted
  • Other ecosystems: affected npm packages and an extension on the VS Code Marketplace (versions dated 12 March 2026)
  • Technique: invisible Unicode characters that a small decoder turns into code and runs with eval()
  • Source: Aikido Security: Glassworm returns

What happened?

Glassworm is not a new campaign: according to Aikido, extensions on Open VSX were already affected in October 2025. In March 2026, the technique resurfaced on a larger scale on GitHub, in npm and on the VS Code Marketplace.

The trick: the malicious code sits in Unicode characters that editors and review tools do not display. The injected string looks empty. Only at runtime does a short decoder read the characters, assemble bytes from them and execute them. In earlier cases, according to Aikido, the decoded code fetched a second script that could steal tokens, credentials and other secrets.

Among the affected repositories, Aikido names pedronauck/reworm and anomalyco/opencode-bench, as well as a Wasmer starter project. The commits were disguised as ordinary changes. Aikido considers it possible that the attackers use AI or rework older commits to blend in with each project; this has not been confirmed.

What this means for Swiss SMEs

Anyone who develops software or runs their own web applications almost always relies on open-source packages. A compromised package can steal credentials from developers and build servers.

  1. Pin dependencies: use lock files and apply updates deliberately instead of automatically pulling the latest version.
  2. Scan for invisible characters: according to Aikido, visual checks and standard linting are not enough. Add malware scanners or your own checks for unusual Unicode ranges to the CI pipeline.
  3. Rotate secrets: if you suspect a compromise, immediately replace tokens, API keys and passwords from development and build environments.
  4. Keep a software inventory: a software bill of materials (SBOM) quickly shows in an emergency whether an affected package is in use.
  5. Handle the incident methodically: steps and reporting channels are in the guide Cyber attack: what to do?; the guide on coverage explains whether the consequences of a compromised supply chain are insured.

Sources

Overview based on public policy terms, as of 24.10.2026. Only your policy and its general terms and conditions (GTC) are binding. No confirmation of cover.