Skip to content
supplychainattack.orgSupply chain attack incident catalog
resolvedcritical

Malicious code in sso-tramvai-module-context-auth (npm)

The npm package sso-tramvai-module-context-auth contained malicious code that downloads and executes platform-specific binaries from attacker-controlled infrastructure upon require(). The package name mimics the legitimate tramvai ecosystem to evade detection.

ShareXLinkedInHacker News
Disclosed
Last updated
Blast radius
Any Node.js application that installed sso-tramvai-module-context-auth
Ecosystems
Attack vectors
Affected entities
  • sso-tramvai-module-context-authnpm package containing malicious code

The npm package sso-tramvai-module-context-auth was found to contain malicious code that executes on module load. When required, the package's index.js loads _vendor.js, which reconstructs attacker-controlled hostnames (oob-worker.cf101-adf.workers.dev, oob-worker.cf103-070.workers.dev, oob-worker.cf99-9b3.workers.dev, with a *.dl.well1.site DNS-TXT fallback channel) to evade static string matching detection.

The malicious code downloads a platform-specific binary and writes it to /var/tmp/.cache_ on Unix systems or %TEMP%/dotnet_diag_.exe on Windows, then executes it detached from the Node process using shell commands (/bin/sh -c or cmd.exe /c start /b) with stdio redirected. The execution is gated by opt-out environment variables and a TTL-based state-file cache to reduce visibility of repeated execution.

The package name closely resembles legitimate packages in the tramvai ecosystem, likely intended to deceive developers. The fetched binary, its command-and-control infrastructure, and the drop-and-execute behavior are unrelated to any authentication token functionality that the package advertises.

This incident was identified by the OpenSSF malicious-packages project and reported via GitHub Security Advisory GHSA-frm7-83xc-2wp6.

Indicators of compromise

Packages
  • sso-tramvai-module-context-auth
Domains
  • oob-worker.cf101-adf.workers.dev
  • oob-worker.cf103-070.workers.dev
  • oob-worker.cf99-9b3.workers.dev
  • *.dl.well1.site

Remediation

  • Immediately remove sso-tramvai-module-context-auth from all projects and dependencies
  • Audit npm package.json and lock files for any presence of this package
  • Review application logs and system logs for evidence of binary execution from /var/tmp/.cache_ or %TEMP%/dotnet_diag_.exe
  • Regenerate any credentials or tokens that may have been exposed on affected systems
  • Use legitimate tramvai ecosystem packages only; verify package names and publishers carefully
  • Implement npm package scanning and allowlisting to prevent installation of typosquatted or malicious packages
  • Monitor for similar typosquatting attempts targeting the tramvai ecosystem

Sources

  1. GitHub Advisory GHSA-frm7-83xc-2wp6 · GitHub Advisory Database

Cite this entry

"Malicious code in sso-tramvai-module-context-auth (npm)." supplychainattack.org, Supply Chain Attack Incident Catalog. Disclosed August 5, 2026; last updated August 5, 2026. https://supplychainattack.org/incident/malicious-code-in-sso-tramvai-module-context-auth-npm-18oueb

Suggest a correction

Found an error or have a newer source? Corrections to factual errors take priority over new entries.

  1. resolvedcritical

    Malicious code in create-coin (npm)

    create-coin@20.1.1 on npm contained malicious postinstall code that collected sensitive environment variables, credentials, and host reconnaissance data. The package impersonated an esbuild platform build and exfiltrated data to a hardcoded endpoint.

    npmCompromised packageTyposquatting
  2. containedcritical

    Malicious code in chai-as-testkit (npm)

    The npm package chai-as-testkit is a typosquat/impersonation attack delivering obfuscated malicious code that executes on import. The package falsely claims to be a vulnerability management tool but ships pino library files under a different author, with a synthetic stub that loads a 4MB+ obfuscated bundle containing attacker-controlled code.

    npmTyposquattingCompromised package
  3. resolvedcritical

    Malicious code in @next-fonts/font (npm)

    @next-fonts/font is a typosquat package on npm that executes arbitrary attacker-controlled code via a blockchain-mediated C2 channel when its Inter() function is called. The malicious payload is base64-encoded and executed through Node.js spawn or eval, with no legitimate font functionality.

    npmTyposquattingCompromised package
  4. resolvedcritical

    Malicious code in chai-as-soul (npm)

    chai-as-soul@2.3.5 is a typosquat of the pino logging library containing malicious code that exfiltrates environment variables (including AWS/GCP/CI tokens) and executes arbitrary remote code on installation.

    npmTyposquattingCompromised package