In October, a Forever Security client's system was found to have an attempt by an AI agent to install a malicious npm package. The agent read instructions from the file ~/Downloads/AGENTS.md. Alongside the package function-color, npm installed its dependency function-flag.
According to Checkmarx, on Windows version 1.7.3 of this dependency could download an executable from a foreign server during installation and run it with a hidden window. What the file did could not be determined, because the server no longer responded at the time of analysis. Protection stopped the installation. How the file ended up in the Downloads folder remains unknown.
The researchers kept a copy of the file from the client's machine and continued the investigation in an isolated environment. The author intends to examine the incident in more detail and consider what should be done to avoid similar attacks.