VDB
KO

MAL-2026-10921

Malicious code in iot-kfh-s3 (npm)

Details

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

## Source: amazon-inspector (1c402827c1e00592a8936a9304c2cccc45189126fc447038f67350a8a9124c81) The package's `preinstall` script executes `node examples/verify.js`, which initializes Sentry against a hardcoded author-controlled DSN at `o4510485815754752.ingest.us.sentry.io/4511632673275909` with `sendDefaultPii: true`, resolves the installer's public IP via `https://www.cloudflare.com/cdn-cgi/trace`, and deliberately triggers a captured exception so Sentry ships an event carrying the installer's public IP, `server_name`, username, and other default PII to the author's project on `npm install`. The library entry `src/index.js` additionally hardcodes the same DSN as `DEFAULT_DSN`, so consumers who call `init()` without providing `options.dsn` or `SENTRY_DSN` silently forward their application error events (which routinely contain stack frames, request data, environment values, and user identifiers) to the same author-owned endpoint. Package metadata is generic (name `iot-kfh-s3` unrelated to the described Sentry-wrapper purpose, two-line README stub), inconsistent with a legitimate maintained telemetry library.

## Source: ghsa-malware (d951dbac36ed1916b5dbff7333d074898752088132c2ec6e2b12fe223b835393) 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.

Are you affected?

Enter the version of the package you're using.

Affected packages

npm / iot-kfh-s3
Introduced in: 0

No fixed version published yet for iot-kfh-s3 (npm). Pin to a known-safe version or switch to an alternative.

References