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.
Story
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.
Affected Artifacts
- Observed
- 2026-03-04 to 2026-03-22
- Compromised Versions
- Unknown
- Fixed
- Not listed
- Hashes
-
- sha256:91d48ee33a92acef02d8c8153d1de7e7fe8ffa0f3b6e5cebfcb80b3eeebc94f1
- Evidence
- distribution: cdn.apifox.com/www/assets/js/apifox-app-event-tracking.min.js, mirror: web.archive.org/web/20260305051418/https://cdn.apifox.com/www/assets/js/apifox-app-event-tracking.min.js, domain: apifox.it.com, domain: cdn.openroute.dev , +12 more
- SlowMist identified a malicious Wayback snapshot from 2026-03-05; Kudelski summarized the exposure window as March 4 through March 22, 2026.
Incident Context
- Motive
- Credential Theft
- Cause
- Compromised Cdn Script
- Transitive
- No
External References
- Security Alert: Supply Chain Attack on Apifox Desktop Client via Compromised Official CDN Scriptslowmist.medium.com
- Apifox Supply Chain Attackkudelskisecurity.com
Source record: proprietary/apifox/meta.yaml