MAL-2026-10188Malicious code in awesome-ts-jest (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | awesome-ts-jest | * |
| npm | awesome-ts-jest | 29.4.12 |
{"schema_version":"1.7.4","id":"MAL-2026-10188","published":"2026-07-11T23:21:03Z","modified":"2026-08-18T00:21:54.896298650Z","aliases":["GHSA-7xr4-v32m-4h8x"],"summary":"Malicious code in awesome-ts-jest (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (8dc9fa6bfe010d792303258bd713e854e8c218c18762d62b864e8a350d1b473e)\nPackage advertises itself as a TypeScript/ESLint/Jest toolkit but ships no such tooling. On import, index.js -> run() -> packProjectBundle() walks the project CWD, the user's home directory, and (on Windows) drives C:-J: matching filenames against a wallet/seed/mnemonic/keystore/private-key/credential keyword list (wallet, mnemonic, privatekey, keystore, metamask, ledger, trezor,.env*, config.toml,.pem,.p12,.pfx). collectDevSecrets() additionally scans ~/projects, ~/dev, ~/code, ~/repos, ~/src, ~/work, ~/Desktop, ~/Documents and regex-matches file contents for EVM private keys, Solana key arrays, BIP-39 mnemonics, Hardhat mnemonics, AWS secrets, API_SECRET/ACCESS_TOKEN values, and npm/GitHub/PyPI tokens; matches are written into 'dev-secrets-scrape.txt'. gatherShellHistory() reads.bash_history,.zsh_history, fish history, and PowerShell PSReadLine ConsoleHost_history.txt and shells out via execSync('bash -c history') and execSync(\"zsh -c 'fc -l -1000'\"). gatherClipboardSnapshots() invokes PowerShell Get-Clipboard, pbpaste, wl-paste, and xclip to capture clipboard contents. index.js also base64-decodes '8.8.8.8:80' and opens a UDP socket to learn the outbound interface IP for victim fingerprinting. upload.js multipart-POSTs the collected files, username, and platform metadata to a hardcoded endpoint at https://trabalhos-flax.vercel.app/api/v1 (DEFAULT_API_BASE). Several destination and pattern strings are base64-encoded at the entrypoint to obscure intent.\n\n## Source: ghsa-malware (9e018ef7a6148cc033f43634b7b4222020279cde5d0968f2e1f09f17210bee74)\nAny 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.\n","affected":[{"package":{"name":"awesome-ts-jest","ecosystem":"npm"},"ranges":[{"type":"SEMVER","events":[{"introduced":"0"}]}],"versions":["29.4.12"],"database_specific":{"cwes":[{"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"}],"indicators":{"evidence_files":[{"path":"lib/collect.js","sha256":"3bba21021a32cdcfa653be8f1f09a827af8c442780813af584cd555ee2765de0","tlsh":"ac82d7c910f972298bf2a3b9db170015fe6b4963d4068399fefc8a842f76110d265dec"},{"path":"lib/config.js","sha256":"17065c14de5160fe0e66ff15f4d717b27637d517b23865fce16683c834dd0773","tlsh":"9641e1aeefcc6d0116e45ba83c7c181569f5b22da590d2713934f4822fbd21383b297e"},{"path":"index.js","sha256":"29dc3344c5bb02d36697ece4e9aceae0dd944a27b1ad2d5946d18bd866e71776","tlsh":"807196457df93631a1f32580ea8f44117588c202350aae067ebc97816f17214bbb3dea"},{"path":"package.json","sha256":"3209af620ce640973cd65c49745af19849007db0a668092e3aa95de3a9af0c54","tlsh":"a4f05c32aeb1d46316c819520e7ac06f6670dc1f0748fd1873db152c43ec5b224bd259"}],"package_integrity":[{"filename":"awesome-ts-jest-29.4.12.tgz","hashes":{"sha1":"b49f69619fd5448398dce63819bf937078ce8546","sha512_sri":"sha512-HRJyEPHeAcqNxgLN4MsAfFh6o/LZFuIc9sLjDfxJYzZn++OAdcE0EJDSVEe95mWJVWGSkEeP3TptKDtW9bZvDA=="}}]}}}],"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/awesome-ts-jest/v/29.4.12"},{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-7xr4-v32m-4h8x"}],"database_specific":{"malicious-packages-origins":[{"id":"IN-MAL-2026-009743","import_time":"2026-07-11T23:49:33.863675982Z","modified_time":"2026-07-11T23:21:03Z","sha256":"8dc9fa6bfe010d792303258bd713e854e8c218c18762d62b864e8a350d1b473e","source":"amazon-inspector","versions":["29.4.12"]},{"id":"GHSA-7xr4-v32m-4h8x","import_time":"2026-08-18T00:20:04.629661062Z","modified_time":"2026-08-17T14:20:40Z","ranges":[{"events":[{"introduced":"0"}],"type":"SEMVER"}],"sha256":"9e018ef7a6148cc033f43634b7b4222020279cde5d0968f2e1f09f17210bee74","source":"ghsa-malware"}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}数据来源:OpenSSF Malicious Packages · Apache-2.0