@wrenfield/viemnpm
Advisory published Updated
@wrenfield/viem is a confirmed malicious npm package (MAL-2026-10571) that executes malicious code on install (malicious versions 2.53.1, 2.53.2, 2.53.3…). Do not install it — remove it immediately and rotate any exposed credentials.
Malicious code in @wrenfield/viem (npm)
What this malware does
@wrenfield/viem republishes the viem codebase under an unrelated npm scope while keeping the upstream homepage (https://viem.sh) and repository (wevm/viem) metadata. The package itself contains no install lifecycle hooks and its CJS main is a pure re-export of viem's public API with no top-level side effects, network I/O, eval, child_process, or filesystem access. The notable change versus upstream is in package.json line 172, which rewrites the abitype dependency to npm:@wrenfield/[email protected] — a load-bearing transitive substituted with a same-scope sibling package. Consumers who install @wrenfield/viem (whether by name confusion against the legitimate viem package or via social engineering) silently pull in @wrenfield/abitype in place of the legitimate abitype, giving the @wrenfield scope owner control over a core ABI-encoding dependency used throughout viem. The conveyance shape (verbatim upstream code + sibling-scope dependency redirection + retained upstream branding) is the namespace-abuse pattern, but the actual payload, if any, lives in @wrenfield/abitype rather than this package. Routing to human review so a reviewer can inspect @wrenfield/abitype and decide whether to publish a coordinated advisory.
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.
Malicious versions
Indicators of compromise (SHA-256)
Detection & response playbook
Malicious packageFind it
Search your lockfiles and build artifacts for @wrenfield/viem (4 malicious versions).
If you installed it — respond
Remove @wrenfield/viem from your project and lockfile, then assume any secrets accessible to the build or runtime were exposed: rotate API keys, tokens, and credentials, and audit for unexpected outbound activity or persistence.
Did it already run?
If @wrenfield/viem was installed, its post-install payload may already have run. Removing the package does not undo that — check outbound connections and credential use from the install window onward.
Frequently asked questions
Campaign
References
Credits
- Amazon Inspector · finder
Detect & block this
O3 blocks @wrenfield/viem-class packages before install and in CI — and if it already ran, its runtime egress monitoring catches the malicious outbound activity and severs the channel.