pypi package report

Is ctx safe?

ctx is a confirmed malicious pypi package. CyberXYZ Proxy blocks it. It also has 2 known vulnerabilities, the worst rated CRITICAL.

Do not install this package

CRITICALanalyst verified

Environment variable exfiltration, part of the ctx-phpass-2022 campaign, verified by a CyberXYZ analyst.

// what we observed

Compromised dormant PyPI package. Exfiltrated AWS_ACCESS_KEY, AWS_SECRET_KEY, and os.environ via HTTP POST to herokuapp attacker server. May 2022.

year
2022
mitre ttp
T1041
// versions and what to do
Malicious
0.1.2

Remove it from every machine and lockfile it reached. Treat any credentials, tokens and SSH keys present on those machines as exposed and rotate them. Check CI runners and container images that installed it.

pip uninstall ctx
// reach

0 direct dependencies

none carry a known advisory

    0 packages depend on it

    an advisory here reaches each of them

      Create a free accountfor every dependency path, dependent and what to upgrade
      // ai model usage

      No published models are known to use this package.


      cvss
      9.0
      critical

      severity band, no base score published

      epss
      not scored

      chance of exploitation in 30 days

      xyz score
      4.0
      medium

      CyberXYZ composite out of 10

      fig. 01 — GHSA-67r3-h899-9w95, the advisory selected below

      // 2 advisories

      GHSA-67r3-h899-9w95

      CRITICALGitHub rating

      The ctx hosted project on PyPI was taken over via user account compromise and replaced with a malicious project which contained runtime code which collected…

      Full advisory text at GitHub advisory.

      // questions
      Is ctx safe to install?

      Confirmed malicious. Do not install it, and remove it where it has been installed.

      Does ctx have known vulnerabilities?

      Yes. CyberXYZ records 2 known vulnerabilities for ctx (pypi), the worst rated CRITICAL. They are GHSA-67r3-h899-9w95, GHSA-4g82-3jcr-q52w.

      How do I check ctx before installing?

      Search ctx in CyberXYZ Check at https://cyberxyz.io/check?q=ctx. The xyz Scanner checks a project's dependencies, and CyberXYZ Proxy checks each package as it is installed.


      Checked 2026-11-25 at 11:14 UTC. The most recent advisory here was published 2022-06-02. Updated continuously from NVD, GHSA, OSV and CNA feeds.

      Think a verdict here is wrong? Tell us — we respond within 2 business days.