Malicious code in @emcd-vue/loans (npm)
Part of a coordinated multi-package supply-chain attack impersonating EMCD (emcd.io), a legitimate Russian cryptocurrency exchange and mining pool. The attacker registered the `@emcd-vue` npm scope to distribute multiple malicious packages posing as internal tooling. This package was published 90 seconds after sibling package `@emcd-vue/auth` on 2026-06-01 by the same anonymous account (`[email protected]`). Confirmed to use identical infrastructure and dropper logic as `@emcd-vue/auth`: downloads a platform-specific second-stage payload from `https://oob.moika.tech/payload/{platform}` using `X-Secret: l95HdDaz3kQx1Zsg3WxH6HvKANf51RY1`, writes it to `~/.emcd-vue_init.js` (dot-prefixed hidden file), and executes it as a detached, unref'd process that persists after npm exits. Beacons installation metadata to `https://oob.moika.tech/report` on completion. --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (7b5f346a554fe9f5f7cfc733c36d4c92c373aea12e245ef70e1031f41ff76f05) On `npm install`, the declared postinstall script `scripts/postinstall.js` executes a heavily obfuscated (obfuscator.io-style) bundle that collects host identifiers (hostname, username, homedir), the full `process.env` (with Windows-specific keys such as USERDOMAIN, COMPUTERNAME, APPDATA, LOCALAPPDATA, TEMP, PROGRAMDATA), the tail of shell history, and the contents of a hardcoded list of files under the user's home directory that the package itself never created. The collected object is transmitted to a remote endpoint over HTTP(S) and additionally over a covert DNS channel: the payload is base32-encoded into subdomain labels and issued as `dns.Resolver().resolveTxt(...)` queries in chunks, bypassing HTTP egress filters. Endpoint hostnames, header names, and API strings are reconstructed at runtime via a shuffled string array with RC4/XOR decoders. Before exfiltrating, the script checks `process.argv` and `NODE_OPTIONS` for debugger indicators and performs a timing check to detect sandboxes, skipping the exfil if analysis instrumentation is detected. The package also exhibits dependency-confusion shape: metadata references an internal-looking scope and registry (`@emcd-vue`, `npm.emcd-vue.io`, `github.emcd-vue.io`) while being published to the public npm registry, and `dist/index.js` re-exports a `../src/index.js` that is absent from the tarball, so the package has no functional library surface — the postinstall is its only executable code. ## Source: ghsa-malware (21b6c74231987d412324ad5320918c42d954a7921042a39b549415cd799b6ad6) 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.
AI Analysis
Technical Summary
The @emcd-vue/loans npm package, published under the @emcd-vue scope, is malicious software involved in a multi-package supply-chain attack. Upon installation, its postinstall script executes obfuscated code that collects host identifiers, environment variables, shell history, and certain user files. It then exfiltrates this data to a remote server using both HTTP(S) and covert DNS TXT queries to bypass network filters. The package downloads a platform-specific second-stage payload, writes it to a hidden file in the user's home directory, and executes it as a detached process that persists beyond npm's execution. The package uses dependency confusion tactics by referencing internal-looking scopes and registries but is published publicly. It also performs sandbox and debugger detection to evade analysis. The package versions 7.1.7, 7.1.8, 7.1.9, and 7.2.0 are affected.
Potential Impact
This malicious package compromises the security and privacy of the host by collecting extensive environment and user data, including potentially sensitive files, and exfiltrating it to an attacker-controlled server. The execution of a persistent second-stage payload increases the risk of ongoing unauthorized access or further malicious activity. The use of covert DNS channels and sandbox evasion techniques complicates detection and mitigation.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. Users and organizations should avoid installing the @emcd-vue/loans package versions 7.1.7, 7.1.8, 7.1.9, and 7.2.0. Review and remove any installations of this package and related @emcd-vue scoped packages. Monitor for suspicious processes such as ~/.emcd-vue_init.js execution. Employ network controls to block connections to the indicated malicious domains (oob.moika.tech). Since this is a supply-chain attack, validate package provenance and consider using package allowlists or verified publishers. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for updates.
Malicious code in @emcd-vue/loans (npm)
Description
Part of a coordinated multi-package supply-chain attack impersonating EMCD (emcd.io), a legitimate Russian cryptocurrency exchange and mining pool. The attacker registered the `@emcd-vue` npm scope to distribute multiple malicious packages posing as internal tooling. This package was published 90 seconds after sibling package `@emcd-vue/auth` on 2026-06-01 by the same anonymous account (`[email protected]`). Confirmed to use identical infrastructure and dropper logic as `@emcd-vue/auth`: downloads a platform-specific second-stage payload from `https://oob.moika.tech/payload/{platform}` using `X-Secret: l95HdDaz3kQx1Zsg3WxH6HvKANf51RY1`, writes it to `~/.emcd-vue_init.js` (dot-prefixed hidden file), and executes it as a detached, unref'd process that persists after npm exits. Beacons installation metadata to `https://oob.moika.tech/report` on completion. --- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (7b5f346a554fe9f5f7cfc733c36d4c92c373aea12e245ef70e1031f41ff76f05) On `npm install`, the declared postinstall script `scripts/postinstall.js` executes a heavily obfuscated (obfuscator.io-style) bundle that collects host identifiers (hostname, username, homedir), the full `process.env` (with Windows-specific keys such as USERDOMAIN, COMPUTERNAME, APPDATA, LOCALAPPDATA, TEMP, PROGRAMDATA), the tail of shell history, and the contents of a hardcoded list of files under the user's home directory that the package itself never created. The collected object is transmitted to a remote endpoint over HTTP(S) and additionally over a covert DNS channel: the payload is base32-encoded into subdomain labels and issued as `dns.Resolver().resolveTxt(...)` queries in chunks, bypassing HTTP egress filters. Endpoint hostnames, header names, and API strings are reconstructed at runtime via a shuffled string array with RC4/XOR decoders. Before exfiltrating, the script checks `process.argv` and `NODE_OPTIONS` for debugger indicators and performs a timing check to detect sandboxes, skipping the exfil if analysis instrumentation is detected. The package also exhibits dependency-confusion shape: metadata references an internal-looking scope and registry (`@emcd-vue`, `npm.emcd-vue.io`, `github.emcd-vue.io`) while being published to the public npm registry, and `dist/index.js` re-exports a `../src/index.js` that is absent from the tarball, so the package has no functional library surface — the postinstall is its only executable code. ## Source: ghsa-malware (21b6c74231987d412324ad5320918c42d954a7921042a39b549415cd799b6ad6) 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.
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The @emcd-vue/loans npm package, published under the @emcd-vue scope, is malicious software involved in a multi-package supply-chain attack. Upon installation, its postinstall script executes obfuscated code that collects host identifiers, environment variables, shell history, and certain user files. It then exfiltrates this data to a remote server using both HTTP(S) and covert DNS TXT queries to bypass network filters. The package downloads a platform-specific second-stage payload, writes it to a hidden file in the user's home directory, and executes it as a detached process that persists beyond npm's execution. The package uses dependency confusion tactics by referencing internal-looking scopes and registries but is published publicly. It also performs sandbox and debugger detection to evade analysis. The package versions 7.1.7, 7.1.8, 7.1.9, and 7.2.0 are affected.
Potential Impact
This malicious package compromises the security and privacy of the host by collecting extensive environment and user data, including potentially sensitive files, and exfiltrating it to an attacker-controlled server. The execution of a persistent second-stage payload increases the risk of ongoing unauthorized access or further malicious activity. The use of covert DNS channels and sandbox evasion techniques complicates detection and mitigation.
Mitigation Recommendations
No official patch or remediation is currently documented for this malicious package. Users and organizations should avoid installing the @emcd-vue/loans package versions 7.1.7, 7.1.8, 7.1.9, and 7.2.0. Review and remove any installations of this package and related @emcd-vue scoped packages. Monitor for suspicious processes such as ~/.emcd-vue_init.js execution. Employ network controls to block connections to the indicated malicious domains (oob.moika.tech). Since this is a supply-chain attack, validate package provenance and consider using package allowlists or verified publishers. Patch status is not yet confirmed — check the vendor advisory or trusted security sources for updates.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- MAL-2026-5165
- Osv Schema Version
- 1.7.4
- Aliases
- []
- Ecosystems
- ["npm"]
- Database Specific Severity
- null
- Cvss Version
- null
Threat ID: 6a50baa368715ace43584e92
Added to database: 07/10/2026, 09:25:55 UTC
Last enriched: 07/10/2026, 10:14:59 UTC
Last updated: 07/31/2026, 12:12:59 UTC
Views: 25
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.