Detection queries Reported campaignARTEXLinux · Developer workflows

JFrog: ARTEX publishes Hugging Face models that leak the operator

An ARTEX task published fake Hugging Face models that steal loader secrets and commit them to the Hub. The first loot file was the operator's own environment.

What happened

JFrog Security Research (David Cohen, 24 November 2026) describes a Hugging Face malware campaign whose first victim was the operator. At 02:43:52 UTC a new account, hfusr5488184 (display name Li Wei), was created in the one-member organization probeorg9x7y2 (Probe Org). At 03:05 UTC it published llama-3.2-1b-tuned. Each .bin was about 2.5 KB. A real 1B model is more than 2 GB. Three execution paths share one payload. config.json auto_map sends AutoConfig, AutoModel, and AutoModelForCausalLM to configuration_evil.py, which runs on from_pretrained with trust_remote_code=True before any tensor is read. pytorch_model.bin is a malicious pickle (GLOBAL __builtin__ exec and REDUCE) in the legacy torch format, and pytorch_model_zip.bin is a ZIP copy. The chat template has four Jinja SSTI sandbox escapes that run id, env, and cat /proc/1/environ. The payload reads /proc/1/environ, its own environment, the Kubernetes service-account token and namespace, and runs reconnaissance including nvidia-smi -L. It builds about 16 KB of JSON. Exfiltration base64-encodes that JSON and commits it as loot-<hostname>-<pid>.json into the attacker's own repository through the Hugging Face Hub commit API (POST /api/models/<repo>/commit/main, NDJSON). The write token is embedded as a base64 literal that starts with aGZf, which decodes to hf_. A local copy is written to /tmp/.loot-<pid>-<hostname>.json and a marker to /tmp/.exec-<hostname>. Fourteen seconds after upload the payload fired on the builder host (loot-28ed718137b2-229339.json). Three seconds later that file was overwritten with {"test":"collector-path","who":"ihfprep2"}. The payload had run from /app/data/tasks/61/ihfprep2. The commit message was add NOEXFIL self-test marker. The leaked environment included ARTEX_LLM_PROVIDER=openai, ARTEX_LLM_MODEL=gpt-5.4, ARTEX_LLM_BASE_URL pointing at vip.aipro[.]love (a third-party API reseller), an ARTEX_PG_DSN for a postgres database named artex, and OPENAI_API_KEY. PID 1, /app/start.sh, starts ./artex listening on port 8787 with a proxy on port 8788. JFrog assesses with high confidence that the models were created, uploaded, and tested from an ARTEX agent task using gpt-5.4. The human operator is unidentified. The container ran as root in Docker. Its DNS search domain was cldbase.us-west-1.rumble.cloud and its clock was Asia/Shanghai. Other concurrent tasks in the leaked process list were task 57, phish_server.py behind a cloudflared quick tunnel, with monitor.sh watching creds.log; task 59, probe loops baselining *.clawi.ai hosts against a production origin IP and residential-proxy tests; and task 61, an SSRF callback anchor (ivisionssrf/anchor_server.py) plus the Hugging Face model prep. Callback receivers listened on ports 8899 and 8898. More than 10 relay.py instances were pinned to residential proxy sessions in the US, CA, DE, GB, and NL. JFrog cannot rule out a red-team or bug-bounty engagement, and says a phishing server, rotating residential proxies, and a disposable Hugging Face identity do not fit authorized work. About 30 minutes later, nine repositories toktest1 through toktest9 probed a tokenizer loader (bad JSON, a schema failure, evil_tok.py with auto_map and trust_remote_code, and 1 MiB of padding), plus an empty lootrepo. JFrog reads that as mapping one specific service that ingests user-supplied Hugging Face repositories. At 08:19 UTC the same account, ID 6b04f9e8746b081f2c411875, was renamed akashdutta1030 (Akash Dutta) and published mistral-7b-utterance and a drop repository named loot. mistral-7b-utterance has no weights. It uses a real Mistral-7B config and auto_map to configuration_evil.py and modeling_evil.py (markers RCE43861 and RCE43861-modeling). The tokenizer is byte-identical to hf-internal-testing/llama-tokenizer. The chat template is again SSTI. The collector now also targets /scratch/models, /workspace, the Hugging Face cache, the Kubernetes CA, and NATS, Postgres, and Redis environment variables. Commands use subprocess.run with a 20-second timeout. Loot goes to loot/<host>-<md5>.json with User-Agent rce and the same write token. The last commit, coldload probe broken config, made config.json invalid. The campaign was 13 repositories. JFrog found no loot files elsewhere on Hugging Face. Both loot drops were empty when the repositories were disabled, so no real victim had reported back. JFrog reported the campaign on 24 November to security@huggingface.co. Hugging Face disabled all 13 repositories the same day. JFrog published YARA rules in hf_commit_exfil.yar. Link wiz-artex-harvester-cyberstrikeai-cloud-intrusions-2026-11 and the other ARTEX entries.

