-= Per source details. Do not edit below this line.=-
The package advertises itself as a zero-dependency TypeScript validation library, but lib/index.js unconditionally requires lib/schema/bootstrap.js at module top level. bootstrap.js stores require and module on the global object, then uses a custom permutation cipher (function YWG with magic constants 2540575/34950/50568/5954865) to decode two large opaque string blobs and invokes them via YWG[OSN] — a deliberately renamed reference to Function.constructor — to construct and execute code, finishing with XZs(7942) and tagging global._V = 'A6-Shadow-14' (a fingerprint associated with a commercial JS protector frequently observed on malicious npm releases). Any consumer that does require('safe-validate') triggers this decode-and-eval at import time with full process privileges and access to environment variables and the filesystem. There is no documented feature in a validation library that requires runtime code generation, and the obfuscation wrapper itself (custom cipher + Function.constructor lookup via scrambled property name + side-effect-only module) is the canonical shape of a hidden payload loader. The package additionally claims to be a republish of the legacy funval library while being authored by an unrelated account (deepthought26, repo schema-checker), consistent with reputation-trading to attract installs and upgrades.
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.
{
"malicious-packages-origins": [
{
"import_time": "2026-07-06T19:53:47.998780526Z",
"id": "GHSA-xvj3-jjxg-v74h",
"sha256": "e338d458760f94be3b39af3d50af0a15a851596c90d00ae819271fb6796753ff",
"modified_time": "2026-07-06T18:57:32Z",
"source": "ghsa-malware",
"versions": [
"1.0.4",
"1.0.3",
"1.0.2",
"1.0.1"
]
},
{
"import_time": "2026-07-08T20:32:46.59330414Z",
"id": "IN-MAL-2026-008578",
"sha256": "9392a31ff70ddfe25e8c028528c8f92406db944ea00647db56cba6112eb764ba",
"modified_time": "2026-07-08T20:31:26Z",
"source": "amazon-inspector",
"versions": [
"1.0.1"
]
},
{
"id": "IN-MAL-2026-008566",
"import_time": "2026-07-08T20:32:45.142060683Z",
"sha256": "98e13cb23af287de9a3f0016547a05738234063882b505cfc41fd1b21a9c3c70",
"modified_time": "2026-07-08T20:29:44Z",
"source": "amazon-inspector",
"versions": [
"1.0.2"
]
},
{
"import_time": "2026-07-08T20:32:46.375471788Z",
"id": "IN-MAL-2026-008576",
"sha256": "c7b88a50a782ca47bdbf37fb5fd7c6763af163141c1ba2cf4395de018514620b",
"modified_time": "2026-07-08T20:31:09Z",
"source": "amazon-inspector",
"versions": [
"1.0.3"
]
},
{
"import_time": "2026-07-09T17:19:25.342047528Z",
"id": "IN-MAL-2026-009333",
"sha256": "b7501c4aac0734efb1103573bfcd7e85fa6bb251510656c94bc9ceb747c009d2",
"modified_time": "2026-07-09T16:57:15Z",
"source": "amazon-inspector",
"versions": [
"1.0.4"
]
}
]
}[
{
"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.",
"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"
}
]
{
"evidence_files": [
{
"path": "lib/schema/bootstrap.js",
"tlsh": "c3423b805f467198b7ed2132e28da27e018315930e7680d951cfd22b6e61e69c7bcd9f",
"sha256": "14b2a9bcc5a811ffaa9d086797a62f5e5ff828c9685fd9994d39a16d32ed3c8b"
},
{
"path": "README.md",
"tlsh": "16326101a46362740e7213f5a4c9d1d252d9924d266244fef8fd06b82352eec4b7ee7f",
"sha256": "a5ea1d778f52103a0feb404ac5a937f35461d0cc3827d74e9deda7ecf36aecfa"
}
]
}
"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/safe-validate/MAL-2026-6874.json"