A malicious PyPI package named graphdict was identified as part of the graphalgo fake crypto developer recruitment campaign. Armando's analysis of graphdict v3.4.14 found an install hook in setup.py that triggers graph_config.py and load_libraries.py as downloaders -- scripts that fetch from the johns92 GitHub stager repository to derive a command-and-control address at runtime. The package accumulated 2,493 downloads, the highest among the campaign's Python downloader packages. The publisher registered under the name "John Smith" with the email johnsmithdev92@gmail.com -- a throwaway identity that mirrors the johns92 GitHub account naming convention.
Key Findings
- Malicious version: 3.4.14 (only version on PyPI)
- Entry point: Install hook in
setup.py executes downloaders at install time
- C2 mechanism: Fetches
https://raw.githubusercontent.com/johns92/blog_app/refs/heads/main/server/.env.example and .nvmrc, XOR-derives the C2 IP address from the content
- Publisher: "John Smith" /
johnsmithdev92@gmail.com (throwaway identity, aligned with johns92 C2 account)
- Downloads: 2,493 -- highest download count among PyPI downloader packages in this campaign
- Detection: Script-Python.Downloader.SupplyChain, Archive-ZIP.Downloader.SupplyChain
Package Background
graphdict presents itself as a graph data structure library. Total downloads: 2,493, first published in 2025. The publisher identity "John Smith" at johnsmithdev92@gmail.com is consistent with the johns92 GitHub stager account used across this campaign's C2 chain, suggesting the same threat actor operates both the PyPI publisher account and the stager repository.
Attack Analysis
At install time, setup.py executes graph_config.py and load_libraries.py. Unlike the pure dropper packages in this campaign (which use a self-contained reverse-base64-zlib stub), graphdict's scripts are downloaders: they reach out to GitHub over the network to fetch values from the johns92 stager repository.
The scripts fetch two files from johns92/blog_app/refs/heads/main/server/: .env.example and .nvmrc. By XOR-combining values from these files, the downloader derives the C2 server address -- the same technique used by npm packages graphalgo (all versions), graphlibcore, and netstruct in the OLD-johns92 pattern. Subprocess invocations and process creation behaviors (BH13012) are also present.
The publisher's email (johnsmithdev92@gmail.com) directly echoes the 92 suffix in the johns92 GitHub account, linking the same individual to both the PyPI distribution channel and the C2 infrastructure.
Malicious Files
graph_config.py classified as Script-Python.Downloader.SupplyChain. Install-hook downloader that contacts the johns92 GitHub stager.
load_libraries.py classified as Script-Python.Downloader.SupplyChain. Second install-hook downloader using the same C2 derivation method.
setup.py classified as Script-Python.Downloader.SupplyChain -- registers the install hook.
Recommendations
- Identify exposure: Check for graphdict at version 3.4.14.
- Update immediately: No clean version. Remove graphdict entirely.
- Check lateral exposure: Also audit for npm graphalgo, graphlibcore, netstruct -- all use the same johns92 C2 stager.
- Scan your software supply chain: Use Spectra Assure Community (https://secure.software/pypi/packages/graphdict).
Network IOCs
| IOC | Type |
|---|
| https://raw.githubusercontent.com/johns92/blog_app/refs/heads/main/server/.env.example | C2 staging URL |
| https://raw.githubusercontent.com/johns92/blog_app/refs/heads/main/server/.nvmrc | C2 auxiliary URL |
Indicators of Compromise
Malicious Files
| Filename | SHA256 | Detection |
|---|
| graphdict-3.4.14-py3-none-any.whl | 7b26300f9d024b5f7db7e6f97d563840a62101f614368116bfce5570c52fabd4 | Archive-ZIP.Downloader.SupplyChain |
| graph_config.py | 00b985678cddc5eba285cd8dc8f37e797a1539312c1d1b9a00cbdbbba4024817 | Script-Python.Downloader.SupplyChain |
| load_libraries.py | 7a8eb2cba306ae157d77b450d2c5c87a885b571030668c0800e85a18fc5e76e2 | Script-Python.Downloader.SupplyChain |
| setup.py | 5636662ac1641862a9b170c7afacffa97c530314dcda41f0aeb5ebdbbefd3a27 | Script-Python.Downloader.SupplyChain |
Archive Hashes
| File | SHA256 |
|---|
| graphdict-3.4.14.tar.gz | dd734aa1369e4b47e6eeae8ed4690b9097a5769493a52447adf22fce3562ec07 |
| graphdict-3.4.14.tar | bfb32d47aced49acf4d25bd8ce9b1fd01a215dba2ca0ecad706ba09bfd395e74 |