{"id":"MAL-2026-4267","summary":"Malicious code in @newline53/newline-ts-sdk (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (475a7ac4130ef9c168565439f8cac230fce87b1d59bc116caec6c712f3a5dc60)\nOn `npm install`, the postinstall hook (`node install.js`) collects `os.hostname()` and `os.userInfo().username` along with the package name, encodes them as a DNS subdomain of `mjcfux88wjjahplabxdauc6bl.canarytokens.com`, and beacons out via DNS resolution (`dns.lookup`/`dns.resolve`) and HTTP requests (shelled `curl`/`wget` to `http://\u003chost-username-pkg\u003e.mjcfux88wjjahplabxdauc6bl.canarytokens.com`). The package has no real functionality — `index.js` is `module.exports = {}` — and `package.json` carries placeholder author metadata (a 32-char hex string with no homepage or repository). The structure (empty main, recon-only postinstall, canarytoken endpoint) is the canonical dependency-confusion probe: an attacker publishes a public npm package matching an internal scope name to detect whether private builds inside a target organization resolve to and install the public name. The exfiltrated hostname/username identifies the victim environment to the attacker.\n\n## Source: ossf-package-analysis (5410fe1569b6b68356a714bec6729f19f05c94faa3ee858c58df8a35345f5eca)\nThe OpenSSF Package Analysis project identified '@newline53/newline-ts-sdk' @ 1.0.1 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package communicates with a domain associated with malicious activity.\n\n- The package executes one or more commands associated with malicious behavior.\n","modified":"2026-05-26T06:01:55.899687349Z","published":"2026-05-23T17:52:10Z","database_specific":{"malicious-packages-origins":[{"source":"ossf-package-analysis","sha256":"5410fe1569b6b68356a714bec6729f19f05c94faa3ee858c58df8a35345f5eca","import_time":"2026-05-23T18:26:18.344447533Z","modified_time":"2026-05-23T17:52:10Z","versions":["1.0.1"]},{"sha256":"850e524520d9a4f99a9db2a9ffbbe932d1fe9256f89661c2ab33840f66dedbcd","import_time":"2026-05-23T18:26:18.614571294Z","modified_time":"2026-05-23T18:21:22Z","versions":["1.0.2"],"source":"ossf-package-analysis"},{"sha256":"1ebfb513ccab4c26eb32c705dff22c1d406b63b808a892a412b96e83a82cbc57","import_time":"2026-05-26T05:52:28.486342435Z","id":"IN-MAL-2026-004374","modified_time":"2026-05-23T17:54:28Z","versions":["1.0.2"],"source":"amazon-inspector"},{"id":"IN-MAL-2026-004372","modified_time":"2026-05-23T17:52:32Z","versions":["1.0.1"],"source":"amazon-inspector","sha256":"475a7ac4130ef9c168565439f8cac230fce87b1d59bc116caec6c712f3a5dc60","import_time":"2026-05-26T05:52:28.272186857Z"},{"import_time":"2026-05-26T05:52:28.583907486Z","id":"IN-MAL-2026-004375","modified_time":"2026-05-23T17:54:28Z","versions":["1.0.2"],"source":"amazon-inspector","sha256":"66e2e3fc61650bd0215066af2b21837ff23cb044ab56e385401878cfbec7d8b6"},{"modified_time":"2026-05-23T17:52:27Z","versions":["1.0.0"],"source":"amazon-inspector","sha256":"6e3fd64e82a33680c9545e4065e71a2990350d13c0182777df8c094c9514284e","import_time":"2026-05-26T05:52:28.025149829Z","id":"IN-MAL-2026-004370"},{"id":"IN-MAL-2026-004371","modified_time":"2026-05-23T17:52:28Z","versions":["1.0.0"],"source":"amazon-inspector","sha256":"86fe18bd38e9f6f5b1f5f4278284e76874c2f5781c9bb5396a230a5d9314a0c2","import_time":"2026-05-26T05:52:28.152369964Z"},{"sha256":"aad6652e2eb0c57558109b87ff36a64fdea033ec256d4aa78268c6f49afba499","import_time":"2026-05-26T05:52:28.386210877Z","id":"IN-MAL-2026-004373","modified_time":"2026-05-23T17:52:33Z","versions":["1.0.1"],"source":"amazon-inspector"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@newline53/newline-ts-sdk/v/1.0.2"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@newline53/newline-ts-sdk/v/1.0.1"},{"type":"PACKAGE","url":"https://www.npmjs.com/package/@newline53/newline-ts-sdk/v/1.0.0"}],"affected":[{"package":{"name":"@newline53/newline-ts-sdk","ecosystem":"npm","purl":"pkg:npm/%40newline53%2Fnewline-ts-sdk"},"versions":["1.0.1","1.0.2","1.0.0"],"database_specific":{"cwes":[{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."},{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"},{"name":"Embedded Malicious Code","cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature."}],"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@newline53/newline-ts-sdk/MAL-2026-4267.json","indicators":{"evidence_files":[{"tlsh":"b7210f6d39f426602a661ce8621b34116893e117b19aede8b19e97e00f1343892b3ce8","path":"install.js","sha256":"0dfc08ec02993dc0ee798da772eac18d639737cf653a1873bc5882d7ce60db13"},{"tlsh":"1ae0c2244a119af33bc14a6a0d266e46bd218e6f4052fc0c63db621093df7ba587922d","path":"package.json","sha256":"1b55015074f9904d8c4e275c89f0ba58808e7e7f6a8cec8a883eab049b8db625"}],"package_integrity":[{"filename":"newline-ts-sdk-1.0.2.tgz","hashes":{"sha512_sri":"sha512-AuOGLY+BC7wnkWwqXN0dEX+ITCchnW3yOSNRu02HoEqa6coM/c7CegbVTHXv3F/J0hI+csajJdOiI9rhjx1XIQ==","sha1":"a497e5712c857ee66e1ffe23ca246eab61d54a78"}}],"domains":["newline53-newline-ts-sdk.scan.scan-e61f3bd6facf.mjcfux88wjjahplabxdauc6bl.canarytokens.com"]}}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["actran@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}