MAL-2026-6274

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/web3-token-helper/MAL-2026-6274.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-6274
Aliases
  • GHSA-3w2v-mxgh-g2fw
Published
2026-06-22T22:38:59Z
Modified
2026-06-23T17:16:25.687992016Z
Summary
Malicious code in web3-token-helper (npm)
Details

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

Source: amazon-inspector (0c826bf782895b60580b94e3a28a2c4562d3742420ce81e9895ad8568da57890)

The package advertises itself as a Web3 fee utility but its main export is a dropper. index.js line 140 base64-decodes a platform-specific command string and executes it via child_process.exec inside the exported calculateFee() function — the exact call the README documents as the headline usage example (calculateFee(100, 2)). The decoded commands branch on host OS and fetch attacker binaries from https://www.mythicalsgames.com/files/sean/ (a typosquat of the legitimate mythicalgames.com; the path segment sean matches package.json's author: "sean"): on Windows, PowerShell with -W Hidden downloads SvcHostUpdate.exe into the user's Startup folder and runs it (login persistence); on Linux, syslog-service.py is written to ~/.local/share/.syslog, launched with nohup, and registered via @reboot sleep 30 && /usr/bin/python3... in the user's crontab (reboot persistence); on macOS, com.microsoft.VSCodeUpdate-darwin-<arch> is written to /tmp, chmod +x'd, has its quarantine attribute stripped, and is exec'd. Filenames impersonate trusted OS components (SvcHostUpdate, syslog-service, com.microsoft.VSCodeUpdate) to evade casual process inspection. package.json also declares "postinstall": "node install.js", but install.js is absent from the tarball — the postinstall is non-functional; the malicious payload triggers on first call to the documented API rather than at install time.

Source: ghsa-malware (6bc6d78033841d1ed6ecadc0923fba88a44ebc73d9c4c37291f450206e74b846)

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": [
        {
            "sha256": "0c826bf782895b60580b94e3a28a2c4562d3742420ce81e9895ad8568da57890",
            "import_time": "2026-06-22T23:03:05.403193627Z",
            "source": "amazon-inspector",
            "modified_time": "2026-06-22T22:39:03Z",
            "versions": [
                "1.1.1"
            ],
            "id": "IN-MAL-2026-007186"
        },
        {
            "sha256": "393a2fb2d3b02d84d2eded361d03545786218cc528ecaf2fb262b33a437f316d",
            "import_time": "2026-06-22T23:03:05.694500763Z",
            "source": "amazon-inspector",
            "modified_time": "2026-06-22T22:39:05Z",
            "versions": [
                "1.2.1"
            ],
            "id": "IN-MAL-2026-007188"
        },
        {
            "sha256": "3a5fa38818688d34e5acb6b86aaeb0f21bd6b59c041b07a4ce127e741614a3dc",
            "import_time": "2026-06-22T23:03:05.298854393Z",
            "source": "amazon-inspector",
            "modified_time": "2026-06-22T22:38:59Z",
            "versions": [
                "1.2.0"
            ],
            "id": "IN-MAL-2026-007185"
        },
        {
            "sha256": "e555dd80d83cab8c59d20f560fccf46cab5318375daa5bddc048734551aea076",
            "import_time": "2026-06-22T23:03:05.824073272Z",
            "source": "amazon-inspector",
            "modified_time": "2026-06-22T22:39:09Z",
            "versions": [
                "1.0.1"
            ],
            "id": "IN-MAL-2026-007189"
        },
        {
            "sha256": "e769ec937876fa5f0440f995245a1e623ac85a17e0e34f5f2e2016020c6807bf",
            "import_time": "2026-06-22T23:03:05.580885811Z",
            "source": "amazon-inspector",
            "modified_time": "2026-06-22T22:39:05Z",
            "versions": [
                "1.1.2"
            ],
            "id": "IN-MAL-2026-007187"
        },
        {
            "sha256": "6bc6d78033841d1ed6ecadc0923fba88a44ebc73d9c4c37291f450206e74b846",
            "import_time": "2026-06-23T17:03:25.689348126Z",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "modified_time": "2026-06-23T15:54:53Z",
            "id": "GHSA-3w2v-mxgh-g2fw",
            "source": "ghsa-malware"
        }
    ]
}
References
Credits

Affected packages

npm / web3-token-helper

Package

Affected ranges

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

Affected versions

1.*
1.0.1
1.1.1
1.1.2
1.2.0
1.2.1

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/web3-token-helper/MAL-2026-6274.json"
cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    }
]
indicators
{
    "evidence_files": [
        {
            "sha256": "25073bb06bb20b8a523ea09f8e796fef4a8e792e6d52047e87c72698b6907c76",
            "tlsh": "4402756972e77220457b5b58f8db880ad618b74751480053f7fd89d22fb206886e3dfc",
            "path": "index.js"
        },
        {
            "tlsh": "8b017b64da114db316c8feea2c5a418365524c0b4e54bc1c339b829c8f8d23f20fe96d",
            "sha256": "704e32552590f581218301bd8cd87b184a1602da1ef6a9ecb9acb71be142c1ad",
            "path": "package.json"
        }
    ],
    "package_integrity": [
        {
            "filename": "web3-token-helper-1.1.1.tgz",
            "hashes": {
                "sha1": "346a1b6d26e05eb9d4c093d94d37808bf8ac0f12",
                "sha512_sri": "sha512-3D9GR39yN6t/HvWx5cx31f1jxSgVmV0aJMHCmLYDbUJh9OhTlcjuLznZsxR+9WK2H1k7KCPH4VBCA84dK0xkYQ=="
            }
        }
    ]
}