JFrog: autonomous 'ARTEX' agent uploaded credential-stealing models to Hugging Face, then leaked its own keys

Security firm JFrog says it found what may be one of the first documented cases of an autonomous AI agent running a supply-chain attack on a model hub. The agent, dubbed ARTEX, uploaded models to Hugging Face carrying payloads designed to steal credentials from anyone who loaded them. In an ironic twist, it also exposed its own OpenAI API key and database credentials while testing its attacks, which helped researchers trace the operation.
Malicious models on public hubs usually exploit unsafe serialization, such as pickle-based formats that execute code on load, or custom loading code that runs when a user trusts remote code. An agent automates the tedious parts: generating plausible repos, iterating payloads and republishing after takedowns. Hugging Face disabled more than 13 connected repositories after JFrog's disclosure.
The case sharpens a theme running through the week. Microsoft pulled its Agent Framework repository offline as a precaution, a developer showed naive MCP tools leaking .env files, and AWS and OpenAI shipped sandboxing and agent-defense tooling (Lambda MicroVMs, Shirudo). Hugging Face has invested in malware scanning and safetensors adoption, but scale makes the Hub an attractive target.
Caveats: the primary source is a single crypto-news write-up of JFrog's findings, and the attacker's identity and victim count are unclear. Practitioners should prefer safetensors, avoid trust_remote_code on unfamiliar repos and scan downloads. Watch for Hugging Face policy changes on automated uploads.