Threat reportMalwareTL-2026-0467
OceanLotus (APT32) PyPI Supply Chain Campaign — ZiChatBot Cross-Platform Malware via uuid32-utils, termncolor & colorinal Wheels Using Zulip REST API for C2
Kaspersky GReAT attributed a PyPI supply chain campaign to OceanLotus (APT32) involving three malicious wheel packages — uuid32-utils, termncolor and colorinal — uploaded between 10-22 July 2025 that drop a previously unknown cross-platform malware family named ZiChatBot. The malware abuses the Zulip team-chat REST API on the helper.zulipchat.com organization (now deactivated) as a covert C2 channel, weaponising a benign vcpktsvr.exe via DLL side-loading of libcef.dll on Windows and a /tmp/obsHub/obs-check-update ELF on Linux.
Key facts
| Identifiers | TL-2026-0467 |
|---|---|
| Also known as | ZiChatBot Campaign, Operation ZiChatBot, OceanLotus PyPI Wheel Campaign, termncolor/colorinal supply chain attack |
| Severity | HIGH |
| Affected products | Python Software Foundation Python Package Index (PyPI); Microsoft Windows; Linux GNU/Linux distributions running CPython; Kandra Labs Zulip Cloud (helper.zulipchat.com) |
| Weaknesses (CWE) | CWE-506, CWE-829, CWE-1357, CWE-494 |
| Attribution | APT32 (medium confidence) |
| Nation-state nexus | Vietnam |
| Malware | ZiChatBot |
| Tools | Zulip Cloud (legitimate SaaS), Zulip REST API (custom ZiChatBot) |
| MITRE ATT&CK techniques | T1027 Obfuscated Files or Information, T1036.005 Match Legitimate Resource Name or Location, T1053.003 Scheduled Task/Job: Cron, T1059.006 Command and Scripting Interpreter: Python, T1070.004 Indicator Removal: File Deletion, T1071.001 Application Layer Protocol: Web Protocols, T1082 System Information Discovery, T1102.002 Web Service: Bidirectional Communication, T1106 Native API, T1132.001 Data Encoding: Standard Encoding, T1140 Deobfuscate/Decode Files or Information, T1195 Supply Chain Compromise and 9 more in the attack flow |
| Motivation | ESPIONAGE |
| Target sectors | technology, software-development, open-source, government, defense, telecommunications, automotive, pharmaceutical, research-academia |
| Target regions | Southeast Asia, ASEAN, North America, Europe, Global (developer ecosystem) |
| Detection rules | 9 (1 shown free) |
| Sources | 7 cited sources |
Detection coverage
As of 2026-05-06, Threadlinqs Intelligence publishes 9 detection rule(s) for TL-2026-0467 across Splunk SPL, Microsoft KQL and Sigma, covering 42 indicator(s) of compromise. The whole corpus is readable without an account. Every threat comes with one complete detection in Splunk SPL, Microsoft KQL and Sigma, free for everyone; a free account adds daily TL Creds to unlock the rest. Paid plans add a larger daily allowance, correlation and the MCP server. Threadlinqs MCP server · View plans.
Free detection: ZiChatBot C2 — Zulip REST API Beacon (helper.zulipchat.com / Morian-bot)
Detects ZiChatBot C2 traffic. Three independent signals: (1) any DNS or proxy traffic to helper.zulipchat.com (the deactivated attacker organization — any post-2025-08-31 query is anomalous); (2) HTTPS Authorization headers carrying the hard-coded Morian-bot Basic-Auth credential; (3) outbound TLS to *.zulipchat.com from a non-Zulip-using host. Maps to T1071.001 Web Protocols, T1102.002 Bidirectional Web Service C2.
- Languages: Splunk SPL, Microsoft KQL, Sigma
- ATT&CK: T1071.001, T1102.002, T1573.001, T1132.001
- Data sources: proxy, dns, tls_inspection, edr_network_events
- Severity: high
- Confidence: high
Splunk SPL
(index=proxy sourcetype="http*" (dest_host="helper.zulipchat.com" OR url="*helper.zulipchat.com*" OR (uri_path="/api/v1/messages" AND dest_host="*.zulipchat.com") OR (http_user_agent="*ZiChatBot*") OR (http_authorization="Basic *" AND http_authorization="*helper.zulipchat.com*") OR (http_authorization="Basic *" AND http_authorization="*Morian-bot*")))
OR (index=dns sourcetype="dns*" query="helper.zulipchat.com")
| eval indicator=case(
like(lower(dest_host),"%helper.zulipchat.com%"),"deactivated-org-helper",
like(http_authorization,"%Morian-bot%"),"morian-bot-auth",
like(http_user_agent,"%ZiChatBot%"),"zichatbot-ua",
like(query,"%helper.zulipchat.com%"),"dns-helper",
1=1,"zulip-api-from-workstation")
| stats count min(_time) as first_seen max(_time) as last_seen values(src) as src values(user) as user values(dest_host) as dest values(uri_path) as paths by indicator
| eval first_seen=strftime(first_seen,"%Y-%m-%d %H:%M:%S"), last_seen=strftime(last_seen,"%Y-%m-%d %H:%M:%S")
| table indicator src user dest paths count first_seen last_seenMicrosoft KQL
let helper_hits =
DeviceNetworkEvents
| where Timestamp > ago(7d)
| where RemoteUrl has "helper.zulipchat.com"
| extend Indicator="deactivated-org-helper";
let zulip_api_anomaly =
DeviceNetworkEvents
| where Timestamp > ago(7d)
| where RemoteUrl matches regex @"https?://[A-Za-z0-9-]+\.zulipchat\.com/api/v1/messages"
| extend Indicator="zulip-api-from-workstation";
union helper_hits, zulip_api_anomaly
| project Timestamp, DeviceName, InitiatingProcessFileName, InitiatingProcessCommandLine, RemoteUrl, RemoteIP, RemotePort, Indicator
| order by Timestamp descSigma
title: ZiChatBot C2 — Zulip API helper.zulipchat.com
id: 2c7e0467-0001-4001-9001-000000000003
status: experimental
description: Detects ZiChatBot C2 traffic — DNS/proxy hits to helper.zulipchat.com (deactivated attacker organization), HTTPS Basic-Auth headers carrying the Morian-bot credential, or outbound POSTs to *.zulipchat.com/api/v1/messages from hosts that do not normally use Zulip.
references:
- https://securelist.com/oceanlotus-suspected-pypi-zichatbot-campaign/119603/
author: Threadlinqs Team
date: 2026/05/06
tags:
- attack.command_and_control
- attack.t1071.001
- attack.t1102.002
- attack.t1573.001
- attack.g0050
- threadlinqs.tl_2026_0467
logsource:
category: dns
detection:
selection_helper:
QueryName: 'helper.zulipchat.com'
selection_zulip_any:
QueryName|endswith: '.zulipchat.com'
filter_known_zulip_users:
SourceIp|expand: '%KnownZulipClients%'
condition: selection_helper or (selection_zulip_any and not filter_known_zulip_users)
falsepositives:
- Organizations that genuinely use Zulip — populate %KnownZulipClients% with the IPs/users authorized to talk to *.zulipchat.com.
level: highKnown false positives:
- Organizations that legitimately use Zulip — must allowlist their authorized clients/users; the 'helper.zulipchat.com' organization itself is deactivated, so traffic to that specific host is always anomalous
Tuning notes: Maintain a `KnownZulipClients` lookup of users/hosts authorized to talk to Zulip; suppress only the *.zulipchat.com signal for them. NEVER suppress the helper.zulipchat.com signal — that organization is deactivated, no legitimate traffic should ever hit it. If you have TLS inspection, also alert on Authorization headers containing base64 strings that decode to '*Morian-bot*' or '*helper.zulipchat.com*'.
- ZiChatBot Initial Access — Pip Install of Malicious Wheels (Defender for Endpoint) · unlock with TL Creds
- ZiChatBot Post-Exploitation — [indicator] Side-Loading [indicator] from AppData · unlock with TL Creds
- ZiChatBot C2 — Anomalous Zulip Traffic from Workstation · unlock with TL Creds
- ZiChatBot Initial Access / Execution — Python Child Process Drops vcpacket Artifacts · unlock with TL Creds
- ZiChatBot Linux Persistence — Cron Entry for [indicator] · unlock with TL Creds
- ZiChatBot C2 — DNS Lookup of [indicator] (Deactivated Attacker Org) · unlock with TL Creds
- ZiChatBot Initial Access — Malicious PyPI Wheel Install ([indicator]/[indicator]/[indicator]) · unlock with TL Creds
- ZiChatBot Persistence — Run-Key 'pkt-update' or vcpacket Drop Directory · unlock with TL Creds
Indicators of compromise
As of 2026-05-06, Threadlinqs Intelligence tracks 42 indicators of compromise for TL-2026-0467.
Sample indicators (3 of 42)
- Domain:
helper[.]zulipchat[.]com - File hash:
5152410aeef667ffaf42d40746af4d84 - File hash:
ba2f1868f2af9e191ebf47a5fab5cbab
Defanged, TLP:CLEAR. Full set of 42 indicators: unlock with TL Creds.
Technical analysis
Attribution to OceanLotus is supported by Kaspersky's Threat Attribution Engine which matched dropper decompression and decryption logic with 64% similarity to known APT32 droppers; an earlier Zscaler ThreatLabz disclosure in August 2025 covered the termncolor/colorinal cluster without naming the actor.
Overview -------- Between 10 July and 22 July 2025, three malicious Python wheel packages were published to the Python Package Index (PyPI) by accounts laz** (tutamail.com) and sym** (proton.me): uuid32-utils (multiple 1.x.x versions), colorinal 0.1.7 and termncolor 3.1.0. termncolor depends on colorinal so installing termncolor pulls in the malicious chain; uuid32-utils carries the dropper directly. colorinal had ~529 downloads and termncolor ~355 downloads before removal. All three packages were taken down by PyPI maintainers, and the attacker-controlled Zulip organisation "helper" (helper.zulipchat.com) was officially deactivated by Kandra Labs. Kaspersky's Securelist disclosure on 6 May 2026 attributed the campaign to OceanLotus (APT32) — a Vietnam-aligned espionage group — based on a 64% similarity match between the dropped loader's decryption/decompression logic and a known OceanLotus dropper, surfaced by Kaspersky's Threat Attribution Engine. The malware family was named ZiChatBot for its use of the Zulip Chat platform as command and control.
Windows Infection Chain ------------------------ 1. The user runs `pip install termncolor` (or installs uuid32-utils). The wheel registers `colorinal\unicode.py` which is imported by `__init__.py`. 2. `is_color_supported()` in unicode.py loads the bundled native module `terminate.dll` into the running Python process and invokes the exported function `envir` with the parameter `xterminalunicod` (UTF-8 encoded). 3. terminate.dll AES-CBC decrypts an embedded blob and drops two files into `%LOCALAPPDATA%\vcpacket\` — a legitimate signed Microsoft binary `vcpktsvr.exe` (the side-loading host) and the malicious `libcef.dll` (the ZiChatBot payload). 4. vcpktsvr.exe is launched, side-loads libcef.dll, and ZiChatBot begins execution. 5. Persistence is established by writing the registry value `HKCU\Software\Microsoft\Windows\CurrentVersion\Run\pkt-update` pointing to `%LOCALAPPDATA%\vcpacket\vcpktsvr.exe`. 6. The dropper and unicode.py self-delete to reduce forensic surface.
Linux Infection Chain --------------------- 1. The Linux variant of the wheel ships terminate.so (and a variant Backward.so) which performs the equivalent decryption stage. 2. The ELF payload is dropped to `/tmp/obsHub/obs-check-update`. 3. Persistence is established with the user crontab entry: `5 * * * * /tmp/obsHub/obs-check-update`.
ZiChatBot — C2 over Zulip ------------------------- Unlike traditional malware ZiChatBot does not contact dedicated attacker infrastructure. Instead it authenticates to the Zulip Cloud REST API at `https://helper.zulipchat.com/api/v1/` using a hard-coded base64-embedded credential that decodes to `Morian-bot@helper.zulipchat.com:U8REXlI6Kf8qXB9rQzOPBiIA4brJ58qG`. It uses two fixed channel/topic pairs: one for posting harvested system information from the victim and one for fetching shellcode tasking. Shellcode is XOR-decoded with the three-byte key `3a7` and executed reflectively in the host process. The bot supports a single command — "execute shellcode received from server" — and acknowledges successful execution by sending the heart emoji (`:heart:`) reaction back to the C2 message. Strings, imports and configuration are protected with AES-CBC. Forensic analysis of the Zulip organisation showed three active operator users and 90,692 messages exchanged from 10 July 2025 onward.
Attribution ----------- Kaspersky Threat Attribution Engine reported a 64% similarity score between ZiChatBot's loader code (decryption and decompression routines, control-flow markers and string obfuscation) and a known OceanLotus dropper. OceanLotus (also tracked as APT32, SeaLotus, APT-C-00, Cobalt Kitty, Ocean Buffalo) is a Vietnam-nexus espionage actor with a long history of supply chain abuse, watering-hole operations and signed-binary side-loading targeting ASEAN governments, dissidents, automotive and pharmaceutical sectors. The choice of Zulip as a C2 channel is novel for the actor and represents the first publicly documented use of Zulip's REST API for C2 by a nation-state cluster.
Defensive Implications ---------------------- Developers and CI/CD pipelines that pull from public PyPI without pinning or hash-checking are the primary attack surface. The Zulip-as-C2 design defeats domain blocklists that allow productivity SaaS and bypasses TLS inspection by riding a legitimate, certificate-pinned vendor. Defenders should hunt for child processes of `python.exe` writing to `%LOCALAPPDATA%\vcpacket\`, registry Run-key writes named `pkt-update`, outbound TLS to `helper.zulipchat.com`, and any anomalous workstation traffic to `*.zulipchat.com` from hosts that do not normally use Zulip.
MITRE ATT&CK techniques by tactic:
Defense Evasion
T1027 Obfuscated Files or Information; T1036.005 Match Legitimate Resource Name or Location; T1070.004 Indicator Removal: File Deletion; T1140 Deobfuscate/Decode Files or Information; T1574.001 DLL; T1620 Reflective Code Loading
Persistence
T1053.003 Scheduled Task/Job: Cron; T1547.001 Boot or Logon Autostart Execution: Registry Run Keys / Startup Folder
Execution
T1059.006 Command and Scripting Interpreter: Python; T1106 Native API; T1204.002 User Execution: Malicious File
Command and Control
T1071.001 Application Layer Protocol: Web Protocols; T1102.002 Web Service: Bidirectional Communication; T1132.001 Data Encoding: Standard Encoding; T1573.001 Encrypted Channel: Symmetric Cryptography
Discovery
T1082 System Information Discovery
Initial Access
T1195 Supply Chain Compromise; T1195.002 Compromise Software Supply Chain
Resource Development
T1583.006 Acquire Infrastructure: Web Services; T1585.002 Establish Accounts: Email Accounts; T1587.001 Develop Capabilities: Malware
Remediation
Patches
- Remove uuid32-utils, colorinal 0.1.7 and termncolor 3.1.0 from any internal mirror or lockfile
- Upgrade to a pinned version from a vetted alternative (e.g. termcolor, colorama) for any project that referenced termncolor
Immediate actions
- Block all outbound traffic to helper.zulipchat.com at the perimeter and proxy
- Hunt endpoints for the file path %LOCALAPPDATA%\vcpacket\ and the Linux path /tmp/obsHub/
- Hunt the registry value HKCU\Software\Microsoft\Windows\CurrentVersion\Run\pkt-update and remove if present
- Hunt the cron entry '5 * * * * /tmp/obsHub/obs-check-update' on Linux developer hosts
- Quarantine any host that installed uuid32-utils, termncolor, or colorinal between 2025-07-10 and 2025-08-31
- Rotate developer credentials, SSH keys, npm/PyPI tokens and cloud API keys exposed to suspect workstations
Workarounds
- Restrict pip and npm installations from developer workstations to a curated internal index until hunt is complete
- Apply egress filtering on developer subnets to block direct internet pip/npm pulls
Longer-term hardening
- Mandate hash-pinned dependencies (pip install --require-hashes) in all CI/CD pipelines
- Deploy private PyPI mirror (Artifactory, devpi, Nexus) with allowlist of vetted packages and hold-window for new releases
- Enable PyPI 2FA enforcement and trusted-publisher OIDC for internal package publishers
- Deploy EDR rules covering DLL side-loading from %LOCALAPPDATA%\vcpacket\ and reflective shellcode execution under python.exe child processes
- Add SaaS-as-C2 detection for Zulip, Slack, Discord, Telegram and Mattermost API calls from non-business hosts
Affected and fixed versions
- Python Software Foundation — Python Package Index (PyPI)
Vulnerable versions: uuid32-utils 1.x.x; colorinal 0.1.7; termncolor 3.1.0
Fixed in: all three packages removed from PyPI - Microsoft — Windows
Vulnerable versions: Windows 10; Windows 11; Windows Server 2019; Windows Server 2022 - Linux — GNU/Linux distributions running CPython
Vulnerable versions: any glibc-based x86_64 distribution with Python 3 - Kandra Labs — Zulip Cloud (helper.zulipchat.com)
Vulnerable versions: organization 'helper'
Fixed in: organization deactivated by Zulip Trust & Safety
Timeline
- Earliest operator activity recorded inside the attacker-controlled 'helper' Zulip organization (per Zscaler ThreatLabz forensic review).
- First malicious wheel uploaded to PyPI by author 'laz**** (tutamail.com)' — uuid32-utils 1.x.x series begins publication.
- termncolor 3.1.0 and colorinal 0.1.7 uploaded to PyPI by author 'sym**** (proton.me)'; closes the July upload window. Zscaler ThreatLabz simultaneously discovers termncolor.
- Zscaler ThreatLabz publishes 'Supply Chain Risk in Python: Termncolor and Colorinal Explained', documenting the DLL side-loading chain and Zulip C2 but not naming an actor. PyPI removes the packages.
- The Hacker News, GBHackers, and Cybersecurity News publish coverage of the termncolor/colorinal cluster; npm sister-cluster (redux-ace, rtk-logger) reported in the same wave.
- Kandra Labs (Zulip) deactivates the 'helper' organization and revokes the [email address withheld] bot credential.
- Threat documented in Threadlinqs Intelligence as TL-2026-0467 with full IOC, MITRE and detection coverage.
- Kaspersky GReAT publishes Securelist analysis naming the malware family ZiChatBot, releasing additional uuid32-utils IOCs and attributing the campaign to OceanLotus (APT32) with 64% similarity per the Threat Attribution Engine.
- As of 2026-05-29, this specific campaign is contained: all three PyPI wheels (uuid32-utils, colorinal, termncolor) were removed and the [domain withheld] C2 org was deactivated 2025-08-31, with no new beaconing since. But OceanLotus/APT32 remains a highly active Vietnam-nexus actor with ongoing supply-chain tradecraft, so resurgence is a live concern.
Sources cited
- uuid32-utils — Safety DB advisory data.safetycli.com · Advisory · 2025-08-15
- OceanLotus suspected of using PyPI to deliver ZiChatBot malware Kaspersky Securelist · Vendor report · 2026-05-06
- Supply Chain Risk in Python: Termncolor and Colorinal Explained zscaler.com · Vendor report · 2025-08-18
- MITRE ATT&CK Group G0050 — APT32 (OceanLotus) MITRE · Research · 2024-10-15
- ESET malware-ioc OceanLotus indicators repository GitHub · Code repository · 2024-06-01
- Malicious PyPI and npm Packages Discovered Exploiting Dependencies in Supply Chain Attacks The Hacker News · News · 2025-08-19
- Weaponized Python Package termncolor Uses Windows Run Key for Persistence gbhackers.com · News · 2025-08-19
More from APT32
Previous and next in malware
Further reading
AI-drafted from 7 cited sources; published ; last updated —.