pino-std ships lib/contract.js, byte-identical to the pino-testkit payload: a copy of the pino logger with an extra obfuscated module that decodes and evaluates code at load. It is a new name for the pino-testkit (MAL-2026-16484) campaign; the file hashes below match that record's evidence. The package presents itself as an ordinary utility, so the code runs on import or install without the user knowing.
-= Per source details. Do not edit below this line.=-
The package name resembles the legitimate pino-std-serializers and the tarball reproduces that project's source files, README, and author metadata nearly verbatim. In addition, it ships an undocumented file lib/contract.js that is not referenced from index.js, the README, or any lifecycle script. contract.js reconstructs a function body from a character-shuffled/char-code-substituted string and executes it via the Function constructor reached indirectly through a prototype's constructor property (ype.constructor). The same file stashes the Node require function into a global variable before invoking the reconstructed code, which lets the hidden payload load arbitrary built-in and installed modules once reached. The combination of a lookalike package name, verbatim copying of an upstream project to serve as cover, an added undocumented file that runtime-assembles and executes opaque code, and a global-require stash is the shape of a dormant/second-stage loader rather than legitimate functionality. The payload is not invoked from the package's main entry or from a lifecycle hook, so installing or requiring pino-std does not auto-detonate it in a default npm install; execution requires the file to be reached by a consumer or a later-added import.
{
"iocs": {
"domains": [],
"files": [
{
"digests": {
"sha256": "c6a9028513792f288fec1d7c217c55d9541d96d436cb119ef0553c3fd49d6c41"
},
"paths": [
"lib/contract.js"
]
}
],
"ips": [],
"urls": []
},
"malicious-packages-origins": [
{
"id": "IN-MAL-2026-022722",
"import_time": "2026-11-13T04:13:26.212064595Z",
"modified_time": "2026-11-13T03:37:01Z",
"sha256": "252ced7b2337bba36d5947f3d974c51d118a54661c1b59ef0dbc706cb3d44fc0",
"source": "amazon-inspector",
"versions": [
"7.2.0"
]
}
]
}[
{
"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"
}
]
{
"evidence_files": [
{
"path": "lib/contract.js",
"sha256": "c6a9028513792f288fec1d7c217c55d9541d96d436cb119ef0553c3fd49d6c41",
"tlsh": "22a16b125f9676bd58226287ed0e04058d3136fc63f4f0ae604ef5a158e634e433ecea"
}
],
"package_integrity": [
{
"filename": "pino-std-7.2.0.tgz",
"hashes": {
"sha1": "dff43668d315cb7dd88e3a4f640e10e563250863",
"sha512_sri": "sha512-uUx1b1iGJjUEJREZthBjxgFBAOGQ4nqmoEb0vb30EjwVNbD/m8zg1dYFDijKB4h8UgAlHLzXJ2YAIAhvSK27sA=="
}
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/pino-std/MAL-2026-18692.json"