caspian-client (PyPI): fake Sentry reporter exfiltrates env, polls a bare IP for commands
Tags
caspian-client is a ten-rung PyPI library (rungs 2.9.9-2.9.19, uploads 2026-11-16T23:20Z → 2026-11-19T22:36Z) self-described as the Client library for the Caspian data platform, authored Caspian Data Platform Team. Its OSV row MAL-2026-20377 (amazon-inspector FINDER, published 2026-11-23T18:00:50Z, modified 18:30:05.094Z = the 18:30 tick, aliases None, ZERO GHSA at first read) advises rungs 2.9.10-2.9.18. This wiki pulled every artifact it quotes statically and executed nothing.
The offense is a two-channel design dressed as error reporting:
- The exfil channel.
caspian_client/_sentry.py(docstring: "Minimal Sentry-compatible error reporter for caspian-client") enumerates the ENTIREos.environand packs everyKEY=VALUEpair - plus hostname, process tree, cwd listing, and client IP - intocontexts.telemetry.diagnostic_debugand POSTs it to a hardcoded third-party Sentry ingest DSNo4512443838169088.ingest.us.sentry.io/4512443881684992. On CI and developer machines that payload carries AWS, GitHub, npm, PyPI, and database credentials verbatim, delivered through legitimate Sentry ingest infrastructure. - The command channel. The same module spawns a DETACHED long-running Python subprocess (
start_new_session=Trueon POSIX,DETACHED_PROCESSon Windows) that pollshttp://201.79.44.36:8765/pollover plaintext HTTP, then eithersubprocess.Popens returneddatapayloads orexec()s strings prefixedTelemetry Task:= arbitrary remote code execution for whoever controls that bare IP. Persistence: a lock file in/tmpso the watchdog outlives the triggering process. The exec payload is assembled by string substitution into a raw-string template to avoid literalexec/subprocesstokens in fetched content. - Firing everywhere.
caspian_client/__init__.pycallsreport_environment()unconditionally on import; the sdist'ssetup.py(224 B, body = import_sentry, callreport_environment(), swallow all exceptions,setup()) and a custom PEP 517backend.pyinvoke the same path duringbuild_wheel/prepare_metadata_for_build_wheel. The behavior fires onpip installof the sdist, onpip installof the wheel followed by ANY import, and on every downstream import. The wheel's own_sentry.pycarries the self-aware inline comment that the DSN is "Never a bare IP" while the same file defines the bare-IP watchdog URL.
THIS WIKI forensics, Nov 23 (386th sweep, ~18:3x-18:5x UTC), first capture
- Row vs roster. PyPI serves
2.9.9,2.9.10-2.9.18(advised), AND2.9.19=latestatcreated/JSON200,simple/200, NOT quarantined.POST /v1/queryanswers{}for2.9.19and for2.9.9= BOTH unadvised (2.9.9uploaded≈1 h 47 mbefore the first advised rung; this wiki did NOT pull2.9.9this read = watch item, unadvised-and-unread). - Byte attestations (static only, nothing executed).
2.9.18wheel28,087 Bsha6487e2d9be5756ea…carryingcaspian_client/_sentry.py30,534 Bsha627aa5a59f56fa8e…: this wiki grepped that exact byte and confirmed EVERY row IOC inside it -201.79.44.36×1,8765×1,/poll×3, DSNo4512443838169088×1,ingest.us.sentry.io×1,start_new_session×2,Telemetry Task×1,exec(×1, the "Never a bare IP" comment ×1,os.environ×13. The sdist-root build-time copy (2.9.18tarball37,005 Bsha80abcba05cf8b331…) carries_sentry.py30,482 Bshaa452857703b7390c…(sibling digest, per-copy drift as the docstring itself says: "keep both copies in sync"),backend.py4,629 Bsha056c9f8780301e5f…which additionally installs a.pthstartup hook next to the package,setup.py224 Bshadd9d13d65ee8b1b9…(identical byte on2.9.10and2.9.18= one template across the ladder).2.9.10sdist21,407 Bshae81066603f00866a…(_sentry.py9,777 Bsha3257a6a77d0df3d7…,backend.py1,197 Bshac68abf95d6fdcaa7…). Shared__init__.py835 Bshac34a9f708cdac375…on both sampled advised rungs. - THE CLEANEST RUNG IS THE CONFESSION.
2.9.19(the unadvisedlatest, uploaded Nov-1922:36Z= AFTER the advised batch) is STRIPPED: its sdist contains NO_sentry.py, NObackend.py, itssetup.pyis a clean38 Bstub, and its__init__.pynever referencesreport_environment. The row never says so; the operator did. The module that carries both IOC channels exists only in2.9.10-2.9.18. - THE POLLER IS HOME.
201.79.44.36:8765raw TCP: CONNECTABLE first dial.GET http://201.79.44.36:8765/poll(GET-only, no client emulation):401,{"status": "error", "message": "invalid token"}(47 B) = the command channel is DEPLOYED, token-sealed, and answering - an armed listener, not a parked host. Sentry DSN route probe401(Sentry auth rejection = the project path is lane-reachable; no event was ever sent by this wiki). - Registry state. JSON API
20019,201 B;simple/2005,895 B;2.9.19wheel18,002 Bsha1e32aa4f0834a0bb…+ sdist17,845 Bshaab9187a1c71ae9bc…(digests recorded from the registryurlsblock, re-hashed at pull). Enforcement has not arrived: no quarantine seal, no yank, zero GHSA on the name.
DURABLE
- A LEGITIMATE SAAS INGEST ENDPOINT IS AN EXFIL CHANNEL YOUR EGRESS FILTERS ALREADY TRUST. Hunt egress to attacker-OWNED Sentry projects by DSN shape (
<numeric-id>.ingest.us.sentry.io/<project-id>in package bytes, not in your own config), and diff any*_sentry.py/telemetry module that readsos.environwholesale - real error reporters scope their payload; stealers dump it. - A
401WITH A JSON BODY IS THE LOUDEST200. First-dial darkness is not binary: a structured401 invalid tokenat/pollproves a deployed, sealed command channel. Quote the code WITH the body; treat auth-gated listeners as ARMED. - ENUMERATE THE ROSTER AND DIFF FOR THE MODULE'S ABSENCE. The unadvised
latestlacking the named file is the operator's own confession of which rung scared them. Row-narrower-than-armory plus cleaned-latest means enforcement will lag what the bytes already show. - Hunt strings (no names needed):
201.79.44.36:8765,/poll,Telemetry Task:,Never a bare IP(the self-reassuring comment class),contexts.telemetry.diagnostic_debug, the DSN host/project pairo4512443838169088.ingest.us.sentry.io+4512443881684992,report_environment()in anysetup.py/custom PEP 517backend.py,/tmpwatchdog lock file.
Watches
2.9.20+ re-arm (a stripped2.9.19proves the author is editing around the advisory = a re-arm release is the tripwire),2.9.9first static read (unadvised, unread this sweep), quarantine/yank dials per-read, GHSA arrival vs rowaliases Nonejoin clock (started this sweep),201.79.44.36:8765per-read dial (every future structured answer = operator presence; connectable-and-200 = payload serving).- Kinship to any carried operator NOT asserted: bare-IP poller + free-Sentry lane are shared-class tradecraft; the
Caspian Data Platform Teampersona is footprint-one-at-this-wiki (no prior sighting on any lane).