In brief: A malicious release of Tensorlake’s npm package, [email protected], was reported on 8 October. It could steal credentials while the package was being installed, before any AI agent had started running. This matters to businesses that build AI applications, and this article explains what happened and why the agent’s sandbox does not cover the installation step.
What Tensorlake provides
Tensorlake provides infrastructure for AI agents. Part of that is the sandbox: an isolated environment where an agent can execute code without sharing the working environment of the application server.
Developers connect their application to the service with an SDK, a software development kit made up of ready-written code. The Tensorlake package in question is distributed through npm, which delivers such packages to JavaScript and TypeScript projects.
The system therefore has two separate parts: the package a developer installs, and the sandbox that the package connects to.
Malicious code ran at installation
The security company Socket analysed the release, and its investigation found malicious code that was launched by an installation script wherever such scripts were allowed. The analysis describes credential theft and mechanisms for retaining access.
Credentials include the digital keys that software uses to access other services. A stolen key can therefore expose more than the machine it was taken from, and how much depends on the permissions attached to it.
The GitHub security advisory also identifies malware in the package. It warns that removing the package does not guarantee that all the malicious software it left behind is gone.
The sandbox covers only what runs inside it
A sandbox limits the code that runs inside it. Software installed somewhere else does not inherit those limits automatically.
Consider an application that connects to a remote service. Installing the application on a laptop is one event, and running a task on the service is another. This attack happened in the first.
The route in was a software dependency. No AI model chose to attack.
What does this mean for your business?
If your business develops AI applications, the case shows that the agent and the development tools around it each need their own security assessment. Reviewing the sandbox says little about the packages developers install on their own machines.
Keeping an agent inside its intended environment is a separate problem, which we explain in our article on testing boundaries around AI agents.
