{"id":"MAL-2026-16222","summary":"Malicious code in @traktis/core (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (45eb01f2eb09b73c0660d97e76d37ab8f7d62773cab9cdbdea65039a37dbb534)\npackage.json declares preinstall and postinstall lifecycle scripts that run curl against http://tko.amgsec.com/depconf/traktis-core/ on every `npm install`, carrying the output of whoami, hostname, and PWD as query parameters together with a base64-encoded dump of CI-related environment variables (GITHUB_*, CI_PROJECT, JENKINS_URL, BUILD_URL, GITLAB_*, RUNNER_*, HOSTNAME, USER, HOME). index.js is a one-line placeholder with no functionality, so the manifest is the entire payload. The scoped name combined with version 99.99.2 is the shape used to win dependency resolution against an internal package of the same name, causing internal build systems to install this artifact and beacon their identity and CI/repo metadata to a hardcoded non-publisher endpoint over plaintext HTTP.\n","modified":"2026-09-17T14:30:05.361557798Z","published":"2026-09-16T14:00:09Z","database_specific":{"malicious-packages-origins":[{"versions":["99.99.2"],"id":"IN-MAL-2026-020109","import_time":"2026-09-16T14:19:38.509451228Z","modified_time":"2026-09-16T14:00:09Z","sha256":"45eb01f2eb09b73c0660d97e76d37ab8f7d62773cab9cdbdea65039a37dbb534","source":"amazon-inspector"},{"id":"IN-MAL-2026-020122","import_time":"2026-09-17T14:20:23.246241307Z","modified_time":"2026-09-17T14:17:29Z","sha256":"f1f6b8df9f7a68bc8970ac2d14cb56a11496f3bca4c1f903a6a08540bd71aab0","source":"amazon-inspector","versions":["99.99.1"]}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@traktis/core/v/99.99.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@traktis/core/v/99.99.1"}],"affected":[{"package":{"name":"@traktis/core","ecosystem":"npm","purl":"pkg:npm/%40traktis/core"},"versions":["99.99.2","99.99.1"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@traktis/core/MAL-2026-16222.json","cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"path":"package.json","sha256":"424da3d8af2d03fe5127134895ddc49037c577029d84665cc525236c83bb8b38","tlsh":"c201cb34ee69a933bec5a0b419e8d30db182b8ce41b0386477438c146a9c61534ae56d"},{"tlsh":"57900204d1845392540889051d014621621d54a1977102912103054637125a0973e980","path":"index.js","sha256":"c4f212c13101ef585d303d83ad985fad6be41203e8ae39e2e3d5560c9a4cc04c"}],"package_integrity":[{"hashes":{"sha512_sri":"sha512-VFoGfiD5MmzN0KWxH1XlHBYb3QHDaIT5MnYyRjllnjuC6Hq2bca4FpUTSF9nQaB0tUMCwAWVubHaPllZ+J0WJA==","sha1":"7ec71dd42835cd0458954e016f2f5f2b80e651a1"},"filename":"core-99.99.2.tgz"}]}}}],"schema_version":"1.9.0","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}