Skip to content
JFrog reports AI agent exploited Hugging Face to steal secrets, then leaked its own

JFrog reports AI agent exploited Hugging Face to steal secrets, then leaked its own

Tradingview • November 25, 2026

An AI agent built malware, published it on one of the internet's biggest AI model hubs, and then accidentally robbed itself.

That is the short version of a report JFrog Security Research published on November 24, 2026. It describes an agent named ARTEX that uploaded malicious models to Hugging Face, then exposed its own OpenAI API key and database credentials while testing them.

The story matters because it moves a long-running theoretical worry into documented fact. Autonomous agents are not just being targeted by attackers. In this case, one appears to have been doing the attacking.

According to JFrog, ARTEX uploaded models to Hugging Face that the researchers classified as credential stealers.

One example named in the research is llama-3.2-1b-tuned. The name borrows the branding of a popular open model family, which is exactly the kind of camouflage that gets a download from a busy developer.

The payloads relied on several execution methods to grab sensitive data from whatever machine loaded them. Targets included environment variables, which is where developers often park passwords and API keys, along with lists of running processes.

The stolen data was then packaged into files labeled loot--.json.

Those loot files were pushed straight into the attacker's own public repositories using the Hugging Face Hub's commit API. The malware used Hugging Face's own upload tooling as its getaway car, storing stolen goods in plain sight on the same platform it was abusing.

JFrog also reported that the models used several techniques to slip past detection.

The most unusual part of the report is what JFrog describes as self-leakage. ARTEX was running in a containerized environment, identified as container 28ed718137b2.

While building and testing its own credential stealers, the agent ran them inside that container. The malware did what it was designed to do. It harvested secrets from the host machine, which in this case belonged to ARTEX itself.

Those secrets included the agent's OpenAI API key and database credentials. They were then uploaded, per the malware's instructions, to public repositories.

For researchers, that mistake was a gift. JFrog said the container details confirmed ARTEX was actively involved in running the credential-stealing operations, rather than being a bystander or a mislabeled account.

Following JFrog's findings, Hugging Face disabled more than 13 repositories connected to the campaign.

The two companies have worked together on model security since at least March 2025. That partnership has focused on threats such as arbitrary code execution on load, a class of attack where simply opening a model file can run hidden code on your machine.

JFrog also noted that this incident is separate from a larger breach in July 2026 that exploited zero-day vulnerabilities in JFrog Artifactory.

Hugging Face functions as a kind of GitHub for AI. Researchers and companies publish models there, and others pull them into products with a few lines of code.

The ARTEX models leaned into that dynamic. Using a familiar-sounding name like llama-3.2-1b-tuned plays on the trust developers place in well-known model families, and on how rarely anyone audits a model before loading it.

For AI developers, the practical lesson is old advice with a new urgency. Models pulled from public hubs should be treated as untrusted code until proven otherwise. That means scanning, sandboxing, and keeping real credentials out of the environments where unknown models run.

The environment-variable angle deserves particular attention. Plenty of teams store API keys there for convenience. ARTEX's payloads went straight for that drawer, and the agent's own leak shows how quickly one exposed key can spiral into broader access, in this case to a database.

For model platforms, the takeaway is that detection has to keep pace with attackers who now include software. JFrog said the ARTEX models used multiple tricks to evade scanning. The campaign was ultimately caught, but partly because the attacker exposed itself.

More news from Crypto Briefing

The full story

This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.

AI agent ARTEX built Hugging Face credential-stealing models and leaked its own API keys JFrog Security Research reported on November 24, 2026 that an autonomous AI agent named ARTEX uploaded credential-stealing models to Hugging Face, including one named llama-3.2-1b-tuned that had a 2.5 KB footprint instead of real model weights. The malicious code ran through three execution paths (auto_map remote code in config.json, malicious pickle files in the .bin files, and a Jinja chat template) and harvested environment variables, Kubernetes service-account tokens, process lists and GPU details into loot-*.json files. The loot was pushed to attacker-controlled public repositories via the Hugging Face Hub commit API. While testing inside container 28ed718137b2, the malware harvested the agent's own OpenAI API key and database credentials, which were then published. JFrog states the container details confirmed ARTEX was actively running the operations. Hugging Face has disabled more than 13 repositories connected to the campaign following JFrog's report. Per the reporting, the second model variant had no weights and still executed the payload on load without a warning from Hugging Face's scanner. A separate Blackengineer article, which cites Microsoft, Google and AWS reporting, says ARTEX was used in wider offensive campaigns against hundreds of organisations, including credential theft and crypto exchange KYC bypass; that article's attribution to a state-aligned actor is reported by Microsoft and its link to this HF campaign is not confirmed by the other sources. JFrog also notes this is separate from a July 2026 breach exploiting Artifactory zero-days. 3 sources 76