A malicious PyPI package named bigmathutils was identified as part of the graphalgo fake crypto developer recruitment campaign. Armando's analysis of bigmathutils v0.0.3 found the campaign's standard dual-dropper pattern: load_libraries.py and test.py triggered by a build hook in pyproject.toml, with a decoded payload contacting the ryanthompson4323 GitHub stager for C2 address derivation. This package completes the "Matt" publisher's trio of PyPI droppers (alongside bigpyx v0.0.2 and bigmathex PyPI v0.0.3). The campaign also deployed bigmathutils on npm (v1.1.0, already identified), with both ecosystem versions sharing the same C2 infrastructure.
Key Findings
- Malicious version: 0.0.3 (PyPI)
- Entry point: Build hook in
pyproject.toml executes dropper stubs at install time
- Dual droppers: Both
load_libraries.py and test.py contain reverse-base64-zlib dropper stubs
- C2 staging: Contacts
https://raw.githubusercontent.com/ryanthompson4323/axios-net/refs/heads/main/README.md
- Cross-ecosystem: Campaign also deployed bigmathutils on npm (v1.1.0, JavaScript downloader)
- Publisher: "Matt" (https://pypi.org/user/Matt/) -- also published bigpyx, bigmathex (PyPI), and zope.app.testing
- Shared payload:
test.py shares the same SHA256 hash with bigmathex PyPI v0.0.3, confirming code-level reuse across Matt's PyPI packages
- Detection: Script-Python.Dropper.SupplyChain, Archive-ZIP.Dropper.SupplyChain
Package Background
bigmathutils (PyPI) presents itself as a math utilities library. The "Matt" publisher account is responsible for bigpyx (v0.0.2), bigmathex (PyPI v0.0.3), bigmathutils (PyPI v0.0.3), and also lists zope.app.testing -- a name squatted from the legitimate Zope project -- giving Matt's account a wider apparent footprint.
The npm and PyPI bigmathutils names were registered by the same underlying campaign operation. The npm version (v1.1.0, publisher omaringram1) used the OLD-ryanthompson stager chain via big.min.js, while the PyPI version uses the reverse-base64-zlib dropper stub, but both ultimately derive C2 from the same ryanthompson4323/axios-net GitHub repository.
Attack Analysis
At install time, the build hook in pyproject.toml executes both load_libraries.py and test.py. Each contains the campaign's reverse-base64-zlib dropper stub. The decoded payload contacts ryanthompson4323/axios-net on GitHub to derive the C2 address at runtime.
A notable code-level link: the test.py file in bigmathutils PyPI v0.0.3 shares the same SHA256 hash (7f728a05...) as the test.py in bigmathex PyPI v0.0.3, confirming that Matt's three PyPI packages reuse the same dropper payload blob.
Malicious Files
load_libraries.py classified as Script-Python.Dropper.SupplyChain. Build-hook dropper, contacts ryanthompson4323 stager.
test.py classified as Script-Python.Dropper.SupplyChain. Second build-hook dropper; identical SHA256 to bigmathex PyPI v0.0.3's test.py.
pyproject.toml classified as Text.Dropper.SupplyChain -- registers the build hook.
PKG-INFO classified as Text.Dropper.SupplyChain.
Recommendations
- Identify exposure: Check for bigmathutils (PyPI) at version 0.0.3, and bigmathutils (npm) at version 1.1.0.
- Update immediately: No clean version. Remove bigmathutils from both npm and PyPI dependencies.
- Audit Matt's packages: bigpyx, bigmathex (PyPI), and zope.app.testing on the same account should be reviewed.
- Scan your software supply chain: Use Spectra Assure Community (https://secure.software/pypi/packages/bigmathutils).
Network IOCs
| IOC | Type |
|---|
| https://raw.githubusercontent.com/ryanthompson4323/axios-net/refs/heads/main/README.md | C2 staging URL |
| https://raw.githubusercontent.com/ryanthompson4323/axios-net/refs/heads/main/rc.json | C2 auxiliary URL |
Indicators of Compromise
Malicious Files (PyPI v0.0.3)
| Filename | SHA256 | Detection |
|---|
| bigmathutils-0.0.3-py3-none-any.whl | 74ec9325ecd1830e2be3add7454d4f8b6f406e5197603cf402505b987bc2ec2e | Archive-ZIP.Dropper.SupplyChain |
| load_libraries.py | 14995b44fa86d0eff7ee976855a3b0c3e40b4640d287b0d0d9eb69edab9990d6 | Script-Python.Dropper.SupplyChain |
| test.py | 7f728a0506bf69032b93a66d3834ac620724536bb11789a416ff30bc89ca7e2a | Script-Python.Dropper.SupplyChain |
| PKG-INFO | 6f3a4cc07e3e3905efc87ff9c5ed0d2f03ffd2af2add218b3106ed6743cc7c7a | Text.Dropper.SupplyChain |
| pyproject.toml | 8dae5e95a4dc2c0ad55be8a6477aea9912783e41fece4a0140e069441d36f050 | Text.Dropper.SupplyChain |
Archive Hashes (PyPI v0.0.3)
| File | SHA256 |
|---|
| bigmathutils-0.0.3.tar.gz | 4397cb928902b7901419e10699600914bb050d3b526d53259343ab4c5a854fde |
| bigmathutils-0.0.3.tar | a2e011b0d160712a3e70d51879651fcf5c58775b82d094e5e907086f5f8446b0 |