Skip to content
Heist/ feed
Back to feed
Unrated

Malicious code in node-env-resolve (npm)

Type: advisorySources: OSV

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (6f3e0e1b364a3d74534d6ce1eca74778a85e508cf10952f84f36bf1badd8a581) The package is advertised as an environment configuration resolver but its postinstall script installs a hidden persistent agent into user-level directories named to resemble Node tooling (`~/.node-gyp-cache`, `%APPDATA%\node-gyp-cache`, `/opt/connector-service`) and registers autostart via the Windows Registry Run key (`node-gyp-cache`), a macOS LaunchAgent (`com.user.connector`), or a Linux autostart desktop entry, then spawns the agent detached. The agent entrypoint registers the host with the hardcoded C2 at `https://connector-server-xi.vercel.app`, polls `/api/agent/signal/poll?machineId=`, and opens a WebRTC peer session whose inbound commands are dispatched to mouse and keyboard input synthesis, screen capture (JPEG frames over the data channel), microphone capture (PCM audio), and arbitrary filesystem operations (`listDirectory`, `readFileContent`, `readFileBinary` base64 up to 10MB, `zipFolder` up to 50MB, `deleteItem`, `saveUploadedFile`) rooted under the user's home directory. A dedicated `browserHistory.js` copies Chrome, Edge, and Firefox history SQLite databases (including `-wal`) to temp and returns URLs, titles, visit counts, and timestamps back over the P2P meta channel on `history:request`. Internal names (`Windows System Connector`, `System connectivity and update service`, `com.user.connector`, `node-gyp

Products
node-env-resolve
Affected versions
1.2.3
Fixed versions
Not specified
CVEs
Not specified
Confirmed fixed CVEs
Not specified
Updated in this feed
28 Oct 2026, 09:11 UTC · Revision 1

Source evidence

Malicious code in node-env-resolve (npm)

core-osv · Original source

Published 8 Oct 2026, 14:26 UTC

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (6f3e0e1b364a3d74534d6ce1eca74778a85e508cf10952f84f36bf1badd8a581) The package is advertised as an environment configuration resolver but its postinstall script installs a hidden persistent agent into user-level directories named to resemble Node tooling (`~/.node-gyp-cache`, `%APPDATA%\node-gyp-cache`, `/opt/connector-service`) and registers autostart via the Windows Registry Run key (`node-gyp-cache`), a macOS LaunchAgent (`com.user.connector`), or a Linux autostart desktop entry, then spawns the agent detached. The agent entrypoint registers the host with the hardcoded C2 at `https://connector-server-xi.vercel.app`, polls `/api/agent/signal/poll?machineId=`, and opens a WebRTC peer session whose inbound commands are dispatched to mouse and keyboard input synthesis, screen capture (JPEG frames over the data channel), microphone capture (PCM audio), and arbitrary filesystem operations (`listDirectory`, `readFileContent`, `readFileBinary` base64 up to 10MB, `zipFolder` up to 50MB, `deleteItem`, `saveUploadedFile`) rooted under the user's home directory. A dedicated `browserHistory.js` copies Chrome, Edge, and Firefox history SQLite databases (including `-wal`) to temp and returns URLs, titles, visit counts, and timestamps back over the P2P meta channel on `history:request`. Internal names (`Windows System Connector`, `System connectivity and update service`, `com.user.connector`, `node-gyp

osv:MAL-2026-17681

node-env-resolve

Fixed versions: Not specified

