MAL-2026-17160

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-new-14/MAL-2026-17160.json
JSON Data
https://api.test.osv.dev/v1/vulns/MAL-2026-17160
Published
2026-09-24T13:17:15Z
Modified
2026-09-24T13:30:05Z
Summary
Malicious code in simple-date-formatter-new-14 (npm)
Details

-= 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.

Database specific
{
    "malicious-packages-origins":  [
        {
            "id":  "IN-MAL-2026-020510",
            "import_time":  "2026-09-24T13:18:04.646747359Z",
            "modified_time":  "2026-09-24T13:17:15Z",
            "sha256":  "cbe2adf4e9d3b54b33c0e80285a5b0eb4d81dfde75c7a5b7a202ac43793268cd",
            "source":  "amazon-inspector",
            "versions":  [
                "1.0.0"
            ]
        }
    ]
}
References
Credits

Affected packages

npm / simple-date-formatter-new-14

Package

Name
simple-date-formatter-new-14
View open source insights on deps.dev
Purl
pkg:npm/simple-date-formatter-new-14

Affected ranges

Affected versions

1.*
1.0.0

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":  "package.json",
            "sha256":  "25dfa94f6680927f4902d86be56e443581c8f93bee61f99c0539e5c1207371b9",
            "tlsh":  "dfe0cd14cd145c732ac541bddd5749076b15ae1b44407c19739b590c839a77745fd34f"
        },
        {
            "path":  "postinstall.js",
            "sha256":  "f2be6940c08d36a7f1ce83d5fe16fefd8c14edda5d124e0f6406725beb5020ef",
            "tlsh":  "273165d558f9cd3007778685639b91263102fe13650ee940f3c807a51fe9a5449f2dee"
        }
    ],
    "package_integrity":  [
        {
            "filename":  "simple-date-formatter-new-14-1.0.0.tgz",
            "hashes":  {
                "sha1":  "d1dbcd45f848c3d9efec090c3ff8d90ac2067692",
                "sha512_sri":  "sha512-Ka1xaoyhl+ychIogjhv0mfHhI3CZkZgDtPFzXFoyinEkJlPpuZc0LsMziFbnuB/KlF0Oe20DZDkBrOi0/qaQGA=="
            }
        }
    ]
}
source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/simple-date-formatter-new-14/MAL-2026-17160.json"