{"schema_version":"1.9.2","id":"MAL-2026-18205","published":"2026-10-23T00:56:39Z","modified":"2026-10-29T14:30:32.800855052Z","aliases":["GHSA-xvgg-qjjh-gq34"],"summary":"Malicious code in @tekmidian/pai (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (a26877c40609e311219c5193d5c1e2c50b5edf63913c0e4d7ad2be298e11f631)\nThe package ships a bundled Node CLI under dist/ composed of multiple minified.mjs chunks (cli, cli2, hooks/worker-*, routing, project-setup, local-tiers, models-add, session-scan, hang-probe, config). Keyword co-occurrence rules match on tokens such as `PATH`, `ping`, `curl`, `GET`, `POST`, `Buffer.from(..., 'base64').toString(...)`, and example-domain strings (`curl https://example.com`, `curl http://localhost`, `curl http://x`) inside the bundles and in src/hooks/ts/lib/rules/builtin.generated.ts, which is a rules file enumerating example commands as inert data. The matches are spread across unrelated chunks and lines, consistent with a developer-agent/CLI codebase that references shell commands as sample inputs, rule patterns, and process-launching utilities rather than a hardcoded exfiltration path. No install or import lifecycle script is declared that would auto-run these paths, no attacker-controlled destination domain or IP is bound to a network sink, no read of installer-secret paths (~/.aws, ~/.ssh, ~/.npmrc, browser or wallet stores) is tied to an outbound request, and the base64 decode sites are not wired to eval/exec of the decoded bytes. The observed signals are pattern co-occurrence in a minified bundle without a concrete installer-harm flow.\n\n## Source: ghsa-malware (edec0655f6132f9a6bcf8c5025db3cbb86d2802ade88ab4f3acc6af4b3f40adb)\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":"@tekmidian/pai","ecosystem":"npm","purl":"pkg:npm/%40tekmidian/pai"},"versions":["1.0.9","1.0.8","1.0.10"],"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"},{"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"}],"indicators":{"evidence_files":[{"path":"dist/cli/index.mjs","sha256":"3ceee2ce7fd00cdb12ea3735cf2e63c8b34c303605e1c684df50c2a5a4ffc9dd","tlsh":"2a353b55e79c91331bf411945c2f44cbeb3d8a623e05ecb1f4dde078328986ec1aae99"},{"path":"dist/cli2/index.mjs","sha256":"68b96d19dedd57da04f06606faa882f982a068a5b88760ea7f50288e9b934968","tlsh":"7254f71ad35c91b30ff512c46c6e98d79b3d4250ba8528f7e4deb03463ceb9ec5a6680"},{"path":"dist/config-B3MXRjT9.mjs","sha256":"94b6fc73cb3ce6a0ca51484f73d52ccb7e2efb7ba35661205c63e8419555d724","tlsh":"bcb30891e39f253706a117e0bc2e936efa7c95883944bc6090eec17431cbd9d42b7b96"},{"path":"dist/hang-probe-C7LqXIe5.mjs","sha256":"c7662400f4ba778d36da75ded54116d6f41ba2fd2177dd0415a6cdb298b50874","tlsh":"8b120ba6d7ad273851f21064574ec05a9a6fd0263a85ecf1fc7c23503f93868a3b5ec9"},{"path":"dist/hooks/load-project-context.mjs","sha256":"08c26297846c9c32631763a96944168a0d56e495781314808471c4932f880136","tlsh":"8484c74a69f310324763b5b86f5b9005763590132408edacfd9c92a06f86a3987f7fed"},{"path":"dist/hooks/worker-guard.mjs","sha256":"81adb1bdc546cac22a2a83962e98bdfb6692e38bb058792e52d0bedd31ba7c7b","tlsh":"5794c68a66f71022476371b96f5fd015b63490132148ed98fdac92a06f8693983f7fec"},{"path":"dist/hooks/worker-note.mjs","sha256":"c8dce9680cdc53e6b12ed422fc1ed17fd667d675b450c1400a0fcf1db82b3b32","tlsh":"9c74b54a6af31022466375b96f5bd015763490172008edacfd9c82e06f86a3987f7fed"},{"path":"dist/hooks/worker-proxy.mjs","sha256":"448ddd8d0fa99c44d7201afb8fb4388e7bd63a23e262ffe1a52624e142d92030","tlsh":"bd74a64a6af31022476375b96f5bd005763490176408edacfd9c82a06f86a3987f7fec"},{"path":"dist/local-tiers-CqwGUcEn.mjs","sha256":"92dd0bdbdfc95125015a737974199adf23c4304489064d818140914973fedf41","tlsh":"07821aa0d3de9c6707a813d0a93e665fd57ee6413840fce79abc5a70348687cf636a01"},{"path":"dist/models-add-UyQGpfAG.mjs","sha256":"09727381845faed89cd1734d047b628a35e0901e74d9e9ec80551759489cb52a","tlsh":"a732b6a3e39fdf3b07f00a996d1eb1e6673d82117e88b8d2c45d67317a1947c8062b94"},{"path":"dist/project-setup-CTravHTI.mjs","sha256":"f80bc7e7bb2c6543828c46c101746bc5bac5831bbb7abc18320e10880ba6f3b4","tlsh":"12b3f862e36c52b20bb412807d6d86db9f7c4454bac46cf7b89e607432dfa9e81e59c0"},{"path":"dist/routing-DTUYLL0N.mjs","sha256":"1a46b866efc374a0d9dee3877713c19bccb775d8865817362f63fe3273b6e9e2","tlsh":"f03429f1f3ae263707e412e07d5e4a9beb7cc4613904dca1e8ad90a431c796dc2b69d1"},{"path":"dist/session-scan-CcVFWS2u.mjs","sha256":"ef9a8e0a9ffe3fd5f69572f908bee155c18f9603c26ab17b05c4bf962bf2ff69","tlsh":"75e2d7e0ff8c627247e953841c7f819ae77cd0923a14d8acfdac86453260e5ac2b9e55"},{"path":"src/hooks/ts/lib/rules/builtin.generated.ts","sha256":"60551d2ec5a0a558194797f4d4ceb251e074f5052abd7bfafc9554dd920b0be2","tlsh":"f0d23225c5744d7222c929da87b90245bb96c81f8c8e7e0cfb8c671d5f1e81f52b12ae"}],"package_integrity":[{"filename":"pai-1.0.8.tgz","hashes":{"sha1":"ddab410b7d6d37b6d0646e21c51c236293d0d138","sha512_sri":"sha512-oX3ccX+QFn6AnNSIxsLMSWlNt7c6WDKS4mvjxOd2YSYqJAYqBSUZBEb3vVO/m8FAOioUa/fYfHAYw3NIyJRC2w=="}}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@tekmidian/pai/MAL-2026-18205.json"}}],"references":[{"type":"ADVISORY","url":"https://github.com/advisories/GHSA-xvgg-qjjh-gq34"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@tekmidian/pai/v/1.0.8"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@tekmidian/pai/v/1.0.10"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@tekmidian/pai/v/1.0.9"}],"database_specific":{"malicious-packages-origins":[{"id":"GHSA-xvgg-qjjh-gq34","import_time":"2026-10-23T00:57:46.52469671Z","modified_time":"2026-10-23T00:56:40Z","sha256":"edec0655f6132f9a6bcf8c5025db3cbb86d2802ade88ab4f3acc6af4b3f40adb","source":"ghsa-malware","versions":["1.0.9"]},{"id":"GHSA-xvgg-qjjh-gq34","import_time":"2026-10-23T01:36:41.206503994Z","modified_time":"2026-10-23T00:58:41Z","sha256":"f2f024a240cc56f99a6e3ed0a7f25371655661ba3e5849ccc5d6ce9d0b810db5","source":"ghsa-malware","versions":["1.0.8","1.0.9"]},{"id":"GHSA-xvgg-qjjh-gq34","import_time":"2026-10-23T02:36:25.392593989Z","modified_time":"2026-10-23T01:44:32Z","sha256":"a77d4b30c471895b4c9eac640737bd384f04c6413853a2876cd4dd7b20ba5e04","source":"ghsa-malware","versions":["1.0.10","1.0.8","1.0.9"]},{"id":"IN-MAL-2026-022081","import_time":"2026-10-29T14:14:24.053584726Z","modified_time":"2026-10-29T13:46:17Z","sha256":"2c3cd0ec9bb3e06922054fc54d4a2d85ded8f668782ee15edcff2388aadba547","source":"amazon-inspector","versions":["1.0.8"]},{"id":"IN-MAL-2026-022079","import_time":"2026-10-29T14:14:23.780081228Z","modified_time":"2026-10-29T13:46:02Z","sha256":"2fe53b6ed93e5ae098c04c885735ec56ec1da53941bed3b7c8bbdfea9b7dfbb9","source":"amazon-inspector","versions":["1.0.10"]},{"id":"IN-MAL-2026-022082","import_time":"2026-10-29T14:14:24.129334188Z","modified_time":"2026-10-29T13:46:26Z","sha256":"a26877c40609e311219c5193d5c1e2c50b5edf63913c0e4d7ad2be298e11f631","source":"amazon-inspector","versions":["1.0.9"]}]},"credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}