MAL-2026-13400Malicious code in agenttunnels (npm)
| 版本 | 状态 | 大小 | SHA-256 | 获取方式 |
|---|---|---|---|---|
0.1.11 | archived | — | — | VIP 下载 |
0.1.12 | unavailable | — | — | — |
0.1.14 | unavailable | — | — | — |
0.1.5 | unavailable | — | — | — |
0.1.6 | unavailable | — | — | — |
0.1.9 | unavailable | — | — | — |
| Ecosystem | Package | Version |
|---|---|---|
| npm | agenttunnels | 0.1.11 |
| npm | agenttunnels | 0.1.12 |
| npm | agenttunnels | 0.1.14 |
| npm | agenttunnels | 0.1.5 |
| npm | agenttunnels | 0.1.6 |
| npm | agenttunnels | 0.1.9 |
{"schema_version":"1.7.4","id":"MAL-2026-13400","published":"2026-08-06T13:04:30Z","modified":"2026-08-08T00:55:05.974747298Z","summary":"Malicious code in agenttunnels (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (264711675c5edabf4f3d0b1d544ca8bade34057c973ca614c82bca3cf8bdd5a1)\nagenttunnels ships an MCP bridge whose customer-role tools accept payloads from a remote session worker (agenttunnels-session.lakshman111.workers.dev) and act on them locally. The `tunnel_run_command` tool takes `proposal.payload.command` from the remote snapshot and runs it via `spawn(command, { cwd: workdir, shell: true, env: process.env })`, giving whoever controls the remote session arbitrary shell execution on the installer's machine with the installer's privileges and full environment. The `tunnel_apply_patch` tool takes a unified diff from `proposal.payload.patch` and writes it into files under the resolved workdir; although a path-escape check confines writes to that workdir, remote-supplied edits to project files (build scripts, git hooks, source code) yield persistent code-execution as soon as the project is next built, tested, or run. Both tools are gated only by approval flags (`proposal.status`, `require_approval`) that live on the same remote worker, so a hostile or compromised server can toggle its own gate. The `agenttunnels install` CLI additionally merges an `agenttunnels` entry into `~/.cursor/mcp.json` by default, wiring this bridge into every Cursor project the user opens and broadening the surface. No npm lifecycle script is declared, so the bridge activates when the user runs the CLI or the MCP client autoloads it, not on `npm install` itself.\n","affected":[{"package":{"name":"agenttunnels","ecosystem":"npm"},"versions":["0.1.11","0.1.9","0.1.6","0.1.5","0.1.12","0.1.14"],"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"},{"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"},{"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":[{"path":"dist/local-effects.js","sha256":"cf6b3fa8227aedbe6a420393f04a533d9f81e48e7d4357343fafb634276a9350","tlsh":"4d023f4518fb30b2a62370789b4b500a3672911b3419de0cbe9cd7907f8a17ce7e5bda"},{"path":"dist/session-client.js","sha256":"081be31bd66c9860111a7376fd6502173937edd9a0c42dcf02e737d37712b279","tlsh":"fd710b4534f352540ae7f18a1eba6c00732a541bbc58ac587efc12c61f8a82da5f7fb4"}],"package_integrity":[{"filename":"agenttunnels-0.1.11.tgz","hashes":{"sha1":"dc050c071bab1f355e3a73932dd6c8091fee0bf6","sha512_sri":"sha512-/9RHqwJciWfurdMTU5LPbgnflb6B35jRFIaYjMZzqhXJuq4Gn+hC0TAyClneaVvvNgtydbZ+LOvvuGvrjrPXSQ=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/agenttunnels/v/0.1.11"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/agenttunnels/v/0.1.9"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/agenttunnels/v/0.1.6"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/agenttunnels/v/0.1.5"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/agenttunnels/v/0.1.12"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/agenttunnels/v/0.1.14"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-016324","import_time":"2026-08-06T13:09:14.653617602Z","modified_time":"2026-08-06T13:04:30Z","sha256":"1ce14830923df21a5ad15164574d89a39019d99096f2afc4561ca943d18e5989","source":"amazon-inspector","versions":["0.1.11"]},{"id":"IN-MAL-2026-016330","import_time":"2026-08-06T13:09:15.308610944Z","modified_time":"2026-08-06T13:05:25Z","sha256":"6ad2accc80886060da1a1eb397ed1c80e81d4d0c01f961663526604865f59870","source":"amazon-inspector","versions":["0.1.9"]},{"id":"IN-MAL-2026-016326","import_time":"2026-08-06T13:09:14.915599615Z","modified_time":"2026-08-06T13:04:47Z","sha256":"8b7e305a2ce3abc7c61392e8c35a7e9a196c82b911e9f8b6efe18ccdbd4958ea","source":"amazon-inspector","versions":["0.1.6"]},{"id":"IN-MAL-2026-016328","import_time":"2026-08-06T13:09:15.102356878Z","modified_time":"2026-08-06T13:05:04Z","sha256":"918e3bdf059d3882d7cfe6217dfc3f261eff3dce2de4f570fa304c9d6e1fd391","source":"amazon-inspector","versions":["0.1.5"]},{"id":"IN-MAL-2026-016329","import_time":"2026-08-06T13:09:15.193443153Z","modified_time":"2026-08-06T13:05:17Z","sha256":"a2ee0a0585867374d76dd23f2e601cebcc6952f3682e33a3d19ac70c74d28e40","source":"amazon-inspector","versions":["0.1.12"]},{"id":"IN-MAL-2026-017200","import_time":"2026-08-08T00:53:10.228003974Z","modified_time":"2026-08-08T00:52:36Z","sha256":"264711675c5edabf4f3d0b1d544ca8bade34057c973ca614c82bca3cf8bdd5a1","source":"amazon-inspector","versions":["0.1.14"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0