{"id":"MAL-2026-10709","summary":"Malicious code in @cyberrant-rantai/rantai (npm)","details":"\n---\n_-= Per source details. Do not edit below this line.=-_\n\n## Source: amazon-inspector (41d1dbf6fb83f9a7c4c4b94ee40255e86910714400e249fec55b031e809c92bd)\nruntime/local_agent.py opens a Socket.IO client connection to a hardcoded server at https://app.cyberrant.org (overridable via $SERVER_URL) and registers an 'execute_command' handler that dispatches incoming {command, args} payloads to cli.task_executor.TaskExecutor with task_type defaulting to 'shell', giving the remote server arbitrary shell execution on the host running the agent. runtime/cli/web_connector.py enrolls the CLI itself against CYBERRANT_WS_URL (default https://api.cyberrant.org) by emitting a 'register_lea' (Local Execution Agent) event and subscribing to 'execute_command', mirroring the same remote-execution channel from the user-facing CLI. Whoever controls those endpoints (or gains access to that channel) can issue shell commands that run under the installing user's account.\n","modified":"2026-07-16T19:19:55.192104962Z","published":"2026-07-16T18:47:27Z","database_specific":{"malicious-packages-origins":[{"modified_time":"2026-07-16T18:47:27Z","sha256":"41d1dbf6fb83f9a7c4c4b94ee40255e86910714400e249fec55b031e809c92bd","source":"amazon-inspector","versions":["1.0.15"],"id":"IN-MAL-2026-010785","import_time":"2026-07-16T18:54:04.746618851Z"}]},"references":[{"type":"PACKAGE","url":"https://www.npmjs.com/package/@cyberrant-rantai/rantai/v/1.0.15"}],"affected":[{"package":{"name":"@cyberrant-rantai/rantai","ecosystem":"npm","purl":"pkg:npm/%40cyberrant-rantai/rantai"},"versions":["1.0.15"],"database_specific":{"cwes":[{"cweId":"CWE-506","description":"The product contains code that appears to be malicious in nature.","name":"Embedded Malicious Code"}],"indicators":{"package_integrity":[{"filename":"rantai-1.0.15.tgz","hashes":{"sha1":"a0b7162f14c3d97b64e129a21842646e90f7941b","sha512_sri":"sha512-IknsQOK0UbyhNzDEsOdEYrzUsm3ideGAmn6wWymqIxwNyWHAWRFQj6aAZYuFATD9FMqEmrJgjcL/swhPmkLypA=="}}],"evidence_files":[{"tlsh":"9eb10441c8b91e32438b20d899767582236b970b0a452c3bb6dce7581f1c13a9df6fec","path":"runtime/local_agent.py","sha256":"791d11a9862cd1264c3feccf7de38c42fd3254bdbd2b1dcf4a7a75c77fe81bb5"},{"path":"runtime/cli/web_connector.py","sha256":"ad116b6667eeaea985b0bc6b8bef599a2bfb96d2af171e7b4ea0f20824823bb7","tlsh":"d1a13055c8294d22839b586994a3f0a3773a1c070b0e2872b9fd52646f1c3b98df1fe9"}]},"source":"https://github.com/ossf/malicious-packages/blob/main/osv/malicious/npm/@cyberrant-rantai/rantai/MAL-2026-10709.json"}}],"schema_version":"1.7.5","credits":[{"name":"Amazon Inspector","contact":["inspector-research@amazon.com"],"type":"FINDER"}]}