Malicious Qwen AI Lookalike Discovered on Ollama Hub Following Hugging Face Takedown

Security Researchers Uncover Deceptive AI Model

Cybersecurity intelligence firm SlowMist has identified a malicious artificial intelligence model hosted on public repositories, designed to masquerade as Alibaba’s popular Qwen AI model family. The discovery highlights a growing vulnerability in the machine learning supply chain, where malicious actors exploit the popularity of open-weight artificial intelligence tools to distribute malware.

Distribution Across Open-Source AI Hubs

According to findings shared by security analysts, the malicious lure was distributed across multiple platforms dedicated to machine learning model hosting. Three related repositories on Hugging Face—one of the central open-source repositories for machine learning code and model weights—were flagged for suspicious activity and rendered inaccessible by December 1.

However, despite the prompt mitigation on Hugging Face, a mirror listing remained publicly active on Ollama, a widely used platform designed for running large language models locally. By December 3, the compromised repository on Ollama remained accessible to the public and recorded over 500 downloads, presenting an active threat to developers and researchers pulling the model into their local development environments without prior auditing.

The Growing Risk of AI Supply Chain Attacks

Supply chain exploits targeting software development environments are a well-documented risk, but their extension into artificial intelligence ecosystems represents an evolving security perimeter. Threat actors increasingly deploy classic software distribution tactics to compromise AI workflows:

  • Brand Impersonation: Leveraging trusted open-source model names, such as Alibaba’s Qwen family, to induce immediate trust among developers seeking high-performance models.
  • Typosquatting and Mirroring: Replicating original repository structures across multiple model hubs to maximize target reach and evade platform-specific takedowns.
  • Embedded Execution Payloads: Hiding malicious setup scripts or altered code routines within repository initialization scripts that execute automatically upon deployment.

Challenges in Securing Local AI Environments

The widespread adoption of tools like Ollama has made executing large language models locally on desktop and server hardware remarkably simple. While this decentralized ecosystem fosters rapid innovation, it also presents unique administrative challenges for security teams.

Unlike traditional software dependencies that undergo automated static analysis, machine learning repositories typically contain large binary weights paired with custom inference scripts. Auditing multi-gigabyte files for subtle exploit vectors or unauthorized data exfiltration routines poses significant technical hurdles, making open hubs vulnerable to malicious uploads before community flagging occurs.

Best Practices for Securing Model Deployment

To mitigate risks associated with unverified machine learning artifacts, security experts advise developers and organization IT teams to implement strict operational guidelines:

  • Verify Publisher Credibility: Ensure model repositories are maintained by verified corporate entities or recognized open-source contributors before downloading.
  • Audit Repository Scripts: Carefully inspect associated Python scripts, shell installers, and configuration files contained within model directories prior to initial execution.
  • Isolate Model Environments: Execute unverified models inside sandboxed containers or isolated virtual machines to restrict network and file system access.
  • Cross-Check Cryptographic Hashes: Validate model weights against official SHA-256 hashes published on official primary documentation hubs.

Conclusion

The discovery by SlowMist serves as an important warning for the artificial intelligence community. As local model execution continues to gain traction, establishing robust security hygiene around model procurement and open-source dependencies is essential to safeguard development pipelines against emerging threats.

Sharing Is Caring:
Musharaf

Hello friends, my name is Musharaf I am the Writer and Founder of this blog and share all the information related to Mobile Phones, Laptops, Tech News, Gadgets, Reviews, and Technology through this website🔁.


Leave a Comment