Skip to content
Heist/ feed
Unrated

Malicious code in simple-date-formatter-new-14 (npm)

Type: advisorySource: OSV1 source record

--- _-= Per source details. Do not edit below this line.=-_ ## Source: amazon-inspector (cbe2adf4e9d3b54b33c0e80285a5b0eb4d81dfde75c7a5b7a202ac43793268cd) The package presents itself as a date-formatting utility (index.js is a 160-byte formatDate stub) but the published tarball contains an SSH-key exfiltration payload and an install-time DNS beacon. package.json declares a postinstall lifecycle script that runs 'nslookup 9e954818.log.dnslogs.dpdns.org', causing every installer to beacon a per-package token to attacker-controlled DNS logging infrastructure at install time, leaking installer presence and resolver IP. A sibling postinstall.js reads ~/.ssh (enumerating.pub files and related host/user identifiers) and POSTs the collected data over HTTPS to a hardcoded bare IP endpoint at https://124.221.154.135/post; comments in the file describe SSH key theft and C2 exfiltration. The name-collision between the declared postinstall hook and the stealer filename, combined with the empty author field and typosquat-style package name, is consistent with a disposable supply-chain payload.

Announced Source revision 1
Original source ↗

MAL-2026-17160

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-17160

simple-date-formatter-new-14

Source reference: /affected/0/package/name

Affected versions
1.0.0

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.

[
  {
    "package": {
      "name": "simple-date-formatter-new-14",
      "purl": "pkg:npm/simple-date-formatter-new-14",
      "ecosystem": "npm"
    },
    "versions": [
      "1.0.0"
    ],
    "database_specific": {
      "cwes": [
        {
          "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/simple-date-formatter-new-14/MAL-2026-17160.json",
      "indicators": {
        "evidence_files": [
          {
            "path": "package.json",
            "tlsh": "dfe0cd14cd145c732ac541bddd5749076b15ae1b44407c19739b590c839a77745fd34f",
            "sha256": "25dfa94f6680927f4902d86be56e443581c8f93bee61f99c0539e5c1207371b9"
          },
          {
            "path": "postinstall.js",
            "tlsh": "273165d558f9cd3007778685639b91263102fe13650ee940f3c807a51fe9a5449f2dee",
            "sha256": "f2be6940c08d36a7f1ce83d5fe16fefd8c14edda5d124e0f6406725beb5020ef"
          }
        ],
        "package_integrity": [
          {
            "hashes": {
              "sha1": "d1dbcd45f848c3d9efec090c3ff8d90ac2067692",
              "sha512_sri": "sha512-Ka1xaoyhl+ychIogjhv0mfHhI3CZkZgDtPFzXFoyinEkJlPpuZc0LsMziFbnuB/KlF0Oe20DZDkBrOi0/qaQGA=="
            },
            "filename": "simple-date-formatter-new-14-1.0.0.tgz"
          }
        ]
      }
    }
  }
]

Publisher severity

No explicit severity was provided.

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