MAL-2026-4267Malicious code in @newline53/newline-ts-sdk (npm)
| Ecosystem | Package | Version |
|---|---|---|
| npm | @newline53/newline-ts-sdk | 1.0.0 |
| npm | @newline53/newline-ts-sdk | 1.0.1 |
| npm | @newline53/newline-ts-sdk | 1.0.2 |
{"modified":"2026-05-26T05:55:01Z","published":"2026-05-23T17:52:10Z","schema_version":"1.7.4","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://<host-username-pkg>.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","affected":[{"package":{"ecosystem":"npm","name":"@newline53/newline-ts-sdk"},"versions":["1.0.1","1.0.2","1.0.0"],"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"}],"indicators":{"domains":["newline53-newline-ts-sdk.scan.scan-e61f3bd6facf.mjcfux88wjjahplabxdauc6bl.canarytokens.com"],"evidence_files":[{"path":"install.js","sha256":"0dfc08ec02993dc0ee798da772eac18d639737cf653a1873bc5882d7ce60db13","tlsh":"b7210f6d39f426602a661ce8621b34116893e117b19aede8b19e97e00f1343892b3ce8"},{"path":"package.json","sha256":"1b55015074f9904d8c4e275c89f0ba58808e7e7f6a8cec8a883eab049b8db625","tlsh":"1ae0c2244a119af33bc14a6a0d266e46bd218e6f4052fc0c63db621093df7ba587922d"}],"package_integrity":[{"filename":"newline-ts-sdk-1.0.2.tgz","hashes":{"sha1":"a497e5712c857ee66e1ffe23ca246eab61d54a78","sha512_sri":"sha512-AuOGLY+BC7wnkWwqXN0dEX+ITCchnW3yOSNRu02HoEqa6coM/c7CegbVTHXv3F/J0hI+csajJdOiI9rhjx1XIQ=="}}]}}}],"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"}],"credits":[{"name":"Amazon Inspector","type":"FINDER","contact":["actran@amazon.com"]},{"name":"OpenSSF: Package Analysis","type":"FINDER","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"]}],"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"]},{"source":"ossf-package-analysis","sha256":"850e524520d9a4f99a9db2a9ffbbe932d1fe9256f89661c2ab33840f66dedbcd","import_time":"2026-05-23T18:26:18.614571294Z","modified_time":"2026-05-23T18:21:22Z","versions":["1.0.2"]},{"source":"amazon-inspector","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","sha256":"475a7ac4130ef9c168565439f8cac230fce87b1d59bc116caec6c712f3a5dc60","import_time":"2026-05-26T05:52:28.272186857Z","id":"IN-MAL-2026-004372","modified_time":"2026-05-23T17:52:32Z","versions":["1.0.1"]},{"source":"amazon-inspector","sha256":"66e2e3fc61650bd0215066af2b21837ff23cb044ab56e385401878cfbec7d8b6","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":"6e3fd64e82a33680c9545e4065e71a2990350d13c0182777df8c094c9514284e","import_time":"2026-05-26T05:52:28.025149829Z","id":"IN-MAL-2026-004370","modified_time":"2026-05-23T17:52:27Z","versions":["1.0.0"]},{"source":"amazon-inspector","sha256":"86fe18bd38e9f6f5b1f5f4278284e76874c2f5781c9bb5396a230a5d9314a0c2","import_time":"2026-05-26T05:52:28.152369964Z","id":"IN-MAL-2026-004371","modified_time":"2026-05-23T17:52:28Z","versions":["1.0.0"]},{"source":"amazon-inspector","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"]}]}}数据来源:OpenSSF Malicious Packages · Apache-2.0