Armando identified colook v1.1.3, published to PyPI on October 21, 2026, as the front package of a two-package malware chain. colook is a small terminal colors and formatting library whose "encrypted printing" feature imports basic-crypt, a companion package first published about 80 minutes earlier from a different single-package account. basic-crypt ships a compiled native module that, at import, decrypts and installs a persistent loader fetching code from an attacker-controlled server. colook declares basic-crypt without a version pin and imports it as soon as colook itself is imported, so installing and using colook is enough to put that native module in play. The package has recorded 610 downloads.
Key Findings
- Malicious version: v1.1.3, published 2026-10-21 08:40 UTC; colook has no other release
- Entry point:
import colook -- colook/__init__.py imports secure.py, which imports basic_crypt and loads its native extension
- Targets: Linux and Windows (via basic-crypt 1.5.3) and macOS on Apple Silicon (via basic-crypt 1.5.4); pulls in a native backdoor loader
- Evasion: colook itself contains no malicious code; the payload lives in a compiled extension in a separate package from a separate account, and the dependency is unpinned so new basic-crypt builds are picked up automatically
- Detection: Script-Python.Trojan.SupplyChain, Text.Trojan.SupplyChain, Archive-ZIP.Trojan.SupplyChain, Archive-GZIP.Trojan.SupplyChain, Archive-TAR.Trojan.SupplyChain
Package Background
colook describes itself as "basic terminal printing: colors, RGB, styles, formatting, and encrypted printing." It was published on October 21, 2026 by the PyPI account gotadijo, which owns no other packages, and it declares no source code repository. It has 610 recorded downloads. Its Python modules -- colors, styles, formatting and a Windows console helper -- are ordinary, working code.
colook declares two dependencies: colorama and basic-crypt. basic-crypt, published the same morning by the account simendi, presents itself as a teaching library of "basic crypto primitives." The only thing colook uses it for is an optional "secure print" feature that XOR- or RC4-encrypts a line before printing it.
Attack Analysis
The import chain. colook/__init__.py imports secure_print and related helpers from colook/secure.py at package import. secure.py in turn runs import basic_crypt and import basic_crypt.xor at module level. Importing basic-crypt loads its compiled extension basic_crypt._native, and the extension's initialization routine is where the payload lives. No colook feature has to be called; import colook is sufficient.
A cover story for the dependency. secure.py contains a _repair_broken_native() routine that runs at import and tests basic-crypt's native xor_bytes function, explaining in its docstring that "some basic-crypt builds (e.g. 1.5.3 on Windows)" ship an extension that does not expose it. The routine gives colook a plausible reason to exercise the native module at import time, and it shows the author managing the companion package's builds alongside this one.
An unpinned dependency as an update channel. colook requires basic-crypt with no version constraint, so pip installs the newest basic-crypt build available for the platform. Linux and Windows installs resolve to basic-crypt 1.5.3; on Apple Silicon Macs they resolve to 1.5.4, a macOS-only build published on November 30, 2026, more than five weeks after colook. Every new basic-crypt upload therefore reaches colook's users without any change to colook.
What basic-crypt does once loaded. The native module walks the loaded module names, hashes each one, and looks for a specific requests sub-module; that name is the key to its encrypted payloads, so nothing happens unless requests is already imported. When the key is present, it decrypts and writes a launcher into the user site-packages directory, appended to a genuine copy of setuptools' _distutils_hack module that a distutils-precedence.pth file loads on every Python start, and runs a stager that fetches and executes code from a Supabase edge function. Those details are covered in the analyses of basic-crypt 1.5.3 and 1.5.4.
A build environment shipped by mistake. colook's source distribution also contains the author's entire Windows virtual environment -- more than 2,000 files including pip, setuptools, twine and requests. Armando checked the bundled _distutils_hack module and distutils-precedence.pth in that environment and found them to be stock setuptools files; the bundled environment is an operational slip, not a second payload.
Malicious Files
secure.py (Script-Python.Trojan.SupplyChain) is the campaign front component. It is imported at package import, and its function is to import basic_crypt (an unpinned dependency) whose native module decrypts and drops a _distutils_hack .pth loader that fetches code from a Supabase command-and-control endpoint.
METADATA (Text.Trojan.SupplyChain) and pyproject.toml (Text.Trojan.SupplyChain) are the manifests that declare the unpinned basic-crypt dependency.
Recommendations
Developers and security teams should take the following steps:
- Identify exposure: Check whether colook v1.1.3 or any basic-crypt release appears in your dependency tree. Any environment that imported colook in a process where
requests was loaded should be considered compromised.
- Remove the packages: Uninstall colook and basic-crypt. Neither has a clean release.
- Remove the persistence manually: Uninstalling does not remove what basic-crypt installs. Inspect
_distutils_hack/__init__.py in the user site-packages directory for appended code, remove any _distutils_hack/__base__.py, and on macOS delete ~/.pip3.py. Look for the lock files /tmp/nt.t or %TEMP%\nt.t.
- Inspect affected systems: Look for outbound requests to the Supabase endpoint listed in the basic-crypt indicators and for unexpected detached Python processes, and rotate credentials available to the affected user.
- Scan your software supply chain: Use Spectra Assure Community to check whether packages in your environment have been flagged.
Indicators of Compromise
Malicious Files
| Filename | SHA256 | Detection |
|---|
| secure.py | cc016c87b71d4f7f22cff1053e7c02e654962eb22fa32a9e40c3ff9cfabc9d2c | Script-Python.Trojan.SupplyChain |
| METADATA | a55e050bb95412dd1e3051bee55c7289c451e7069cc6cff0c73921009a29dc1b | Text.Trojan.SupplyChain |
| pyproject.toml | 028b8723cc45fc44969e2db49cf971bc0094fd3e95cff9617feb279d30e521af | Text.Trojan.SupplyChain |
Network IOCs
| URL / IP | Purpose |
|---|
| None | This release ships only the install trigger; the payload is delivered separately |
Archive Hashes
| File | SHA256 |
|---|
| colook-1.1.3-py3-none-any.whl | 8960d524263c8ef189fc8070bb684d6673de5d2e07fda19ec054af82f4eeeb1e |
| colook-1.1.3.tar.gz | 8dc7261e57873c03aaaf17c6cd9301ff3b5c00d42b02827241b9bd9a3875c756 |
| colook-1.1.3.tar | 55906b6d19638ad80810cc18ef936e8ae073de7eb6148ba44e39005ded209111 |