Threat feed

ARTEX Hugging Face model stealer

Autonomous ARTEX agent published Hugging Face models that steal credentials and exfiltrate them through the Hub commit API

Posted · Spectrum Delta Research Team

Summary

An autonomous AI agent running the ARTEX framework, directed by an unidentified operator, is assessed by JFrog Security Research (B/2) to have built credential-stealing Hugging Face models that exfiltrate secrets through the Hub's own commit API, in a campaign caught during staging on 24 November 2026. The payload collects the container's first-process environment, a Kubernetes service-account token and host details into about 16 KB of JSON and commits it as loot files to the attacker's public repositories through the Hub commit API with an embedded write token, riding egress most ML workload policies allow. Execution rides three paths pickle scanning alone misses: auto_map remote code loaded with trust_remote_code, malicious pickles including a legacy concatenated PyTorch format, and chat-template injection; a later weightless variant passed pre-flight checks with standard-library imports and moved loot to a separate repository. The agent's own environment leaked its OpenAI key and task list, exposing an offensive automation box with a phishing server and residential proxies; no external victims are confirmed and JFrog cannot determine how much a human directed the agent.

Breakdown

Targets

  • Industry: Opportunistic

Technical exposure

  • Model loading with trust_remote_code=True on unreviewed repositories
  • PyTorch below 2.6 or weights_only=False when loading pickle model files
  • Egress to huggingface.co allowed from model-serving workloads
  • Kubernetes service-account tokens mounted in inference containers
  • Chat templates rendered outside a sandboxed Jinja environment

Adversary

ARTEX autonomous agent (operator unidentified) · JFrog Security Research (B/2)

Procedures (5)

  1. Trojanized model repositories published to Hugging Face

    • T1195.002Supply Chain Compromise: Compromise Software Supply Chain

    Logs

    • EDR file events · File created in the Hugging Face cache: llama-3.2-1b-tuned, mistral-7b-utterance, toktest1-9, lootrepo or loot from hfusr5488184 or akashdutta1030; configuration_evil.py or modeling_evil.py beside config.json; weight files far smaller than the model card claims (2.5 KB .bin). Requires endpoint monitoring on ML workstations or inference nodes

    Detectors

    • JFrog Xray · Flags the malicious repositories as malware (XRAY-1176308, XRAY-1176345, XRAY-1176347 and toktest IDs)
  2. Model load executes attacker code before weights are read

    • T1203Exploitation for Client Execution

    Logs

    • EDR process events · Process created: python or python3 resolving a model config spawns subprocesses or network calls during import (v3 called a function at import); chat template attempts host-inspection commands via Jinja escapes (__globals__, __mro__, __subclasses__, .popen()

    Detectors

    • Hugging Face malware scanner · Flags malicious pickle files in uploaded repositories; does not warn on remote-code modules or chat templates (partial coverage)
  3. Collector reads process-1 environment and Kubernetes token

    • T1552.001Unsecured Credentials: Credentials In Files
    • T1613Container and Resource Discovery

    Logs

    • Linux auditd · File open: /proc/1/environ, /var/run/secrets/kubernetes.io/serviceaccount/token, /scratch/models, /workspace, the Hugging Face cache or the Kubernetes CA cert, read by python inside a model-serving container; requires auditd rules on ML nodes
    • EDR process events · Process created: nvidia-smi -L, id, ps, mount, route and similar recon run by python with 20-second subprocess timeouts; file writes to /tmp/.exec-<host> and /tmp/.loot-<pid>-<host>.json (v3) or /tmp/EXECUTED_NOEXFIL
  4. Loot committed to the attacker's own public repository

    • T1567.002Exfiltration Over Web Service: Exfiltration to Cloud Storage

    Logs

    • Web proxy · HTTP(S) POST: huggingface.co/api/models/<user>/<repo>/commit/main from a model-loading workload or server pod, not a developer workstation; User-Agent: rce; NDJSON body carrying loot-<hostname>-<pid>.json or <host>-<md5>.json; commit summary RCE43861
    • DNS logs · Query: huggingface.co from inference or GPU nodes is common; correlate only with the POST commit pattern above, not standalone

    Detectors

    • JFrog YARA · HF_Model_Loot_Exfil_via_Commit_APINot built-in
  5. Weightless variant evades model scanners

    Logs

    • EDR file events · Repository download: config.json with auto_map modules but no weight files; real Mistral-7B config with a tokenizer byte-identical to the hf-internal-testing fixture; Python files beside a config.json that fails to parse; payload changed three revisions in under ninety seconds, so pin a revision SHA when hunting

Indicators of compromise

Domains (2)

  • vip.aipro.loveoperator LLM API endpoint leaked in the stolen environment, hunt-only
  • cldbase.us-west-1.rumble.cloudoperator container DNS search domain, hunt-only

URLs (1)

  • https://huggingface.co/api/models/akashdutta1030/loot/commit/mainv4 exfiltration commit endpoint, repository disabled, hunt-only

Hashes (7)

  • ceb5816fac7cbd886b096c7f0c0402913488ca0f967b617d3a7e25508032e6a8v4 configuration_evil.py, scanner-evading variant
  • b068b5a2ec3a6a13deef686173935330fb2f7fd2b3fb1f34aa2b6e359624de19v4 modeling_evil.py, scanner-evading variant
  • ed89685e8c16d0cb6dc218d0972e7a0a9e292f9b98f6b0ef0b2ab340d06d34e3v3 configuration_evil.py
  • 79b47fe688932507fa013de36c057846916f586b3893f2fae3fc364cbd5d7c9ev3 modeling_evil.py
  • 2bf25c4c3aa1e2efdff4ae9ee7e1434e279115608eb7a176e4e50e874c07c50dv3 pytorch_model.bin, malicious pickle
  • 783f54898ba4b828e14a2e5ab3c50968bca0883b0fc0309c24876c9c7f99e841v3 pytorch_model_zip.bin, malicious pickle in ZIP format
  • b43e7d812ab6541bfce4f85b2a19ba051f1b560b581aa203754e088fe2367961evil_tok.py, slim tokenizer-probe collector

Sources

Questions, detections or sightings of ARTEX Hugging Face model stealer? Bring them to the community.