Security researchers discovered five malicious AI model repositories on Hugging Face that used hidden instructions to trick users or AI agents into executing dangerous commands. Two models also concealed a Windows remote-access trojan inside their files. Although the affected repositories have reportedly been disabled, the discovery exposes a growing threat: AI models themselves can become part of a cyberattack.

WHAT’S HAPPENING

Cybersecurity researchers have uncovered a new method of distributing malware through downloadable artificial intelligence models.

A November 2026 investigation by Malspark examined more than 3.27 million public model repositories on Hugging Face, a popular platform for sharing AI models and development resources.

The researchers identified five malicious model repositories associated with two accounts. Collectively, the models had recorded 2,428 downloads by November 27.

The largest campaign, identified as Mir2k, involved two AI models containing a concealed Windows remote-access trojan.

The malicious software was hidden inside GGUF files, a widely used format for running large language models locally on personal computers and other devices.

Researchers found that attackers placed the executable program at the end of the model files, beyond the data normally processed by compatible AI software.

They also modified the models’ chat templates, which determine how conversations are formatted before being processed by an AI system.

Those templates contained hidden instructions designed to make the AI recommend commands that could extract and execute the concealed malware.

Other affected models attempted to manipulate connected AI agents into running malicious commands directly.

The attack did not necessarily execute malware when someone simply downloaded or loaded a model. It depended on a person or an AI agent following the embedded instructions.

The researchers reported that the five repositories had accumulated thousands of downloads, although that figure does not establish how many individual users were affected or whether any computers were successfully infected.

WHY IT MATTERS

Downloadable AI models are becoming increasingly attractive to businesses, developers, and individuals who want greater control over their technology.

Running AI locally can offer advantages involving privacy, customization, cost, and reduced dependence on cloud services.

However, downloading an AI model introduces supply-chain risks similar to those associated with installing software from an unfamiliar source.

The difference is that users may not realize an AI model file can contain instructions and additional data beyond the model’s mathematical parameters.

In this case, the attackers exploited two separate weaknesses.

First, they concealed an executable program inside a file that appeared to contain legitimate AI model data.

Second, they manipulated the chat template to introduce instructions that users would not necessarily see.

The resulting model could continue producing ordinary responses while also attempting to convince someone to execute a dangerous command.

The risk becomes more serious when AI models are connected to autonomous agents with permission to access files, execute scripts, or interact with operating systems.

A malicious instruction that requires a human to take action may fail if the user recognizes the danger.

An insufficiently protected AI agent could act on the same instruction automatically.

The discovery demonstrates that AI security must extend beyond monitoring chatbot responses and protecting against conventional prompt injection.

Organizations also need to verify the integrity of the models and configuration files they install.

WHO BENEFITS

Cybersecurity researchers gain a clearer understanding of emerging attack techniques involving AI model files and embedded instructions.

AI platform operators can strengthen model validation, malware screening, and repository security.

Businesses adopting secure AI deployment practices may reduce their exposure by scanning models and limiting automated execution privileges.

Developers of AI security tools could see greater demand for systems that inspect model files before deployment.

WHO LOSES

Users downloading AI models from unverified sources risk exposing their computers to malicious instructions or concealed software.

Businesses deploying local AI assistants without adequate controls may introduce new security weaknesses into internal networks.

Developers relying on autonomous AI agents could face increased risks when those agents can execute commands without appropriate restrictions.

Open model communities may experience greater security scrutiny as malicious uploads undermine confidence in shared AI resources.

WHAT HAPPENS NEXT

The affected Hugging Face repositories have reportedly been disabled, reducing the immediate availability of the identified files.

However, previously downloaded copies may still exist on personal computers and organizational systems.

The researchers released an open-source inspection tool called gguf-radar, designed to identify suspicious chat templates and concealed data inside GGUF model files.

The tool can examine potentially malicious files without executing their contents.

For organizations using locally hosted AI, the findings reinforce the importance of scanning downloaded models, reviewing embedded templates, and controlling what commands AI agents are permitted to execute.

Model-hosting platforms may also need stronger safeguards to reject files containing unexpected executable content.

Businesses should treat model downloads as software supply-chain decisions rather than assuming that publicly available AI files are inherently trustworthy.

The larger signal: As artificial intelligence moves from centralized cloud platforms onto personal computers, business networks, and autonomous agents, the security risks surrounding AI are expanding. The danger is no longer limited to attackers manipulating what an AI system says. They can also manipulate the files that determine how it operates. The next stage of AI security will require protecting not just the models themselves, but the entire chain of software, instructions, and permissions that allows those models to function.

Stay Sharp

Subscribe to follow the Trend newsletter and more.

Have a tip or idea?

Pass along insights or story ideas on AI, startups, and business. Focused on signal over noise, impact over headlines. Facts. Trends. Consequences. Always.