{"id":"MAL-2026-10715","summary":"Malicious code in @hibachi-xyz/types (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (214e1b690352ce0af70ce6a37d3b7ac4d8dec4269dc7606b7a65fbb6d4406e8b)\nThe package presents itself as 'Type definitions' for the @hibachi-xyz scope at version 99.0.0, but index.js exports an empty object and its only behavior on module load is credential and host exfiltration. On require(), the code enumerates process.env and filters keys matching /KEY|SECRET|TOKEN|PASS|PRIV|SIGN|AWS|CIRCLE|GITHUB|DB|RDS|SENTRY|PYPI|NPM|DOCKER|KUBE|TUNNEL|CF_/i, captures os.hostname() and os.userInfo().username, and runs `whoami && id && cat /proc/1/cgroup` via child_process.execSync to fingerprint the host and detect container/CI context. The collected secrets and reconnaissance data are POSTed as JSON to https://jorijo.xyz:8443/t with TLS certificate verification disabled (rejectUnauthorized:false). The name/version shape (generic 'types' subpackage under an organization scope at an inflated version 99.0.0) is consistent with dependency-confusion or version-squat targeting the @hibachi-xyz org.\n\n## Source: ossf-package-analysis (51e71c95ff8fc1a03433cfc6ce2b1da6199175e11db673b35349bf852a6c5e5f)\nThe OpenSSF Package Analysis project identified '@hibachi-xyz/types' @ 99.0.0 (npm) as malicious.\n\nIt is considered malicious because:\n\n- The package executes one or more commands associated with malicious behavior.\n","modified":"2026-07-17T03:19:26.727943218Z","published":"2026-07-16T11:20:52Z","database_specific":{"malicious-packages-origins":[{"source":"amazon-inspector","sha256":"214e1b690352ce0af70ce6a37d3b7ac4d8dec4269dc7606b7a65fbb6d4406e8b","import_time":"2026-07-16T18:53:59.801823021Z","id":"IN-MAL-2026-010698","modified_time":"2026-07-16T18:34:00Z","versions":["99.0.0"]},{"import_time":"2026-07-17T03:07:34.335190395Z","modified_time":"2026-07-16T11:20:52Z","versions":["99.0.0"],"source":"ossf-package-analysis","sha256":"51e71c95ff8fc1a03433cfc6ce2b1da6199175e11db673b35349bf852a6c5e5f"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@hibachi-xyz/types/v/99.0.0"}],"affected":[{"package":{"name":"@hibachi-xyz/types","ecosystem":"npm","purl":"pkg:npm/%40hibachi-xyz/types"},"versions":["99.0.0"],"database_specific":{"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@hibachi-xyz/types/MAL-2026-10715.json","cwes":[{"description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code","cweId":"CWE-506"}],"indicators":{"evidence_files":[{"tlsh":"2111e3e0c7e591b452b2a2e494efc017b2e3cc207156ede0368d5ba23e92d9404771f3","path":"index.js","sha256":"0d800f2db51cc9935282ab475e18151d9f169c6b40d5af666b6f405ab9b1fa5e"},{"sha256":"0339dee09b42bcdd7bbf8f6e7c278fe550be7bf2ff858ed25ed3c05d96aff26b","tlsh":"f6c09b341a15a52318c547b4cfa3474b56654e2f101778042753641d91bd97756fb70d","path":"package.json"}],"package_integrity":[{"hashes":{"sha1":"ed3b79d5677abf1cfe486b7083af95284cb38596","sha512_sri":"sha512-zJ4XiaACtrQ9TwHTiJhNOjBsYlYGw9eZkUBvpqo2f+Hjn45wP9Vl10Y79+qSl45e11tkT4OrIxRbsriB5pvw8g=="},"filename":"types-99.0.0.tgz"}]}}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"},{"name":"OpenSSF: Package Analysis","contact":["https://github.com/ossf/package-analysis","https://openssf.slack.com/channels/package_analysis"],"type":"FINDER"}]}