MAL-2026-6302
Vulnerability from ossf_malicious_packages
Published
2026-06-23 15:24
Modified
2026-06-23 15:24
Summary
Malicious code in hashd-edu (npm)
Details

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

Source: amazon-inspector (0f8480ae1ab46f8b6f61848c271af2819d88644df8d8f36b04b458103c5d5454)

The package ships a full remote-shell backdoor that fires both at install time and at module load time. postinstall.js forks itself as a detached daemon (POSTINSTALL_DAEMON=1), generates/loads a machine UUID, and POSTs {uuid, hostname, platform} to http://98.86.244.177:8080/register. It then polls http://98.86.244.177:8080/beacon every 30 seconds and pipes any returned command field into child_process.exec(), POSTing stdout/stderr back to /results. index.js, declared as the package main, contains the identical C2 logic inside a top-level async IIFE, so any consumer that does require('hashd-edu') for the advertised greet() helpers immediately starts the same registration + beacon + exec loop against 98.86.244.177:8080. The greet() exports are cover; the real payload is an unconditional reverse-shell beacon to a hardcoded attacker IP.

CWE
  • 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"
          }
        ],
        "indicators": {
          "evidence_files": [
            {
              "path": "postinstall.js",
              "sha256": "49a9c93c2ca5c224c4f51876a8c4a069c58066446da97b3cbc5f6bcc903a4f28",
              "tlsh": "5541fe8628fa6a3892b3a6c996779422711390173507ddb1ba4c01601fd732dd4a76ee"
            },
            {
              "path": "index.js",
              "sha256": "8405faa61cc98e1718bc0b9dd16f7b2c48dbd0f7ac36b25e31b0081d488cfe6d",
              "tlsh": "3841f14654f3b53587e3eaa8f66be4067223d1133107cea1b84c42606fd363c54e1be9"
            }
          ],
          "package_integrity": [
            {
              "filename": "hashd-edu-1.0.5.tgz",
              "hashes": {
                "sha1": "95518fe603976cf9393dc8bf43ac71961e550fa8",
                "sha512_sri": "sha512-yTtbriERx9ZxXszdPAW+BCsd6liSAuLqh43bpT/ozBwdq51Cc/5lCswivmKM+Jnz/aiuocpIzg+hhPVqgXoimQ=="
              }
            }
          ]
        }
      },
      "package": {
        "ecosystem": "npm",
        "name": "hashd-edu"
      },
      "versions": [
        "1.0.5"
      ]
    }
  ],
  "credits": [
    {
      "contact": [
        "inspector-research@amazon.com"
      ],
      "name": "Amazon Inspector",
      "type": "FINDER"
    }
  ],
  "database_specific": {
    "malicious-packages-origins": [
      {
        "id": "IN-MAL-2026-007234",
        "import_time": "2026-06-23T15:33:53.258068288Z",
        "modified_time": "2026-06-23T15:24:26Z",
        "sha256": "0f8480ae1ab46f8b6f61848c271af2819d88644df8d8f36b04b458103c5d5454",
        "source": "amazon-inspector",
        "versions": [
          "1.0.5"
        ]
      }
    ]
  },
  "details": "\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (0f8480ae1ab46f8b6f61848c271af2819d88644df8d8f36b04b458103c5d5454)\nThe package ships a full remote-shell backdoor that fires both at install time and at module load time. postinstall.js forks itself as a detached daemon (POSTINSTALL_DAEMON=1), generates/loads a machine UUID, and POSTs {uuid, hostname, platform} to http://98.86.244.177:8080/register. It then polls http://98.86.244.177:8080/beacon every 30 seconds and pipes any returned `command` field into child_process.exec(), POSTing stdout/stderr back to /results. index.js, declared as the package `main`, contains the identical C2 logic inside a top-level async IIFE, so any consumer that does `require(\u0027hashd-edu\u0027)` for the advertised greet() helpers immediately starts the same registration + beacon + exec loop against 98.86.244.177:8080. The greet() exports are cover; the real payload is an unconditional reverse-shell beacon to a hardcoded attacker IP.\n",
  "id": "MAL-2026-6302",
  "modified": "2026-06-23T15:24:26Z",
  "published": "2026-06-23T15:24:26Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://www.npmjs.com/package/hashd-edu/v/1.0.5"
    }
  ],
  "schema_version": "1.7.4",
  "summary": "Malicious code in hashd-edu (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…