JFrog assesses with high confidence that the models were created, uploaded, and tested from an ARTEX agent task using gpt-5.4. The human operator is unidentified. The malicious model is an AI supply-chain lure, so ai_tool_as_lure is the secondary role. llm_generated_malware also fits the agent-authored payload.

Read the original sourceAdditional source: Hugging Face agent self-exfiltration IOCs

How it happened

Select a stage to explore its defenses
Detect this stage
Detect this stage
Detect this stage
Detect this stage
Detect this stage
Detect this stage
Select a stage · Drag to explore · + / − to zoom · Dashed edges are loopsSelect a stage · Arrows show reported connectionsReported sequence
Read the flow as text & sources

A catalog reconstruction of the supplied source account. Unknown steps remain explicit; an edge describes the reported relationship between steps.

  1. 01 · Fake model on a new Hub account

    At 02:43:52 UTC the account hfusr5488184 (Li Wei) is created in probeorg9x7y2. At 03:05 UTC it publishes llama-3.2-1b-tuned. Each .bin is about 2.5 KB.

    Hunt: A token or agent reads private material and creates a public issue, repository, commit or visibility change inconsistent with the approved task.

    Git-provider audit completeness depends on product and plan. Not every file read or issue body is present in organization audit logs.

    Source for step 1
  2. 02 · Remote code, pickle, and Jinja SSTI

    auto_map loads configuration_evil.py when trust_remote_code=True, before any tensor is read. pytorch_model.bin is a malicious pickle and pytorch_model_zip.bin is a ZIP copy. Four Jinja SSTI escapes in the chat template run id, env, and cat /proc/1/environ.

    Hunt: A program delivered by the reported lure executes, establishes access or contacts infrastructure outside the approved software baseline.

    A program name alone is not a signature. This normalized template requires the relevant platform collector and does not assert Windows-only policy coverage.

    Source for step 2
  3. 03 · Environment, token, and GPU recon

    The payload reads /proc/1/environ, its own environment, the Kubernetes service-account token and namespace, and runs reconnaissance including nvidia-smi -L. The collected JSON is about 16 KB.

    Hunt: An unexpected process or tool accesses credential stores and is followed by token use or outbound transfer inconsistent with the owner.

    Defender DeviceFileEvents is not a general file-read audit trail. Collect suitable object-access, EDR or application logs; legitimate developer tools also read secrets.

    Source for step 3
  4. 04 · Commit the loot to the same repo

    Base64 JSON is committed as loot-<hostname>-<pid>.json through POST /api/models/<repo>/commit/main. The write token is a base64 literal starting with aGZf. Local copies go to /tmp/.loot-<pid>-<hostname>.json and /tmp/.exec-<hostname>.

    Hunt: Sensitive reads are followed by outbound transfer, a public artifact, or a tool call to a destination outside the approved workflow.

    An outbound connection or high byte count alone is not exfiltration. Encrypted traffic may hide content, and bulk legitimate exports are common.

    Source for step 4
  5. 05 · ARTEX runs the payload on itself

    Fourteen seconds after upload, loot-28ed718137b2-229339.json appears from the builder. Three seconds later it is overwritten with a collector-path self-test from /app/data/tasks/61/ihfprep2. The commit is add NOEXFIL self-test marker. The environment shows ARTEX listening on port 8787, gpt-5.4, and the reseller at vip.aipro[.]love.

    Hunt: Untrusted content or a changed tool definition precedes a file read, command, or remote call outside the user's intended task.

    Process logs cannot recover model intent. Remote connectors and in-process interpreters may produce no local child process. Prompt content alone is not a reliable signature.

    Source for step 5
  6. 06 · Tokenizer probes, then no weights

    About 30 minutes later, toktest1 through toktest9 and an empty lootrepo probe a tokenizer loader. At 08:19 UTC the same account is renamed akashdutta1030 and publishes mistral-7b-utterance, which has no weights, plus a loot repository. The last commit makes config.json invalid.

    Hunt: A package or workflow change introduces a lifecycle hook, remote dependency or new command that accesses secrets or external services.

    Package installation and unfamiliar names are not malicious by themselves. Dependency resolution and CI audit records are required.

    Source for step 6

Why it matters

