MAL-2026-10072

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-trader-apis/MAL-2026-10072.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-10072
Aliases
  • GHSA-773r-gj6w-h338
Published
2026-07-09T15:48:20Z
Modified
2026-07-10T17:02:05.082998322Z
Summary
Malicious code in polymarket-trader-apis (npm)
Details

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

Source: amazon-inspector (54436b6dea3d66e295c1ca82184b4f4b904d8441a68e77845f37cbb039c5f3c9)

polymarket-trader-apis@2.1.0 advertises itself as a Polymarket trading helper but its main entry is a remote code loader. The default-exported getPlugin fetches JSON from https://svganchordev.net/icons/108 and passes the response's credits field to new Function('require','module','exports',...,'Promise', data.credits), then invokes it with require, process, Buffer, and other Node globals in scope — granting the remote operator arbitrary code execution in the caller's Node process. The code is wrapped in cover-story framing (an IconProvider/font-awesome CDN map referencing cloudflare/fastly/akamai and a /ajax/libs/font-awesome/6.4.0/svgs/brands/ path) to make the loader appear to be an SVG icon fetcher, and the package keywords (react,helper,svg) contradict the stated Polymarket purpose. Declared dependencies (@primno/dpapi, node-machine-id, better-sqlite3, sqlite3) are consistent with second-stage credential/browser-database harvesting once the fetched payload executes. The remote endpoint is a non-first-party domain unrelated to Polymarket, the payload is opaque and author-mutable, and there is no integrity verification.

Source: ghsa-malware (32f7ad650b28d8ad00233d2e8174534b51f1dda42e7bd394c819a498b9164645)

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": [
        {
            "modified_time": "2026-07-09T15:48:20Z",
            "id": "IN-MAL-2026-009238",
            "versions": [
                "0.1.0"
            ],
            "source": "amazon-inspector",
            "sha256": "207b5ceb3d14e460fb004e5a28a12fef8c2dc739b0e0a2b2c5719488579bfddd",
            "import_time": "2026-07-09T16:20:53.502250718Z"
        },
        {
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-009239",
            "versions": [
                "2.1.0"
            ],
            "modified_time": "2026-07-09T15:48:29Z",
            "sha256": "54436b6dea3d66e295c1ca82184b4f4b904d8441a68e77845f37cbb039c5f3c9",
            "import_time": "2026-07-09T16:20:53.560024036Z"
        },
        {
            "modified_time": "2026-07-10T16:12:24Z",
            "id": "GHSA-773r-gj6w-h338",
            "source": "ghsa-malware",
            "ranges": [
                {
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ],
                    "type": "SEMVER"
                }
            ],
            "sha256": "32f7ad650b28d8ad00233d2e8174534b51f1dda42e7bd394c819a498b9164645",
            "import_time": "2026-07-10T16:54:13.229381809Z"
        }
    ]
}
References
Credits

Affected packages

npm / polymarket-trader-apis

Package

Name
polymarket-trader-apis
View open source insights on deps.dev
Purl
pkg:npm/polymarket-trader-apis

Affected ranges

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

Affected versions

0.*
0.1.0
2.*
2.1.0

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/polymarket-trader-apis/MAL-2026-10072.json"
cwes
[
    {
        "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."
    }
]
indicators
{
    "evidence_files": [
        {
            "tlsh": "ebc1616546fa31a36a67e4eef30f10027165e3133759e971f48e42902fca568e5f24e8",
            "sha256": "bbf2e5eb654fae0b706618a4172fda87c34834fb2bfeb503bb5a262dd8d3b0b8",
            "path": "index.js"
        },
        {
            "tlsh": "c2f02810ca21de7315e5568aac3c558ba110da4b4e50fc0d338a87ac4f4e4bf26fe66c",
            "path": "package.json",
            "sha256": "df50b59265723cee86e5ffdbebbefe3f6c207e68907d5899d83646d85775a018"
        }
    ],
    "package_integrity": [
        {
            "hashes": {
                "sha512_sri": "sha512-ynB1WbmUQiL2H/TyGCuyXlgC/zDZ4uMHIyjoT1HfE7OqCEznOserl0mkCD+pGWZN2aLOVOkj+sgSFXa7U7yR+A==",
                "sha1": "bf0edd21525cd120337a597c02ac4d4fba0ac72b"
            },
            "filename": "polymarket-trader-apis-0.1.0.tgz"
        }
    ]
}