Skip to content
Heist/ feed
Unrated

Malicious code in dynstrg-howto (npm)

Type: advisorySource: OSV1 source record

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (800fab99d95f1a2cef6ebf269ca240bf60518735cfb58c7c24b6a8474c72ee77) package.json declares a preinstall hook that runs index.js on npm install. index.js collects the installer's hostname, username, home directory, DNS server list, and reads /etc/passwd and /etc/hosts, then HTTPS-POSTs the collected JSON to the hardcoded out-of-band endpoint idzskk7dl8mrfoqx6thyhegqbhha50tp.oastify.com (Burp Collaborator subdomain). Execution is automatic on default install; the destination is attacker-controlled and unrelated to any declared package purpose. ## Source: ghsa-malware (687ddbe581731d5da84cb2a0e04508c31995cbc7fdd378b53090ac8b9a51a0d2) 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.

Announced Source revision 1
Original source ↗

MAL-2026-12787

Primary source · Revision 1

Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.

Security context

Source reference: osv:MAL-2026-12787

dynstrg-howto

Source reference: /affected/0/package/name

Affected versions
1.0.1

Source reference: /affected/0/versions

1.1.1

Source reference: /affected/0/versions

Fixed versions
Not stated in this record
Prerequisites
Not stated in this record

Structured affected-version data

Original package identities and version rules from this source.

[
  {
    "ranges": [
      {
        "type": "SEMVER",
        "events": [
          {
            "introduced": "0"
          }
        ]
      }
    ],
    "package": {
      "name": "dynstrg-howto",
      "purl": "pkg:npm/dynstrg-howto",
      "ecosystem": "npm"
    },
    "versions": [
      "1.0.1",
      "1.1.1"
    ],
    "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."
        },
        {
          "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/dynstrg-howto/MAL-2026-12787.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "index.js",
            "tlsh": "4a412399a2c917330dd214c0aa0c70842399fa777159e99076df4397af869f8b7326f3",
            "sha256": "460460430d93d4d48446d86cd0d16ae29ddac7a559191d4c46b5d68853348b69"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

Event
#10970 · Revision 1
Added to Heist Feed
Publisher date
Read the original announcement