MAL-2026-5163

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@emcd-vue/auth/MAL-2026-5163.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-5163
Aliases
  • GHSA-gj65-7753-2q9f
Published
2026-06-01T07:04:12Z
Modified
2026-07-14T05:21:55.247752837Z
Summary
Malicious code in @emcd-vue/auth (npm)
Details

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 pose as an internal Vue.js front-end tooling package from "EMCD Platform Engineering." The package contains no functional library code — the entire package is a delivery vehicle for a multi-stage dropper embedded in a 137.5 KB single-line obfuscated postinstall hook (JScrambler/WaCk-style; 811-element encoded string array).

Trigger: scripts.postinstallscripts/postinstall.js

Execution flow: - Checks EMCD_VUE_NO_TELEMETRY env var as a kill-switch (README misleadingly documents a different, non-functional kill-switch name) - Computes a per-host/project dedup key to execute only once - Detects platform (linux-x64, darwin-arm64, win) - Downloads platform-specific second-stage: GET https://oob.moika.tech/payload/{platform} with X-Secret: l95HdDaz3kQx1Zsg3WxH6HvKANf51RY1 - Writes payload to ~/.emcd-vue_init.js (dot-prefixed hidden file) - Spawns payload as a detached, unref'd process — persists after npm exits - Beacons installation metadata to https://oob.moika.tech/report


-= Per source details. Do not edit below this line.=-

Source: amazon-inspector (f8bc285b34b9a2e8abc8e2a86a7a0c8738823d504bbc7e30a4e56b1ec9810162)

@emcd-vue/auth@6.4.5 is a hollow shell package whose only functional content is a malicious postinstall script. package.json advertises this as an 'Internal @wildberries/service-router package' (a dependency-confusion lure targeting builds that expect an internal @wildberries/* mirror), but dist/index.js is a one-line re-export module.exports = require('../src/index.js') pointing at a path that does not exist in the tarball — the package provides no library functionality. scripts/postinstall.js is heavily obfuscated using an obfuscator.io-style shuffled string array with RC4 + base64 decoders and hex-encoded property accesses; critical strings (host, URL path, secret header) are assembled only at runtime via atob(...)+atob(...) concatenation to evade static inspection. On npm install the script issues an HTTPS GET with a custom X-Secret header to the runtime-assembled URL, writes the response buffer to a randomly-named.js file under os.tmpdir(), and spawns it with process.execPath (Node) detached, stdio:'ignore', windowsHide:true, then .unref()s the child so it survives the installer. Host-identifying data is exfiltrated as part of the fetch (hostname-keyed string selection via os.hostname(), CWD walk-up via process.cwd(), Node version check), and the spawned child receives the installer's full process.env plus additional atob-decoded secret values, handing any environment-resident credentials to the attacker-controlled payload.

Source: ghsa-malware (dfd43164e739de65fb308237cdf44f0f849d11ae459d967c0aae2be068af476a)

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.

Database specific
{
    "malicious-packages-origins": [
        {
            "import_time": "2026-06-12T19:43:47.248196652Z",
            "sha256": "600739f96b23cdddf4ff3f36734e4db70832c7fa065fec5f2e019b7951230255",
            "modified_time": "2026-06-12T19:04:47Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-005916",
            "versions": [
                "6.4.5"
            ]
        },
        {
            "import_time": "2026-06-12T19:43:47.138542521Z",
            "source": "amazon-inspector",
            "modified_time": "2026-06-12T19:04:46Z",
            "sha256": "f8bc285b34b9a2e8abc8e2a86a7a0c8738823d504bbc7e30a4e56b1ec9810162",
            "id": "IN-MAL-2026-005915",
            "versions": [
                "6.4.5"
            ]
        },
        {
            "import_time": "2026-07-08T20:32:30.944031508Z",
            "source": "amazon-inspector",
            "modified_time": "2026-07-08T20:13:13Z",
            "sha256": "327318b337cb5c74f7c13c7347e3d0cfa993be83201e0efd61a634ca1d785b77",
            "id": "IN-MAL-2026-008456",
            "versions": [
                "7.0.0"
            ]
        },
        {
            "import_time": "2026-07-08T20:32:30.793640184Z",
            "source": "amazon-inspector",
            "modified_time": "2026-07-08T20:13:03Z",
            "sha256": "ef019cb5dff581c91837e6bca7268bc58a67b2da2709b0d0ebb295fceccffcda",
            "id": "IN-MAL-2026-008455",
            "versions": [
                "6.4.8"
            ]
        },
        {
            "import_time": "2026-07-08T21:54:09.806456711Z",
            "sha256": "2ee7b3fd00827023aedf9460100adab7232aa8521a815bdf6fb03769214d0cb6",
            "modified_time": "2026-07-08T21:35:14Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-008623",
            "versions": [
                "6.4.9"
            ]
        },
        {
            "import_time": "2026-07-14T05:12:22.003323132Z",
            "sha256": "dfd43164e739de65fb308237cdf44f0f849d11ae459d967c0aae2be068af476a",
            "modified_time": "2026-07-14T05:00:24Z",
            "source": "ghsa-malware",
            "id": "GHSA-gj65-7753-2q9f",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ]
        }
    ]
}
References
Credits

Affected packages

npm / @emcd-vue/auth

Package

Name
@emcd-vue/auth
View open source insights on deps.dev
Purl
pkg:npm/%40emcd-vue/auth

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

6.*
6.4.5
6.4.8
6.4.9
7.*
7.0.0

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@emcd-vue/auth/MAL-2026-5163.json"
indicators
{
    "evidence_files": [
        {
            "sha256": "17d188fa4897d1b6d9fc6829b38bd9f8b8defeed9eeeeef72083e821e67118ac",
            "path": "scripts/postinstall.js",
            "tlsh": "6163f0c43a81e007659e9ba3bf52aafdd02f689352c8740be3507d9df8a911bc674dc4"
        },
        {
            "sha256": "0bba3711fc79db3b3e21824492ab3c12ca0d729a1a95b44d87775fe94264e607",
            "path": "package.json",
            "tlsh": "98119931caa48d336ad425d6ade40503baaa280f1c4afc1c33c7002d8b8e19b44fd67e"
        }
    ],
    "domains": [
        "pik-libs.ru"
    ],
    "package_integrity": [
        {
            "filename": "auth-6.4.5.tgz",
            "hashes": {
                "sha1": "50417870ff0b425e8c838f1df89c6c2b6273fac0",
                "sha512_sri": "sha512-fROufaDzeeZ3g3+5yGrpJuYMPQwEriWZ/QLJbA8wQ0azTe8o7KCxS44gTJtPMZ1kH61LjDRr/5kF83UyK2gzbw=="
            }
        }
    ]
}
cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    },
    {
        "name": "Embedded Malicious Code",
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature."
    }
]