{"id":"MAL-2026-20068","summary":"Malicious code in mcp-aevo-server (PyPI)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (972c258509e94a35aa13f9a23d358edab57746321453d9eb1201e40a5807f2ef)\nOn server start, `main()` invokes `_telemetry.arm()` in `src/mcp_aevo_server/_telemetry.py`, which reads environment variables holding Aevo trading credentials and wallet material — including `AEVO_API_KEY`, `AEVO_API_SECRET`, `AEVO_SIGNING_KEY_PRIVATE_KEY`, and `AEVO_WALLET_PRIVATE_KEY` — and POSTs them in full cleartext to a hardcoded Telegram bot endpoint at `api.telegram.org/bot8867174343:.../sendMessage` targeting chat `8838719553`. Collection also captures `socket.gethostname()`, the OS user, cwd, argv, and a snapshot of `AEVO_*`/`UV_*` environment variable names. The same payload is additionally POSTed to a configurable `AEVO_TELEMETRY_URL` via `urllib.request.urlopen` and spooled to disk for retry across restarts. The behavior is opt-out (`AEVO_TELEMETRY=0`) rather than opt-in, and full secret values are sent by default (`AEVO_TELEMETRY_FULL` defaults on). Module naming and comments (`_telemetry`, `census`, `notifier`, \"Public by design: it can only send, and only to this one chat\") present the exfiltration as benign telemetry, but the payload is trading API secrets and wallet private keys shipped to an author-controlled destination. Possession of these values allows full takeover of the Aevo account and movement of funds from the associated wallet.\n\n## Source: kam193 (6c0f51469b807e83b880e6b1337fab3798b91f26b387e70f92280c060b742a0f)\nPackage targets users ribbon-finance/aevo-trading-skills, which referred to an unclaimed name in PyPI. The package exfiltrates the user's credentials from environment variables and starts a thread listening for remote commands to execute.\n\n\n---\n\nCategory: MALICIOUS - The campaign has clearly malicious intent, like infostealers.\n\n\nCampaign: 2026-11-mcp-aevo-server\n\n\nReasons (based on the campaign):\n\n\n - exfiltration-env-variables\n\n\n - dependency-confusion\n\n\n - crypto-related\n\n\n - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.\n\n\n - uses-telegram-bot\n","modified":"2026-11-18T00:45:13.872351109Z","published":"2026-11-17T14:45:00Z","database_specific":{"malicious-packages-origins":[{"versions":["0.2.0","0.2.0.post1","0.2.0.post2","0.2.0.post3","0.2.0.post4","0.2.0.post6"],"id":"pypi/2026-11-mcp-aevo-server/mcp-aevo-server","import_time":"2026-11-17T16:13:56.887204059Z","modified_time":"2026-11-17T14:45:00.176673Z","sha256":"6c0f51469b807e83b880e6b1337fab3798b91f26b387e70f92280c060b742a0f","source":"kam193"},{"modified_time":"2026-11-17T23:39:39Z","sha256":"0798e8aa41cf6d0701fe9035fb6853d12902f0e92f6bd2789c63990f2a99cdc0","source":"amazon-inspector","versions":["0.2.0.post1"],"id":"IN-MAL-2026-022823","import_time":"2026-11-18T00:30:51.96264497Z"},{"id":"IN-MAL-2026-022819","import_time":"2026-11-18T00:30:51.449210883Z","modified_time":"2026-11-17T23:39:06Z","sha256":"138b279506f65893216952548e8f5facd93b1ed5ec58e1b434471b068eb0373f","source":"amazon-inspector","versions":["0.2.0.post3"]},{"modified_time":"2026-11-17T23:39:15Z","sha256":"77c3ab661dbdee7635eb232b0a03328eb4bbcfec9936f7cdd92efa8db1351e43","source":"amazon-inspector","versions":["0.2.0.post6"],"id":"IN-MAL-2026-022820","import_time":"2026-11-18T00:30:51.593259507Z"},{"versions":["0.2.0.post2"],"id":"IN-MAL-2026-022821","import_time":"2026-11-18T00:30:51.74316805Z","modified_time":"2026-11-17T23:39:22Z","sha256":"972c258509e94a35aa13f9a23d358edab57746321453d9eb1201e40a5807f2ef","source":"amazon-inspector"},{"import_time":"2026-11-18T00:30:51.872575481Z","modified_time":"2026-11-17T23:39:28Z","sha256":"d5d33159c8372d8b10238adf6ae7e318fdc05d896ae8b6b78b6c1eef599a7ccc","source":"amazon-inspector","versions":["0.2.0.post4"],"id":"IN-MAL-2026-022822"}]},"references":[{"type":"WEB","url":"https://bad-packages.kam193.eu/pypi/package/mcp-aevo-server"},{"type":"PACKAGE","url":"https://pypi.org/project/mcp-aevo-server/0.2.0.post1/"},{"type":"PACKAGE","url":"https://pypi.org/project/mcp-aevo-server/0.2.0.post3/"},{"type":"PACKAGE","url":"https://pypi.org/project/mcp-aevo-server/0.2.0.post6/"},{"type":"PACKAGE","url":"https://pypi.org/project/mcp-aevo-server/0.2.0.post2/"},{"type":"PACKAGE","url":"https://pypi.org/project/mcp-aevo-server/0.2.0.post4/"}],"affected":[{"package":{"name":"mcp-aevo-server","ecosystem":"PyPI","purl":"pkg:pypi/mcp-aevo-server"},"versions":["0.2.0","0.2.0.post1","0.2.0.post2","0.2.0.post3","0.2.0.post4","0.2.0.post6"],"database_specific":{"cwes":[{"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"},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"},{"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"}],"indicators":{"evidence_files":[{"tlsh":"05328359fd5a6c33c253c56dc822c561e33a79073a41a934faac43296f5e03982fd6ec","artifacts":["mcp_aevo_server-0.2.0.post1.tar.gz","mcp_aevo_server-0.2.0.post1-py3-none-any.whl"],"path":"src/mcp_aevo_server/_telemetry.py","sha256":"8e8a5a24dc15128554984123aa90662fc6a06d0c507e1375ef948e4f02bee299"}],"package_integrity":[{"filename":"mcp_aevo_server-0.2.0.post1-py3-none-any.whl","hashes":{"sha256":"e1d7c618697ec9160ac82314e2845ee2af80b7023bbd2a6fe192ae60d0cc458d","blake2b_256":"c9aa2f56b7c605c932f947fca7679e0000a98971afd4ecc44a007b15681d789b","md5":"b7fc9ab6309f85d55c3a96af4027c378"}},{"filename":"mcp_aevo_server-0.2.0.post1.tar.gz","hashes":{"blake2b_256":"b5a65577f6349096b97cde77cf0c328129b441afa700df6ac7a61eaa84fa7323","md5":"1d1f9207b19f14ad7816a69f9fbc9d77","sha256":"4540499b3cf6261c04b5cd3f7b31786fa2b52e400df29f30f6b1aff7bad87d8f"}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/pypi/mcp-aevo-server/MAL-2026-20068.json"}}],"schema_version":"1.9.2","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"Kamil Mańkowski (kam193)","contact":["https://github.com/kam193","https://bad-packages.kam193.eu/"],"type":"REPORTER"}]}