Malicious code in tme-xca (npm)
Historical advisory saved 24 Oct 2026 13:17:17 UTC. The publisher may have updated it since then. Latest advisory.
osv · MAL-2026-10236
PublishedThe tme-xca package was published to the npm registry by user 'click2ai' (maintainer email [email protected]) as part of a dependency-confusion / reconnaissance campaign. The package name mimics the internal/private package naming convention of a target organization (a 'tme' (Travel Mall / TME-style) internal namespace) so that a misconfigured resolver installs this public lookalike instead of the intended private dependency. The package declares a preinstall hook ("npm install @sentry/node && node examples/verify.js") that executes automatically at npm install time, before any application code runs. The bundled examples/verify.js initializes the @sentry/node client against a hardcoded, attacker-controlled Sentry DSN with sendDefaultPii enabled, resolves the installing host's public egress IP address by requesting Cloudflare's /cdn-cgi/trace endpoint (using a spoofed desktop-browser User-Agent to bypass bot challenges), then deliberately triggers a runtime exception and captures it. Flushing the event beacons the collected host telemetry (public IP plus Sentry default PII such as hostname, OS username and runtime/environment metadata) to the attacker's Sentry ingest endpoint at o4510485815754752.ingest.us.sentry.io. Each impersonated namespace in the campaign beacons to a distinct Sentry project ID, letting the operator attribute successful installs to specific victim organizations — behaviour consistent with a dependency-confusion reconnaissance beacon rather than legitimate error monitoring. The install-time payload is byte-for-byte identical across all packages published by this account, differing only in the package name and the target DSN. This package's beacon targets Sentry project 4511630928838656. --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (6012c6bcd17a7184340cb8ed6dc94d58d97b92826c0f510d81ddebd4160d86f0) On `npm install`, the package's preinstall hook executes `examples/verify.js`, which initializes Sentry against a hardcoded author-controlled DSN (project `o4510485815754752.ingest.us.sentry.io/4511630928838656`), fetches the installer's public IP from Cloudflare's trace endpoint, attaches it as the Sentry user identity, deliberately throws to generate an event, and flushes upstream. Every install of this version transmits the installer's public egress IP and host-side error context to a fixed remote destination the installer did not choose. Separately, `src/index.js` hardcodes the same DSN as `DEFAULT_DSN` and enables `sendDefaultPii: true`; consumers who call the advertised `init`/`check`/`reportError` API without supplying their own DSN or setting `SENTRY_DSN` silently route their captured exceptions and PII into the author's Sentry account. The relay is not the documented purpose of an error-reporting helper, and the destination is hardcoded to the author rather than configured by the installer. ## Source: ghsa-malware (4cffe7c45caa14f5fde24d0d15f3a70cd54521b6a1c520727784cb898bf8e2e1) Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.
- Source published
- 6 Jul 2026 00:00:00 UTC
- Source modified
- 14 Jul 2026 03:31:58 UTC
- Saved here
- 24 Oct 2026 13:17:17 UTC
- Source terms
- OSV · upstream source license applies
Original source record · Cite this exact observation · Complete original publisher JSON
Source: osv · OSV · upstream source license applies. The publisher's wording is preserved. ChangeIntel groups the information and labels changes. The JSON record includes additional source fields.