VDB
KO

MAL-2026-10224

Malicious code in @idms-corp/auth-ui (npm)

Details

The @idms-corp/auth-ui package was published to the npm registry by user 'click2ai' (maintainer email privatek3m@protonmail.com) as part of a dependency-confusion / reconnaissance campaign. The package name mimics the internal/private package naming convention of a target organization (the @idms-corp organizational scope) 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 4511630867824640.

--- _-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (d0cb0bf81d8c3d114426e2f11d505911497ac5664410f5837dd0bfbb502b6681) The package's preinstall hook executes examples/verify.js, which initializes Sentry against a hardcoded DSN pointing at the author's Sentry project (o4510485815754752.ingest.us.sentry.io/4511630867824640). The script resolves the installer's public IP via Cloudflare's /cdn-cgi/trace, attaches it to the Sentry scope, and triggers a captured exception, causing the installer's public IP plus default Sentry host metadata (hostname, OS, runtime) to be transmitted to the author's endpoint on every npm install. sendDefaultPii is set to true. Additionally, init() falls back to the same hardcoded author DSN when callers do not pass their own, so any consuming application that calls init() without an explicit dsn silently routes its captured exceptions (stack traces, request data, environment context, PII) to the author's Sentry project rather than the caller's. Package metadata further indicates a namespace-squat shape: scope name suggests an internal organization auth/UI component, but the shipped functionality is a thin Sentry wrapper with no auth or UI code, and the README is a 4-line stub with no disclosure of the install-time network activity or the hardcoded DSN fallback.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / @idms-corp/auth-ui
Introduced in: 0

No fixed version published yet for @idms-corp/auth-ui (npm). Pin to a known-safe version or switch to an alternative.

References