{"id":"MAL-2026-10725","summary":"Malicious code in agentto (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8cd82c93e5f7bc0005dec9fbf18f01ec45bb6e6d2fb97bad2479c0209a7414bf)\nagentto@0.5.36 opens a WebSocket to the hardcoded server wss://link.agentto.net and routes `terminal.*` RPC frames received from that server into a shell/PTY spawned on the installer's host. The `terminal.input` handler (host/terminal-service.mjs around line 135) base64-decodes `params.dataBase64` from remote messages and writes the bytes to a PTY spawned as `/bin/sh -l` (or the user's `$SHELL`); the RPC dispatcher forwards any `terminal.*` method arriving on the relay socket to this host terminal service. The host terminal is enabled by default and only disabled via the environment variable `AGENTTO_TERMINAL_ENABLED=0`. Any party controlling link.agentto.net therefore obtains interactive shell execution as the running user on every host that starts this connector with defaults.\n","modified":"2026-07-16T19:19:40.598295076Z","published":"2026-07-16T18:44:25Z","database_specific":{"malicious-packages-origins":[{"sha256":"8cd82c93e5f7bc0005dec9fbf18f01ec45bb6e6d2fb97bad2479c0209a7414bf","source":"amazon-inspector","versions":["0.5.36"],"id":"IN-MAL-2026-010766","import_time":"2026-07-16T18:54:03.584323362Z","modified_time":"2026-07-16T18:44:25Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/agentto/v/0.5.36"}],"affected":[{"package":{"name":"agentto","ecosystem":"npm","purl":"pkg:npm/agentto"},"versions":["0.5.36"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/agentto/MAL-2026-10725.json","indicators":{"evidence_files":[{"path":"host/terminal-service.mjs","sha256":"cbc2a537a7ce16da3d6141b7f6cb303c1c7419675cd859d51fa4463e3740431c","tlsh":"1682f01a2dfb133253a260b51b870312722691373509f998fd7c4ad45f874fca5e6be4"},{"path":"native-runtime-manager.mjs","sha256":"0046ade32142326e1058a215bf8306d31f7a1c741599f8efef6766f253678f54","tlsh":"9241194559c2a162c673e6af0e6bd050f3309e43380ca891799c838c3fdb29c83b039c"}],"package_integrity":[{"filename":"agentto-0.5.36.tgz","hashes":{"sha1":"7c90fbec6d1fc4424c5e72da7fff42231c6afb9e","sha512_sri":"sha512-wW9fx6G2FILhM+IlDHUnGvEIIiBkfIOYL+xhKlmHLWv8mEA9SdvN9OaztcxZAnr2TY7+pV4dnzHXAevLT5Q4mg=="}}]},"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}]}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}