# MAL-2026-3760: Malicious code in ethers-abstract-signer (npm)


- **Type:** Malicious package
- **Package:** `ethers-abstract-signer` (npm)
- **Published:** 14 May 2026
- **Also known as:** GHSA-2f7m-g9qw-8288

## What is MAL-2026-3760?

MAL-2026-3760 is a malicious package in ethers-abstract-signer, published on 14 May 2026. 

### Official description

On `npm install`, the package's postinstall hook spawns a Node one-liner that uses child_process.exec to curl/wget `https://gist.githubusercontent.com/guellemilb/631fb6348967d9d475125edf67048c0e/raw/build_utils.py` and pipe the response directly into `python3` (falling back to node and wget variants), then eval()s the exec callback's stdout. The URL is a mutable personal GitHub Gist, not tied to the package publisher, with no version pin and no integrity check, so the Gist owner can swap in arbitrary code at any time and it will execute on every installer's machine. The package's advertised purpose is an 'ethers development aid for Solidity projects', and it impersonates the ethers.js `AbstractSigner` API, but `index.js` is effectively empty (`module.exports = {}`) — the only functional effect of installing the package is the remote-code fetch and execute. The name mimics the legitimate ethers ecosystem, increasing the chance of accidental installation by developers searching for an AbstractSigner helper.

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.

## What should I do about MAL-2026-3760?

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-2026-3760 is a malicious package: ethers-abstract-signer (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-2026-3760/ (Markdown: https://insights.sbomify.com/MAL-2026-3760/index.md)
```

## Sources

- OSV: https://osv.dev/vulnerability/MAL-2026-3760

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