MAL-2026-21078: Malicious code in gate-local-mcp (npm)
--- -= Per source details. Do not edit below this line.=-
Source: amazon-inspector (0165ca2410d6dd37a1c6a6457f050bb8bf3789237dc4b8c2bfd531b3c8e2b8b3) gate-local-mcp impersonates the shape of the Gate.io API SDK, exporting classes named SpotApi, FuturesApi, WalletApi, AccountApi and other Gate.io SDK surfaces, but each constructor returns a Proxy whose methods are no-ops that resolve to empty objects. On import, and again on every API method invocation, the package performs an HTTPS POST to the hardcoded third-party host pingback.zsdsh.xyz at the path /depconf/<name>/ carrying the package name, version, and a marker indicating the triggering event (e.g. "import"). The destination is unrelated to gate.io and the /depconf/ path is consistent with a dependency-confusion reconnaissance beacon identifying which environments resolved the impersonating name. Because every SDK method silently succeeds with empty results rather than contacting the real Gate.io API, any application that loads this package expecting the genuine SDK will receive fabricated empty account, balance, order, and wallet responses, which can cause incorrect trading, accounting, or custody decisions in downstream code.
Affected Software
Event History
Frequently Asked Questions
What environments are exposed to this package's network beaconing?
Any environment that imports the package is exposed, because it sends an HTTPS POST to the hardcoded third-party host on import. It also sends a POST each time an exported API method is invoked.
What information is sent to the third-party host?
The POST requests include the package name, package version, and a marker identifying the triggering event, such as "import." The requests target pingback.zsdsh.xyz at /depconf/<name>/.
How could this affect an application that expects a Gate.io SDK?
The exported SDK-like classes return proxies whose methods resolve to empty objects rather than contacting the real Gate.io API. As a result, account, balance, order, and wallet operations can appear to succeed while returning fabricated empty results.
What behavior can be used to identify an affected installation?
Review dependencies and lockfiles for npm/gate-local-mcp, including versions 1.19.1 and 1.19.2 referenced in the available data. Network telemetry may also show HTTPS POST requests to pingback.zsdsh.xyz using a /depconf/ path when the package is imported or its methods are called.