mal-2026-5844
Vulnerability from ossf_malicious_packages
Published
2026-06-15 23:39
Modified
2026-06-18 19:21
Summary
Malicious code in numdifftools (npm)
Details

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

Source: amazon-inspector (5c6d98d619244a4f34ba9c2ed85023e35f4064b0a45871edac806d1e8cdeff11)

The npm package numdifftools is an empty shell (zero-byte index.js) that exists solely to fire a preinstall lifecycle hook. The hook runs node -e to issue an HTTPS GET to https://webhook.site/cbfd239f-50d1-4bc6-9801-ba08ba9a2a4a/?host=numdiff-<hostname>, leaking the installer's os.hostname() to a third-party logging endpoint automatically on npm install before any code review opportunity. The package name reuses that of the well-known PyPI numerical-differentiation library numdifftools, capturing installs from developers who mistakenly run npm install numdifftools expecting the Python library's behavior. The package provides none of the advertised functionality — its only on-install effect is the host-identifier beacon.

Source: ghsa-malware (ecd4954558bd423a9adc4cee0b684f36395b22e0f539d7434f93d9297c5430aa)

Any computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.

CWE
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
  • CWE-506 - The product contains code that appears to be malicious in nature.
Credits

{
  "affected": [
    {
      "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"
          }
        ],
        "indicators": {
          "evidence_files": [
            {
              "path": "package.json",
              "sha256": "2c27d4b908add8b2069b10463530bf65d05de3e786c0f7bd776bfb76229df273",
              "tlsh": "25e0abf00d50f1333a8001a04997901af1e2dd09200859486fc3606941caa72a17a16c"
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "numdifftools"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "SEMVER"
        }
      ],
      "versions": [
        "1.0.1",
        "1.0.0"
      ]
    }
  ],
  "aliases": [
    "GHSA-fv2r-6vq4-5x8r"
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "GHSA-fv2r-6vq4-5x8r",
        "import_time": "2026-06-15T23:52:17.800130289Z",
        "modified_time": "2026-06-15T23:39:14Z",
        "ranges": [
          {
            "events": [
              {
                "introduced": "0"
              }
            ],
            "type": "SEMVER"
          }
        ],
        "sha256": "ecd4954558bd423a9adc4cee0b684f36395b22e0f539d7434f93d9297c5430aa",
        "source": "ghsa-malware"
      },
      {
        "id": "IN-MAL-2026-007026",
        "import_time": "2026-06-18T19:20:03.166680171Z",
        "modified_time": "2026-06-18T19:10:23Z",
        "sha256": "29da6a2a5913e2d3e9b92b1a5f7ba3b6e45b2afea2e911ebaeb123ebb776fd27",
        "source": "amazon-inspector",
        "versions": [
          "1.0.1"
        ]
      },
      {
        "id": "IN-MAL-2026-007027",
        "import_time": "2026-06-18T19:20:03.280564224Z",
        "modified_time": "2026-06-18T19:10:24Z",
        "sha256": "5c6d98d619244a4f34ba9c2ed85023e35f4064b0a45871edac806d1e8cdeff11",
        "source": "amazon-inspector",
        "versions": [
          "1.0.0"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (5c6d98d619244a4f34ba9c2ed85023e35f4064b0a45871edac806d1e8cdeff11)\nThe npm package `numdifftools` is an empty shell (zero-byte index.js) that exists solely to fire a `preinstall` lifecycle hook. The hook runs `node -e` to issue an HTTPS GET to `https://webhook.site/cbfd239f-50d1-4bc6-9801-ba08ba9a2a4a/?host=numdiff-\u003chostname\u003e`, leaking the installer\u0027s `os.hostname()` to a third-party logging endpoint automatically on `npm install` before any code review opportunity. The package name reuses that of the well-known PyPI numerical-differentiation library `numdifftools`, capturing installs from developers who mistakenly run `npm install numdifftools` expecting the Python library\u0027s behavior. The package provides none of the advertised functionality \u2014 its only on-install effect is the host-identifier beacon.\n\n## Source: ghsa-malware (ecd4954558bd423a9adc4cee0b684f36395b22e0f539d7434f93d9297c5430aa)\nAny computer that has this package installed or running should be considered fully compromised. All secrets and keys stored on that computer should be rotated immediately from a different computer. The package should be removed, but as full control of the computer may have been given to an outside entity, there is no guarantee that removing the package will remove all malicious software resulting from installing it.\n",
  "id": "MAL-2026-5844",
  "modified": "2026-06-18T19:21:58Z",
  "published": "2026-06-15T23:39:12Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://github.com/advisories/GHSA-fv2r-6vq4-5x8r"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/numdifftools/v/1.0.1"
    },
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/numdifftools/v/1.0.0"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in numdifftools (npm)"
}


Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.

Loading…

Detection rules are retrieved from Rulezet.

Loading…

Loading…