{"id":"MAL-2026-10741","revision":"40f3a833db8040e69b10f4778c27ad7c","records":[{"revision":"40f3a833db8040e69b10f4778c27ad7c","observedAt":"2026-10-24T13:17:17.793+00:00","statement":{"source":"osv","id":"MAL-2026-10741","aliases":[],"title":"Malicious code in netcontrol-agent (npm)","description":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (967b375e5686bd1eab74838f00cd21c2a8e15291f03a8140b494a83052fd2a92)\nnetcontrol-agent.js implements a remote agent that long-polls a configured server URL and pipes the returned bytes directly into an interactive shell's stdin (cmd.exe on Windows, $SHELL or /bin/bash -i on Linux), while streaming stdout/stderr back to the server's /session/<id>/output endpoint. The relayLoop auto-attaches to any session the server advertises, so whoever controls NC_SERVER_URL obtains full interactive command execution on every host running the agent. The --install path escalates blast radius by writing a systemd unit that runs the agent as root, or a Windows scheduled task with /RU SYSTEM /RL HIGHEST /SC ONSTART, providing boot persistence at maximum privilege. An NC_AUTO_UPDATE mode downloads a replacement agent script from the same server and atomically overwrites AGENT_PATH, letting the server push arbitrary new code to installed hosts on the next poll. Collected host identifiers (os.hostname(), version) are also POSTed to the server. The remote-shell-plus-persistence-plus-self-update composition is a full backdoor mechanism regardless of the package's self-description.\n","state":0,"publishedAt":"2026-07-16T18:40:53+00:00","modifiedAt":"2026-07-16T19:19:50.1662465+00:00","affected":[{"ecosystem":"npm","name":"netcontrol-agent","ranges":[],"versions":["1.0.5"],"rawVersionEvidence":null}],"metrics":[],"references":["https://www.npmjs.com/package/netcontrol-agent/v/1.0.5"],"sourceUrl":"https://osv.dev/vulnerability/MAL-2026-10741","license":"OSV · upstream source license applies","key":"osv:MAL-2026-10741","identifiers":["MAL-2026-10741"]},"retained":false,"historicalAffected":[]}],"coverage":[]}