MAL-2026-13400

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/agenttunnels/MAL-2026-13400.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-13400
Published
2026-08-06T13:04:30Z
Modified
2026-08-08T01:04:58.513923704Z
Summary
Malicious code in agenttunnels (npm)
Details

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

Source: amazon-inspector (264711675c5edabf4f3d0b1d544ca8bade34057c973ca614c82bca3cf8bdd5a1)

agenttunnels 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.

Database specific
{
    "malicious-packages-origins": [
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-06T13:04:30Z",
            "id": "IN-MAL-2026-016324",
            "import_time": "2026-08-06T13:09:14.653617602Z",
            "sha256": "1ce14830923df21a5ad15164574d89a39019d99096f2afc4561ca943d18e5989",
            "versions": [
                "0.1.11"
            ]
        },
        {
            "modified_time": "2026-08-06T13:05:25Z",
            "source": "amazon-inspector",
            "sha256": "6ad2accc80886060da1a1eb397ed1c80e81d4d0c01f961663526604865f59870",
            "import_time": "2026-08-06T13:09:15.308610944Z",
            "id": "IN-MAL-2026-016330",
            "versions": [
                "0.1.9"
            ]
        },
        {
            "modified_time": "2026-08-06T13:04:47Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-016326",
            "import_time": "2026-08-06T13:09:14.915599615Z",
            "sha256": "8b7e305a2ce3abc7c61392e8c35a7e9a196c82b911e9f8b6efe18ccdbd4958ea",
            "versions": [
                "0.1.6"
            ]
        },
        {
            "modified_time": "2026-08-06T13:05:04Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-016328",
            "import_time": "2026-08-06T13:09:15.102356878Z",
            "sha256": "918e3bdf059d3882d7cfe6217dfc3f261eff3dce2de4f570fa304c9d6e1fd391",
            "versions": [
                "0.1.5"
            ]
        },
        {
            "modified_time": "2026-08-06T13:05:17Z",
            "source": "amazon-inspector",
            "id": "IN-MAL-2026-016329",
            "import_time": "2026-08-06T13:09:15.193443153Z",
            "sha256": "a2ee0a0585867374d76dd23f2e601cebcc6952f3682e33a3d19ac70c74d28e40",
            "versions": [
                "0.1.12"
            ]
        },
        {
            "source": "amazon-inspector",
            "modified_time": "2026-08-08T00:52:36Z",
            "sha256": "264711675c5edabf4f3d0b1d544ca8bade34057c973ca614c82bca3cf8bdd5a1",
            "import_time": "2026-08-08T00:53:10.228003974Z",
            "id": "IN-MAL-2026-017200",
            "versions": [
                "0.1.14"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / agenttunnels

Package

Affected ranges

Affected versions

0.*
0.1.5
0.1.6
0.1.9
0.1.11
0.1.12
0.1.14

Database specific

indicators
{
    "package_integrity": [
        {
            "filename": "agenttunnels-0.1.11.tgz",
            "hashes": {
                "sha512_sri": "sha512-/9RHqwJciWfurdMTU5LPbgnflb6B35jRFIaYjMZzqhXJuq4Gn+hC0TAyClneaVvvNgtydbZ+LOvvuGvrjrPXSQ==",
                "sha1": "dc050c071bab1f355e3a73932dd6c8091fee0bf6"
            }
        }
    ],
    "evidence_files": [
        {
            "tlsh": "4d023f4518fb30b2a62370789b4b500a3672911b3419de0cbe9cd7907f8a17ce7e5bda",
            "sha256": "cf6b3fa8227aedbe6a420393f04a533d9f81e48e7d4357343fafb634276a9350",
            "path": "dist/local-effects.js"
        },
        {
            "tlsh": "fd710b4534f352540ae7f18a1eba6c00732a541bbc58ac587efc12c61f8a82da5f7fb4",
            "sha256": "081be31bd66c9860111a7376fd6502173937edd9a0c42dcf02e737d37712b279",
            "path": "dist/session-client.js"
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/agenttunnels/MAL-2026-13400.json"
cwes
[
    {
        "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.",
        "cweId": "CWE-506"
    },
    {
        "cweId": "CWE-506",
        "description": "The product contains code that appears to be malicious in nature.",
        "name": "Embedded Malicious Code"
    },
    {
        "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"
    }
]