Reported entry point: A victim would have to load an unreviewed Hugging Face repository. from_pretrained with trust_remote_code=True imports configuration_evil.py before any tensor is read. The pickle and the Jinja chat template are alternate paths to the same payload. No external victim loot was observed. Reported impact: Base64 JSON is committed as loot-<hostname>-<pid>.json through POST /api/models/<repo>/commit/main. The write token is a base64 literal starting with aGZf. Local copies go to /tmp/.loot-<pid>-<hostname>.json and /tmp/.exec-<hostname>; reported targets include No external victim reported back. Both loot drops were empty when Hugging Face disabled them. The only observed execution was on the operator's own builder; using the named AI products does not by itself establish exposure.

Read the original report

What you can do

Protection & prevention

Do not use trust_remote_code=True on a repository you have not reviewed. Pin revision= to a commit SHA. Use torch 2.6 or newer so weights_only=True stays on. Render chat templates only in a sandbox. A workload that loads models should be able to download from the Hub and should not be able to commit to it. Flag auto_map repositories that have no weights. Detection signals JFrog names are writes to huggingface.co/api/models/*/commit/main, reads of /proc/1/environ and the service-account token, a base64 literal starting with aGZf, and __globals__, __mro__, __subclasses__, or .popen( in a chat template.

Catalog defensive guidance based on the reported behavior. Confirm scope and current mitigations in the original source.

Review the original guidance Additional source 2
Investigate each phase

Detection queries

Draft query starters grouped by the attack stages where they apply.

Download stage pack

Start with the logs you collect. Each hunt identifies its required visibility, field mapping and limits. Queries are catalog-authored drafts using reusable behavior profiles; test with known activity and your normal baseline before alerting.

01Fake model on a new Hub accountPrivate access → public repository artifactCustom schema · Draft

At 02:43:52 UTC the account hfusr5488184 (Li Wei) is created in probeorg9x7y2. At 03:05 UTC it publishes llama-3.2-1b-tuned. Each .bin is about 2.5 KB.

What to look for

A token or agent reads private material and creates a public issue, repository, commit or visibility change inconsistent with the approved task.

A new Hugging Face account published llama-3.2-1b-tuned. The weight files were about 2.5 KB. This is a public model repository, not a private-to-public leak.

Visibility: Defender-side logs where collected

Required logs

  • Git-provider organization / enterprise audit
  • Repository and token permission inventory
  • Agent tool and secret-scanning / DLP records

Coverage limit. Git-provider audit completeness depends on product and plan. Not every file read or issue body is present in organization audit logs.

Custom-schema candidates, not out-of-box detectors. Map your application / cloud / platform logs to EventType, Actor, Asset, Action, Target and CorrelationId. KQL uses a custom OpenAttacksAudit_CL table; SPL uses openattacks:audit. EventType values are proposed normalization names, not native vendor event names. Correlation and environment-specific alert logic remain to be built.

Sigma
Draft SigmaDownload Sigma
title: Hunt - Private access → public repository artifact
id: b7b2d3f0-8170-4225-accb-c20633364ef4
status: experimental
description: A token or agent reads private material and creates a public issue,
  repository, commit or visibility change inconsistent with the approved task.
author: MagicSword OpenAttacks catalog
date: 2026-10-23
falsepositives:
  - Authorized activity matching this broad hunt; baseline and investigate
    before alerting.
level: low
logsource:
  category: application
  product: openattacks_audit
  definition: Custom normalized audit schema; map EventType, Actor, Asset, Action,
    Target and CorrelationId from the required source logs first.
detection:
  selection:
    EventType:
      - repository.public.write
      - repository.visibility.change
  condition: selection
KQL
Draft KQLDownload KQL
// SCHEMA TEMPLATE: create/map this custom table before use; not a built-in Sentinel table.
// OpenAttacksAudit_CL: TimeGenerated(datetime), EventType/Actor/Asset/Action/Target/CorrelationId(string).
// Selects candidates only. Apply the stage hypothesis and correlation steps before alerting.
OpenAttacksAudit_CL
| where TimeGenerated > ago(7d)
| where EventType in ("repository.public.write", "repository.visibility.change")
| project TimeGenerated, EventType, Actor, Asset, Action, Target, CorrelationId
| order by TimeGenerated desc
SPL
Draft SPLDownload SPL
sourcetype="openattacks:audit"
EventType IN ("repository.public.write", "repository.visibility.change")
| table _time EventType Actor Asset Action Target CorrelationId
| sort - _time
Investigation steps
  1. Join access and public-write actions by actor / token and time; inspect visibility changes and newly created repositories.
  2. Verify whether the artifact contains sensitive data using approved scanning, retaining original source qualifications.
02Remote code, pickle, and Jinja SSTIUnexpected payload / remote-access behaviorCustom schema · Draft

auto_map loads configuration_evil.py when trust_remote_code=True, before any tensor is read. pytorch_model.bin is a malicious pickle and pytorch_model_zip.bin is a ZIP copy. Four Jinja SSTI escapes in the chat template run id, env, and cat /proc/1/environ.

What to look for

A program delivered by the reported lure executes, establishes access or contacts infrastructure outside the approved software baseline.

trust_remote_code loads configuration_evil.py, the .bin files are a malicious pickle, and the chat template is Jinja SSTI. Confirm which of the three paths actually ran before treating a model download as execution.

Visibility: Defender-side logs where collected

Required logs

  • Platform-specific process and file provenance
  • Signer / hash and software inventory
  • Per-process network and remote-session records

Coverage limit. A program name alone is not a signature. This normalized template requires the relevant platform collector and does not assert Windows-only policy coverage.

Custom-schema candidates, not out-of-box detectors. Map your application / cloud / platform logs to EventType, Actor, Asset, Action, Target and CorrelationId. KQL uses a custom OpenAttacksAudit_CL table; SPL uses openattacks:audit. EventType values are proposed normalization names, not native vendor event names. Correlation and environment-specific alert logic remain to be built.

Sigma
Draft SigmaDownload Sigma
title: Hunt - Unexpected payload / remote-access behavior
id: 998d4263-6e73-4472-a74d-cb4d61c28544
status: experimental
description: A program delivered by the reported lure executes, establishes
  access or contacts infrastructure outside the approved software baseline.
author: MagicSword OpenAttacks catalog
date: 2026-10-23
falsepositives:
  - Authorized activity matching this broad hunt; baseline and investigate
    before alerting.
level: low
logsource:
  category: application
  product: openattacks_audit
  definition: Custom normalized audit schema; map EventType, Actor, Asset, Action,
    Target and CorrelationId from the required source logs first.
detection:
  selection:
    EventType:
      - process.unapproved.exec
      - remote.session.start
  condition: selection
KQL
Draft KQLDownload KQL
// SCHEMA TEMPLATE: create/map this custom table before use; not a built-in Sentinel table.
// OpenAttacksAudit_CL: TimeGenerated(datetime), EventType/Actor/Asset/Action/Target/CorrelationId(string).
// Selects candidates only. Apply the stage hypothesis and correlation steps before alerting.
OpenAttacksAudit_CL
| where TimeGenerated > ago(7d)
| where EventType in ("process.unapproved.exec", "remote.session.start")
| project TimeGenerated, EventType, Actor, Asset, Action, Target, CorrelationId
| order by TimeGenerated desc
SPL
Draft SPLDownload SPL
sourcetype="openattacks:audit"
EventType IN ("process.unapproved.exec", "remote.session.start")
| table _time EventType Actor Asset Action Target CorrelationId
| sort - _time
Investigation steps
  1. Confirm the payload's operating system, origin and execution context before choosing a platform-specific rule.
  2. Correlate the launched program with child processes, persistence and network activity; verify authorization.
03Environment, token, and GPU reconSensitive store access → credential useCustom schema · Draft

The payload reads /proc/1/environ, its own environment, the Kubernetes service-account token and namespace, and runs reconnaissance including nvidia-smi -L. The collected JSON is about 16 KB.

What to look for

An unexpected process or tool accesses credential stores and is followed by token use or outbound transfer inconsistent with the owner.

The payload reads /proc/1/environ, the process environment, and the Kubernetes service-account token, and it runs nvidia-smi -L. The profile covers secret access, not the GPU command by itself.

Visibility: Defender-side logs where collected

Required logs

  • File-read / API access telemetry for relevant secret stores
  • Process identity and command lines
  • Identity, token and outbound-network audit logs

Coverage limit. Defender DeviceFileEvents is not a general file-read audit trail. Collect suitable object-access, EDR or application logs; legitimate developer tools also read secrets.

Custom-schema candidates, not out-of-box detectors. Map your application / cloud / platform logs to EventType, Actor, Asset, Action, Target and CorrelationId. KQL uses a custom OpenAttacksAudit_CL table; SPL uses openattacks:audit. EventType values are proposed normalization names, not native vendor event names. Correlation and environment-specific alert logic remain to be built.

Sigma
Draft SigmaDownload Sigma
title: Hunt - Sensitive store access → credential use
id: 46c46c62-2d83-4198-a8bf-d6637094527b
status: experimental
description: An unexpected process or tool accesses credential stores and is
  followed by token use or outbound transfer inconsistent with the owner.
author: MagicSword OpenAttacks catalog
date: 2026-10-23
falsepositives:
  - Authorized activity matching this broad hunt; baseline and investigate
    before alerting.
level: low
logsource:
  category: application
  product: openattacks_audit
  definition: Custom normalized audit schema; map EventType, Actor, Asset, Action,
    Target and CorrelationId from the required source logs first.
detection:
  selection:
    EventType:
      - secret.read
      - credential.store.read
  condition: selection
KQL
Draft KQLDownload KQL
// SCHEMA TEMPLATE: create/map this custom table before use; not a built-in Sentinel table.
// OpenAttacksAudit_CL: TimeGenerated(datetime), EventType/Actor/Asset/Action/Target/CorrelationId(string).
// Selects candidates only. Apply the stage hypothesis and correlation steps before alerting.
OpenAttacksAudit_CL
| where TimeGenerated > ago(7d)
| where EventType in ("secret.read", "credential.store.read")
| project TimeGenerated, EventType, Actor, Asset, Action, Target, CorrelationId
| order by TimeGenerated desc
SPL
Draft SPLDownload SPL
sourcetype="openattacks:audit"
EventType IN ("secret.read", "credential.store.read")
| table _time EventType Actor Asset Action Target CorrelationId
| sort - _time
Investigation steps
  1. Identify the actor, process and exact store touched, then pivot to token use from new devices or infrastructure.
  2. Correlate reads with egress and rotate affected credentials after confirming exposure.
04Commit the loot to the same repoSensitive data → unusual destinationCustom schema · Draft

Base64 JSON is committed as loot-<hostname>-<pid>.json through POST /api/models/<repo>/commit/main. The write token is a base64 literal starting with aGZf. Local copies go to /tmp/.loot-<pid>-<hostname>.json and /tmp/.exec-<hostname>.

What to look for

Sensitive reads are followed by outbound transfer, a public artifact, or a tool call to a destination outside the approved workflow.

Collected JSON is committed to the attacker's own Hub repository with an embedded write token. A model workload that can commit to the Hub is the control boundary JFrog names.

Visibility: Defender-side logs where collected

Required logs

  • Sensitive resource access / DLP records
  • Proxy, egress and cloud upload events
  • Agent / SaaS audit with correlation IDs

Coverage limit. An outbound connection or high byte count alone is not exfiltration. Encrypted traffic may hide content, and bulk legitimate exports are common.

Custom-schema candidates, not out-of-box detectors. Map your application / cloud / platform logs to EventType, Actor, Asset, Action, Target and CorrelationId. KQL uses a custom OpenAttacksAudit_CL table; SPL uses openattacks:audit. EventType values are proposed normalization names, not native vendor event names. Correlation and environment-specific alert logic remain to be built.

Sigma
Draft SigmaDownload Sigma
title: Hunt - Sensitive data → unusual destination
id: 04b60968-3179-4b1f-ae13-6f57c2446077
status: experimental
description: Sensitive reads are followed by outbound transfer, a public
  artifact, or a tool call to a destination outside the approved workflow.
author: MagicSword OpenAttacks catalog
date: 2026-10-23
falsepositives:
  - Authorized activity matching this broad hunt; baseline and investigate
    before alerting.
level: low
logsource:
  category: application
  product: openattacks_audit
  definition: Custom normalized audit schema; map EventType, Actor, Asset, Action,
    Target and CorrelationId from the required source logs first.
detection:
  selection:
    EventType:
      - data.export
      - agent.external.send
  condition: selection
KQL
Draft KQLDownload KQL
// SCHEMA TEMPLATE: create/map this custom table before use; not a built-in Sentinel table.
// OpenAttacksAudit_CL: TimeGenerated(datetime), EventType/Actor/Asset/Action/Target/CorrelationId(string).
// Selects candidates only. Apply the stage hypothesis and correlation steps before alerting.
OpenAttacksAudit_CL
| where TimeGenerated > ago(7d)
| where EventType in ("data.export", "agent.external.send")
| project TimeGenerated, EventType, Actor, Asset, Action, Target, CorrelationId
| order by TimeGenerated desc
SPL
Draft SPLDownload SPL
sourcetype="openattacks:audit"
EventType IN ("data.export", "agent.external.send")
| table _time EventType Actor Asset Action Target CorrelationId
| sort - _time
Investigation steps
  1. Join the resource read and outbound action by session, identity or process, preserving a bounded time window.
  2. Inspect destination ownership, payload classification and the user's intended action; baseline sanctioned sharing.
05ARTEX runs the payload on itselfUnexpected agent tool useCustom schema · Draft

Fourteen seconds after upload, loot-28ed718137b2-229339.json appears from the builder. Three seconds later it is overwritten with a collector-path self-test from /app/data/tasks/61/ihfprep2. The commit is add NOEXFIL self-test marker. The environment shows ARTEX listening on port 8787, gpt-5.4, and the reseller at vip.aipro[.]love.

What to look for

Untrusted content or a changed tool definition precedes a file read, command, or remote call outside the user's intended task.

The first loot file came from the ARTEX builder itself. The evidence is the leaked ARTEX environment and ./artex started from PID 1, which is operator telemetry, not a victim tool-call audit.

Visibility: Defender-side logs where collected

Required logs

  • Agent tool-call audit records with session / tool / destination
  • Tool-definition and approval changes
  • Endpoint process, file-access and network evidence where available

Coverage limit. Process logs cannot recover model intent. Remote connectors and in-process interpreters may produce no local child process. Prompt content alone is not a reliable signature.

Custom-schema candidates, not out-of-box detectors. Map your application / cloud / platform logs to EventType, Actor, Asset, Action, Target and CorrelationId. KQL uses a custom OpenAttacksAudit_CL table; SPL uses openattacks:audit. EventType values are proposed normalization names, not native vendor event names. Correlation and environment-specific alert logic remain to be built.

Sigma
Draft SigmaDownload Sigma
title: Hunt - Unexpected agent tool use
id: c709e384-0e11-479e-ab4d-3a06e2431e4b
status: experimental
description: Untrusted content or a changed tool definition precedes a file
  read, command, or remote call outside the user's intended task.
author: MagicSword OpenAttacks catalog
date: 2026-10-23
falsepositives:
  - Authorized activity matching this broad hunt; baseline and investigate
    before alerting.
level: low
logsource:
  category: application
  product: openattacks_audit
  definition: Custom normalized audit schema; map EventType, Actor, Asset, Action,
    Target and CorrelationId from the required source logs first.
detection:
  selection:
    EventType:
      - agent.tool.call
      - agent.tool.definition.change
  condition: selection
KQL
Draft KQLDownload KQL
// SCHEMA TEMPLATE: create/map this custom table before use; not a built-in Sentinel table.
// OpenAttacksAudit_CL: TimeGenerated(datetime), EventType/Actor/Asset/Action/Target/CorrelationId(string).
// Selects candidates only. Apply the stage hypothesis and correlation steps before alerting.
OpenAttacksAudit_CL
| where TimeGenerated > ago(7d)
| where EventType in ("agent.tool.call", "agent.tool.definition.change")
| project TimeGenerated, EventType, Actor, Asset, Action, Target, CorrelationId
| order by TimeGenerated desc
SPL
Draft SPLDownload SPL
sourcetype="openattacks:audit"
EventType IN ("agent.tool.call", "agent.tool.definition.change")
| table _time EventType Actor Asset Action Target CorrelationId
| sort - _time
Investigation steps
  1. Join input provenance, tool descriptions and calls by session ID and compare the action to the approved task.
  2. Inspect child processes and destinations; record whether execution was in-process, local, or through a remote SaaS connector.
06Tokenizer probes, then no weightsDependency / CI trust boundaryCustom schema · Draft

About 30 minutes later, toktest1 through toktest9 and an empty lootrepo probe a tokenizer loader. At 08:19 UTC the same account is renamed akashdutta1030 and publishes mistral-7b-utterance, which has no weights, plus a loot repository. The last commit makes config.json invalid.

What to look for

A package or workflow change introduces a lifecycle hook, remote dependency or new command that accesses secrets or external services.

toktest1 through toktest9 and the later weightless mistral-7b-utterance change the wrapper. The second model has no weight files, so a scanner that only inspects weights misses it.

Visibility: Defender-side logs where collected

Required logs

  • Package-manager and CI job logs
  • Lockfile / manifest / workflow diffs
  • Runner process trees, secret access and egress

Coverage limit. Package installation and unfamiliar names are not malicious by themselves. Dependency resolution and CI audit records are required.

Custom-schema candidates, not out-of-box detectors. Map your application / cloud / platform logs to EventType, Actor, Asset, Action, Target and CorrelationId. KQL uses a custom OpenAttacksAudit_CL table; SPL uses openattacks:audit. EventType values are proposed normalization names, not native vendor event names. Correlation and environment-specific alert logic remain to be built.

Sigma
Draft SigmaDownload Sigma
title: Hunt - Dependency / CI trust boundary
id: 5fa9c45a-ac1c-4666-a598-e80626320997
status: experimental
description: A package or workflow change introduces a lifecycle hook, remote
  dependency or new command that accesses secrets or external services.
author: MagicSword OpenAttacks catalog
date: 2026-10-23
falsepositives:
  - Authorized activity matching this broad hunt; baseline and investigate
    before alerting.
level: low
logsource:
  category: application
  product: openattacks_audit
  definition: Custom normalized audit schema; map EventType, Actor, Asset, Action,
    Target and CorrelationId from the required source logs first.
detection:
  selection:
    EventType:
      - package.install
      - ci.workflow.change
      - package.lifecycle.exec
  condition: selection
KQL
Draft KQLDownload KQL
// SCHEMA TEMPLATE: create/map this custom table before use; not a built-in Sentinel table.
// OpenAttacksAudit_CL: TimeGenerated(datetime), EventType/Actor/Asset/Action/Target/CorrelationId(string).
// Selects candidates only. Apply the stage hypothesis and correlation steps before alerting.
OpenAttacksAudit_CL
| where TimeGenerated > ago(7d)
| where EventType in ("package.install", "ci.workflow.change", "package.lifecycle.exec")
| project TimeGenerated, EventType, Actor, Asset, Action, Target, CorrelationId
| order by TimeGenerated desc
SPL
Draft SPLDownload SPL
sourcetype="openattacks:audit"
EventType IN ("package.install", "ci.workflow.change", "package.lifecycle.exec")
| table _time EventType Actor Asset Action Target CorrelationId
| sort - _time
Investigation steps
  1. Compare package provenance, publish identity, lifecycle scripts and resolved dependency URLs with the approved version.
  2. Correlate the install or workflow to secret reads and subsequent token use; distinguish exposure from confirmed compromise.
Technical detailsTooling, impact & MITRE ATLAS

Attack context

AI's role
AI as operator
Offensive frameworks
ARTEX
Additional role
AI tool as lure
Initial access
A victim would have to load an unreviewed Hugging Face repository. from_pretrained with trust_remote_code=True imports configuration_evil.py before any tensor is read. The pickle and the Jinja chat template are alternate paths to the same payload. No external victim loot was observed.

Tooling as reported

AI products, models and artifacts

  • ARTEX. The leaked environment set ARTEX_LLM_PROVIDER=openai, ARTEX_LLM_MODEL=gpt-5.4, and ARTEX_LLM_BASE_URL to the reseller at vip.aipro[.]love.
  • Hugging Face Hub repositories used as the model lure, including llama-3.2-1b-tuned and mistral-7b-utterance.

Other tooling

  • config.json auto_map to configuration_evil.py, loaded by trust_remote_code=True
  • Malicious pickle in pytorch_model.bin (GLOBAL __builtin__ exec and REDUCE), plus pytorch_model_zip.bin
  • Jinja chat template with four SSTI sandbox escapes
  • Hugging Face Hub commit API, POST /api/models/<repo>/commit/main, as NDJSON
  • cloudflared quick tunnel, phish_server.py, and relay.py on the same agent host

Targets and reported impact

Targets / sectors
No external victim reported back. Both loot drops were empty when Hugging Face disabled them. The only observed execution was on the operator's own builder.
Reported scale / exposure
One Hugging Face account and 13 repositories on 24 November 2026. Activity from account creation at 02:43:52 UTC through the renamed account's publications at 08:19 UTC. Two loot files from the builder, then empty loot drops. No other loot files in JFrog's index of public Hugging Face repositories. Hugging Face disabled all 13 repositories the same day.

JFrog does not name a victim country. The Docker DNS search domain in us-west-1, the Asia/Shanghai clock, and the residential proxy exits (US, CA, DE, GB, NL) are the operator host, not victim locations. Display names on the Hugging Face account are not an origin.

Reported attribution

Unidentified operator. JFrog has high confidence the models were created, uploaded, and tested from an ARTEX agent task using gpt-5.4, and does not identify the human. JFrog cannot rule out a red-team or bug-bounty engagement.

Structured attribution

Actor
Unidentified operator
Country
Unknown
Motivation
unknown
Attributed by
JFrog Security Research
Attribution confidence
low

Detection rules

  • Kubernetes Service Account Secret AccessELASTICView rule

    Linux process start whose command line contains the Kubernetes serviceaccount path. JFrog says the payload reads that token. A read inside configuration_evil.py that never places the path in argv does not match this rule.

  • JFrog YARA hf_commit_exfil.yarGUIDANCEView rule

    JFrog publishes this file with the report. It is YARA, not a Sigma, Splunk, or Elastic rule. The file defines HF_Model_Loot_Exfil_via_Commit_API and HF_ChatTemplate_Jinja_SSTI. Also hunt Hub commit API writes, reads of /proc/1/environ, a base64 literal starting with aGZf, and __globals__, __mro__, __subclasses__, or .popen( in a chat template. No public Sigma, Splunk, or Elastic rule checked for this entry keys on those Hub or Jinja signals.

Activity timeline

First seen
2026-11-24
Last updated
2026-11-25

Updates

  • 2026-11-24 — JFrog Security Research

    02:43:52 UTC account hfusr5488184 is created. 03:05 UTC llama-3.2-1b-tuned is published. The payload runs on the builder 14 seconds later.

  • 2026-11-24 — JFrog Security Research

    About 30 minutes later, toktest1 through toktest9 and lootrepo are published. At 08:19 UTC the account is renamed akashdutta1030 and mistral-7b-utterance and loot are published.

  • 2026-11-24 — JFrog Security Research

    JFrog reports the 13 repositories to security@huggingface.co. Hugging Face disables all 13 the same day. Both loot drops are empty.

Linked tools

  • ARTEX — agentic-offensive-framework

Source defensive notes

Do not use trust_remote_code=True on a repository you have not reviewed. Pin revision= to a commit SHA. Use torch 2.6 or newer so weights_only=True stays on. Render chat templates only in a sandbox. A workload that loads models should be able to download from the Hub and should not be able to commit to it. Flag auto_map repositories that have no weights. Detection signals JFrog names are writes to huggingface.co/api/models/*/commit/main, reads of /proc/1/environ and the service-account token, a base64 literal starting with aGZf, and __globals__, __mro__, __subclasses__, or .popen( in a chat template.

MITRE ATLAS

AI-specific catalog annotations based on the reported behavior; these are not MITRE case-study assignments.

AML.T0103Deploy AI Agent

JFrog says the models were created, uploaded, and tested from an ARTEX agent task. PID 1 on the builder starts ./artex. Source

AML.T0058Publish Poisoned Models

The account published llama-3.2-1b-tuned, nine tokenizer probes, and mistral-7b-utterance on the Hugging Face Hub. The second model has no weights. Source

AML.T0011.000Unsafe AI Artifacts

trust_remote_code loads configuration_evil.py, the .bin files are a malicious pickle, and the chat template is Jinja SSTI. Source

AML.T0055Unsecured Credentials

The payload reads the environment, /proc/1/environ, and the Kubernetes service-account token, then commits the JSON to the Hub. The first loot file was the operator's own ARTEX environment, including OPENAI_API_KEY. Source

Indicators of compromise

domains

  • vip.aipro[.]love

ips

    hashes

    • ed89685e8c16d0cb6dc218d0972e7a0a9e292f9b98f6b0ef0b2ab340d06d34e3
    • 79b47fe688932507fa013de36c057846916f586b3893f2fae3fc364cbd5d7c9e
    • 2bf25c4c3aa1e2efdff4ae9ee7e1434e279115608eb7a176e4e50e874c07c50d
    • 783f54898ba4b828e14a2e5ab3c50968bca0883b0fc0309c24876c9c7f99e841
    • b43e7d812ab6541bfce4f85b2a19ba051f1b560b581aa203754e088fe2367961
    • ceb5816fac7cbd886b096c7f0c0402913488ca0f967b617d3a7e25508032e6a8
    • b068b5a2ec3a6a13deef686173935330fb2f7fd2b3fb1f34aa2b6e359624de19

    urls

      Sources & research credit

      2 sources

      Research by David Cohen · JFrog Security Research

      1. The Agent That Robbed Itself: an AI-Driven Hugging Face Malware Campaign Leaks Its Own Operator research.jfrog.com
      2. Hugging Face agent self-exfiltration IOCs research.jfrog.com

      The narrative, timestamps, and file markers are from the 24 November 2026 JFrog Security Research post and its IOC CSV. vip.aipro[.]love is the API reseller in ARTEX_LLM_BASE_URL, not a domain JFrog attributes to the operator as attacker-owned infrastructure. The write token and the OpenAI key are not reproduced here. SHA-256 values, in order, are the first model's configuration_evil.py, modeling_evil.py, pytorch_model.bin, and pytorch_model_zip.bin, then evil_tok.py, then the second model's configuration_evil.py and modeling_evil.py. Text indicators are the accounts hfusr5488184 and akashdutta1030 (same account ID 6b04f9e8746b081f2c411875), the organization probeorg9x7y2, and the repositories llama-3.2-1b-tuned, mistral-7b-utterance, toktest1 through toktest9, lootrepo, and loot. JFrog says the phishing server, rotating residential proxies, and the disposable Hugging Face identity do not fit authorized work, and it still cannot rule out a red-team or bug-bounty engagement. Link wiz-artex-harvester-cyberstrikeai-cloud-intrusions-2026-11 and the other entries whose frameworks field is artex.

      Record & downloads
      Source record name
      JFrog: an ARTEX task publishes Hugging Face models that leak the operator
      Entry ID
      jfrog-artex-hugging-face-self-leaking-models-2026-11
      Catalog review
      November 25, 2026
      AI-role confidence
      high
      Category
      attacks-on-ai
      AI involvement confidence
      confirmed
      Aliases
      The Agent That Robbed Itself