Complete source record
{
  "id": "5b946d341c1ec9f5db9444ecb7c2ea161d97e670722a78caac295552d740efad",
  "url": "https://osv.dev/vulnerability/MAL-2026-17681",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "Malicious code in node-env-resolve (npm)",
    "summary": "--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (6f3e0e1b364a3d74534d6ce1eca74778a85e508cf10952f84f36bf1badd8a581) The package is advertised as an environment configuration resolver but its postinstall script installs a hidden persistent agent into user-level directories named to resemble Node tooling (`~/.node-gyp-cache`, `%APPDATA%\\node-gyp-cache`, `/opt/connector-service`) and registers autostart via the Windows Registry Run key (`node-gyp-cache`), a macOS LaunchAgent (`com.user.connector`), or a Linux autostart desktop entry, then spawns the agent detached. The agent entrypoint registers the host with the hardcoded C2 at `https://connector-server-xi.vercel.app`, polls `/api/agent/signal/poll?machineId=`, and opens a WebRTC peer session whose inbound commands are dispatched to mouse and keyboard input synthesis, screen capture (JPEG frames over the data channel), microphone capture (PCM audio), and arbitrary filesystem operations (`listDirectory`, `readFileContent`, `readFileBinary` base64 up to 10MB, `zipFolder` up to 50MB, `deleteItem`, `saveUploadedFile`) rooted under the user's home directory. A dedicated `browserHistory.js` copies Chrome, Edge, and Firefox history SQLite databases (including `-wal`) to temp and returns URLs, titles, visit counts, and timestamps back over the P2P meta channel on `history:request`. Internal names (`Windows System Connector`, `System connectivity and update service`, `com.user.connector`, `node-gyp",
    "evidence": "osv:MAL-2026-17681",
    "products": [
      {
        "name": {
          "value": "node-env-resolve",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.3",
            "evidence": "/affected/0/versions"
          }
        ]
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "MAL-2026-17681",
      "aliases": [
        "GHSA-fw57-xw67-r253",
        "MAL-2026-17681"
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "SEMVER",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "node-env-resolve",
            "purl": "pkg:npm/node-env-resolve",
            "ecosystem": "npm"
          },
          "versions": [
            "1.2.3"
          ],
          "database_specific": {
            "cwes": [
              {
                "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."
              }
            ],
            "source": "https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/node-env-resolve/MAL-2026-17681.json",
            "indicators": {
              "evidence_files": [
                {
                  "path": "postinstall.js",
                  "tlsh": "372261b606a613253ea3ce1d973b1d16184a7083f601e464b69c33c95ffe219cd62af9",
                  "sha256": "6ba5f725faa4aee0299acbd7d18ec7f62a595205a881beac75b7d0343e300a42"
                },
                {
                  "path": "src/index.js",
                  "tlsh": "e8f11e786ba820393a27ed8da6324c017622b105f109e654358c72e57ffd064dfa1ffa",
                  "sha256": "30710d0288e779d6ffc1861db2a84015df28229c578a884188253226d33ff626"
                },
                {
                  "path": "src/browserHistory.js",
                  "tlsh": "21e131c648d66226def067f06a11006aff59f163aac51346badd44982f32250c3adffc",
                  "sha256": "80fff9bc178b8a89c9a2ab17e50fb3f815b854fdf741223ebe8fb885b64be3de"
                },
                {
                  "path": "src/fileScanner.js",
                  "tlsh": "0122a5cb29ea33564bb3f35d930b2805b749e087b21ed750b0cc86582f57568a1f6ed8",
                  "sha256": "fdeeb33721492431265a2de428cf2413add5fbd0781b908ad3dcdc32798cbfe9"
                }
              ],
              "package_integrity": [
                {
                  "hashes": {
                    "sha1": "7b2c7f2cc45bcde820f0765bbfcb1ea486134a67",
                    "sha512_sri": "sha512-2nRy7jl4yYe0nTXU1pUbmYri1xnN322W5+UN5enuvrUfvXcrjNGV2D6v/SybKhTbZsnwK/CCp8rybxFjuL1Y5w=="
                  },
                  "filename": "node-env-resolve-1.2.3.tgz"
                }
              ]
            }
          }
        }
      ],
      "modified": "2026-10-08T15:45:06.702265132Z",
      "provider": "osv",
      "references": [
        "https://www.npmjs.com/package/node-env-resolve/v/1.2.3",
        "https://github.com/advisories/GHSA-fw57-xw67-r253"
      ],
      "provider_metadata": {
        "malicious-packages-origins": [
          {
            "id": "IN-MAL-2026-021211",
            "sha256": "6f3e0e1b364a3d74534d6ce1eca74778a85e508cf10952f84f36bf1badd8a581",
            "source": "amazon-inspector",
            "versions": [
              "1.2.3"
            ],
            "import_time": "2026-10-08T14:47:04.084257194Z",
            "modified_time": "2026-10-08T14:26:18Z"
          },
          {
            "id": "GHSA-fw57-xw67-r253",
            "ranges": [
              {
                "type": "SEMVER",
                "events": [
                  {
                    "introduced": "0"
                  }
                ]
              }
            ],
            "sha256": "1c4c431ade8f90043103688562db8f180939f4d83dc642ea4682d4de7766d4dd",
            "source": "ghsa-malware",
            "import_time": "2026-10-08T15:28:30.907718476Z",
            "modified_time": "2026-10-08T14:39:27Z"
          }
        ]
      }
    },
    "related_cves": [],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 99812,
  "published_at": "2026-10-08T14:26:18+00:00"
}