Proprietary · · 18 days

Apifox CDN script stole developer secrets

A compromised Apifox CDN analytics script ran inside the Electron desktop client. The injected JavaScript stole tokens, developer credentials, and system data, then fetched remote payloads for command execution.

Apifox is an API development client, so it sits close to secrets. Developers use it with access tokens, API keys, Git credentials, SSH keys, npm tokens, and Kubernetes configuration. In March 2026, a script loaded by the desktop client became the delivery path.

The compromised file was apifox-app-event-tracking.min.js on Apifox's official CDN. It was supposed to be event-tracking code. The malicious version appended heavily obfuscated JavaScript to the legitimate analytics logic, so the Electron client executed it automatically at startup or during runtime.

The payload read Apifox local storage, enumerated processes with ps aux or tasklist, and targeted developer files such as ~/.ssh/, ~/.git-credentials, shell history, kubeconfig data, .npmrc, and Subversion credentials. It sent stolen data over encrypted channels and could retrieve and execute additional code.

SlowMist reported the attack on March 26, 2026. Kudelski later summarized the exposure window as March 4 through March 22 and treated all users who launched the desktop client during that period as potentially affected. The practical response was secret rotation, session invalidation, local storage cleanup, and network blocking of the attacker domains.

Appendix · Affected releases

  • SlowMist identified a malicious Wayback snapshot from 2026-03-05; Kudelski summarized the exposure window as March 4 through March 22, 2026.
  • Reporting described the affected range as < 2.8.19 rather than naming the releases, so the individual versions are not enumerated here.

References

  1. Security Alert: Supply Chain Attack on Apifox Desktop Client via Compromised Official CDN Scriptslowmist.medium.com
  2. Apifox Supply Chain Attackkudelskisecurity.com
  3. Apifox Supply Chain Attack Post-Mortem: Your SSH Keys May Already Be Compromisedchenguangliang.com
  4. Wiz Security - Apifox Supply Chain Attackthreats.wiz.io
  5. Crypto Tools Under Attack as Apifox Breach Exposes Sensitive Datacryptotimes.io
  6. Apifox official announcementmp.weixin.qq.com
  7. V2EX community discussionv2ex.com

Source record: proprietary/apifox/meta.yaml