Encyclopedia
npm☠ CRITICALphantom⚠ ACTIVE THREAT

esbuild-plugin-env-seal

First seen: Nov 12, 2026 0 viewsMimics: None — esbuild handles env inlining natively
Share threatHN
Threat Description

Suggested by assistants answering "how do I stop env vars leaking into my esbuild bundle", this package never existed legitimately. The published version supplies a real env-inlining plugin and, on top of it, an onLoad hook that rewrites every chunk containing ethers or web3 to route transaction signing through an obfuscated drainer address. Development builds look normal; only minified production output differs.

AI Hallucination Analysis
Very Likely AI Hallucination95%
Known to be hallucinated by: Bundler configuration answers across multiple assistants
Remediation Guide
  1. Remove the plugin and rebuild from a clean cache; diff production bundles against the previous known-good release. 2. If any build shipped, assume wallet-drainer exposure: notify users, rotate RPC keys and review on-chain transfers for that deployment window. 3. Audit CI for publish tokens that could be repointed at a fork. 4. For env handling use esbuild's define/loader options; nothing else is required.
Quick Facts
Ecosystem
npm
Risk Level
CRITICAL
Type
phantom
Status
ACTIVE
Legitimate Package
None — esbuild handles env inlining natively
Hallucination Confidence
95%
Check My Project
Scan for this package