MAL-2026-4199

See a problem?
Import Source
https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ts-logger-pack/MAL-2026-4199.json
JSON Data
https://api.osv.dev/v1/vulns/MAL-2026-4199
Aliases
  • GHSA-8w97-mwv3-cwx3
Published
2026-05-20T06:52:04Z
Modified
2026-05-22T17:17:40.060837461Z
Summary
Malicious code in ts-logger-pack (npm)
Details

ts-logger-pack is a malicious npm package that depends on terminal-logger-utils and triggers the malicious behavior in that package when installed or imported.

The terminal-logger-utils payload executes a postinstall hook that opens utils.cjs, an obfuscated malware dropper. The dropper downloads and runs a platform-specific second-stage binary from Hugging Face. The second-stage payload provides keylogger, infostealer, and RAT behavior, steals sensitive local data including Telegram Desktop sessions, browser login databases, crypto wallets, SSH keys, cloud configurations, environment variables, and keyword-matched files, and connects to a remote server for full machine control.


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

Source: ghsa-malware (baf23be122d75b0f3bb5c0175a7289155d31570a665037b0b2ba499ae08c661a)

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.

Database specific
{
    "malicious-packages-origins": [
        {
            "sha256": "baf23be122d75b0f3bb5c0175a7289155d31570a665037b0b2ba499ae08c661a",
            "id": "GHSA-8w97-mwv3-cwx3",
            "ranges": [
                {
                    "type": "SEMVER",
                    "events": [
                        {
                            "introduced": "0"
                        }
                    ]
                }
            ],
            "modified_time": "2026-05-22T16:00:52Z",
            "source": "ghsa-malware",
            "import_time": "2026-05-22T16:59:25.098156388Z"
        }
    ]
}
References
Credits

Affected packages

npm / ts-logger-pack

Package

Affected ranges

Type
SEMVER
Events
Introduced
0Unknown introduced version / All previous versions are affected

Affected versions

1.*
1.1.3

Database specific

source
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/ts-logger-pack/MAL-2026-4199.json"
cwes
[
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    },
    {
        "name": "Embedded Malicious Code",
        "description": "The product contains code that appears to be malicious in nature.",
        "cweId": "CWE-506"
    }
]