# MAL-2025-46992: Malicious code in @duckdb/node-api (npm)


- **Type:** Malicious package
- **Package:** `@duckdb/node-api` (npm)
- **Published:** 9 Sep 2025

## What is MAL-2025-46992?

MAL-2025-46992 is a malicious package in @duckdb/node-api, published on 9 Sep 2025. 

### Official description

The DuckDB Node.js package @duckdb/node-api version 1.3.3 was compromised with malware through a sophisticated phishing attack targeting the DuckDB maintainers. An attacker created a pixel-perfect copy of the npmjs.com website at npmjs.help domain and tricked a maintainer into logging in and resetting 2FA. The attacker then used stolen credentials to publish malicious versions of DuckDB packages.

The malicious code was designed to interfere with cryptocurrency transactions, potentially allowing the attacker to steal or manipulate crypto wallet addresses and transactions. This represents a supply chain attack where legitimate packages were compromised to distribute malware.

The attack was discovered within 4 hours and the affected versions were immediately deprecated and deleted from npm. The maintainers re-released safe versions (1.3.4) to ensure users get clean packages.

## What should I do about MAL-2025-46992?

Remove the package from your dependencies and lockfiles, then rotate any secrets on machines where it was installed.

## Fix prompt for AI coding agents

```text
MAL-2025-46992 is a malicious package: @duckdb/node-api (npm). Every version was published to cause harm.

Task:
1. Search this repository's dependency manifests and lockfiles for the package, including transitive dependencies.
2. If it is present, remove it, regenerate the lockfile with the project's package manager, and replace whatever it was used for.
3. List any CI runners, developer machines or containers that installed it, so their secrets can be rotated.
4. If the package is not used anywhere, say so and change nothing.

Reference: https://insights.sbomify.com/MAL-2025-46992/ (Markdown: https://insights.sbomify.com/MAL-2025-46992/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2025-46992

---
From sbomify Insights: https://insights.sbomify.com/MAL-2025-46992/
Summaries are generated and may contain mistakes; the official description above is the record.
