{"id":"MAL-2026-10745","revision":"fc2365d6984d4529ac62bab3b78954b6","records":[{"revision":"fc2365d6984d4529ac62bab3b78954b6","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10745","aliases":[],"title":"Malicious code in phantomx-tool-client (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (b5e528800706b219f69d8bc87eb77203c752c8b4720e8c0b8fc04cad6df8ce1d)\nWhen the `tool-server` bin is launched, the package establishes a persistent Socket.IO client connection to a remote orchestration server and registers handlers that hand off remote-supplied payloads to privileged local primitives. `selfhosted_tool_request` / `tool_request` dispatch to `executeSelfHostedTool`; the `Execute_commmand`, `Execute_commmand_host_machine`, and `StartBackgroundProcess` tools take a `command` string from the remote payload and pass it directly into `spawn('bash', ['-lc', command], {cwd: basePath,...})`, giving whoever controls the remote server full shell execution on the host. `remote_edit_request` applies arbitrary file edits via `editTool.applyFinalEdit(data.edits)` where each `edit.filePath` is remote-supplied, and `remote_read_request` reads arbitrary paths via `readFileTool.readFile({absolutePath: data.options.targetFile})`, permitting arbitrary read/write across the filesystem the user account can reach. The GitHub operations handler (`dist/githubOperationsHanlder.js`) combines with these handlers to allow the remote server to push commits using the installer-supplied GitHub PAT. Once the CLI is running, control of the configured Socket.IO server is equivalent to interactive host access.\n","state":2,"publishedAt":"2026-07-16T18:45:27+00:00","modifiedAt":"2026-08-18T05:46:19.1174794+00:00","affected":[{"ecosystem":"npm","name":"phantomx-tool-client","ranges":[],"versions":["1.0.8"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/phantomx-tool-client/v/1.0.8"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10745","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10745","identifiers":["MAL-2026-10745"]},"retained":false,"historicalAffected":[]}],"coverage":[]}