Attackers Use Fake OpenAI Model to Push Credential-Stealing Malware
A fraudulent AI model posing as an OpenAI release briefly became one of the most downloaded projects on Hugging Face before researchers determined it was distributing credential-stealing malware to Windows systems. The incident demonstrates the growing security risks tied to open AI model repositories and the weak governance around how developers import AI assets into workflows.
Researchers at HiddenLayer said the repository, listed as Open-OSS/privacy-filter, imitated OpenAI’s legitimate Privacy Filter project, an open-weight model released to detect and redact personally identifiable information in text. The malicious version copied much of the original project description and used a nearly identical naming structure to appear authentic.
Before its removal, the repository accumulated roughly 244,000 downloads and hundreds of positive ratings in less than a day, reaching the top of Hugging Face’s trending rankings. Researchers believe much of that activity was artificially generated to create the appearance of legitimacy on the platform.
The repository instructed users to execute setup scripts that appeared to install dependencies for the model. Instead, those scripts initiated a malware chain targeting Windows machines.
HiddenLayer said the malicious code first disabled SSL verification safeguards before retrieving remote instructions from a JSON hosting service. Those instructions triggered PowerShell commands that downloaded additional payloads from attacker-controlled sources.
The malware deployed a Rust-based infostealer to collect browser credentials, cryptocurrency wallet information, Discord tokens, FTP configurations, and local system data. The malware also attempted to evade detection by disabling Windows security monitoring components and checking whether it was running inside virtualized or sandboxed environments commonly used by analysts.
AI Repositories Create New Risks
As AI repositories become more integrated into development workflows, threats like this will likely increase. Unlike traditional open-source packages, AI repositories can contain executable scripts, model weights, configuration files, and embedded automation logic that often bypass existing security review processes.
Also creating challenges: conventional software analysis tools are not designed to inspect runtime behavior inside AI repositories.
The campaign also appears connected to a larger pattern of attacks targeting open-source ecosystems. HiddenLayer identified several additional Hugging Face repositories using similar loader techniques and overlapping infrastructure. Researchers also linked portions of the operation to earlier malware campaigns involving malicious npm packages and fake AI-related software distributed through Python package repositories.
Some of the infrastructure tied to the attack overlaps with activity previously associated with ValleyRAT, a remote access trojan linked by researchers to the China-aligned threat group known as Silver Fox. Researchers stopped short of formally attributing the Hugging Face operation to that group but said the shared infrastructure suggests coordination or reuse of established criminal tooling.
Researchers urged organizations that executed files from the malicious repository to treat affected systems as fully compromised. Recommended mitigation steps included rebuilding infected systems, rotating credentials, invalidating browser sessions, and moving cryptocurrency assets to new wallets generated on clean devices.
The related issue here: popularity signals inside public AI repositories can be easily manipulated. By artificially inflating download counts and user engagement, attackers can push malicious projects into recommendation feeds and trending lists where they gain credibility through visibility rather than verification.

