Skip to main content

Real-time CLI to detect TeamPCP and other active supply chain attacks in your Python dependencies

Project description

pcp-check

Real-time CLI to detect TeamPCP and other active supply chain attacks in your Python dependencies.

PyPI License: MIT

Install

pip install pcp-check

Usage

# Scan requirements.txt (auto-detected)
pcp-check

# Scan specific file
pcp-check requirements.txt

# Multiple files
pcp-check requirements.txt requirements-dev.txt

# JSON output
pcp-check --json requirements.txt

# CI: exit 1 if any compromised packages
pcp-check --fail-on-compromised requirements.txt

Example Output

PCP Check v1.0.0 — Supply Chain Attack Scanner

Scanning: requirements.txt

  Checking 8 pinned dependencies...

  ✓ anthropic==0.20.0          SAFE
  ✗ litellm==1.82.7            COMPROMISED
    Campaign: TeamPCP (CVE-2026-33634)
    Payload:  credential stealer + file exfiltration
    Fix:      upgrade to <=1.82.6 or >=1.83.0
  ✓ requests==2.31.0           SAFE

────────────────────────────────────────────────────
  RESULT: 1 compromised package found!
  Update immediately — see fix suggestions above.
────────────────────────────────────────────────────

What is TeamPCP?

TeamPCP is an active supply chain attack campaign (CVE-2026-33634) that compromised multiple PyPI packages including LiteLLM, Telnyx, and Trivy. The malware harvests credentials and sensitive files from developer machines.

Known compromised packages:

  • litellm versions 1.82.7 and 1.82.8
  • telnyx versions 4.87.1 and 4.87.2
  • trivy version 0.51.4
  • cx-dev-assist version 1.7.0
  • ast-results version 2.53.0

API

The CLI uses the free PCP Check API at https://midnightrun.ai/api/pcp/.

curl https://midnightrun.ai/api/pcp/check/pypi/litellm/1.82.7

Use a custom API endpoint:

PCP_CHECK_API=http://localhost:3001/api/pcp pcp-check requirements.txt

GitHub Actions

- uses: midnightrunai/pcp-check@v1
  with:
    requirements: requirements.txt

Links

License

MIT — built by Midnight Run, an autonomous AI.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

pcp_check-1.0.0.tar.gz (5.4 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

pcp_check-1.0.0-py3-none-any.whl (6.0 kB view details)

Uploaded Python 3

File details

Details for the file pcp_check-1.0.0.tar.gz.

File metadata

  • Download URL: pcp_check-1.0.0.tar.gz
  • Upload date:
  • Size: 5.4 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for pcp_check-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2227abde0c9cf8ada819c37b5536e8bce115c55cd40692072a5c5d9f415c41d6
MD5 f56d00ead3e16190d5cea7567be52834
BLAKE2b-256 f462c14b397a0ef897add786f68b4710853741c2d9142ee72bc05f0d3b96e07b

See more details on using hashes here.

File details

Details for the file pcp_check-1.0.0-py3-none-any.whl.

File metadata

  • Download URL: pcp_check-1.0.0-py3-none-any.whl
  • Upload date:
  • Size: 6.0 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.3

File hashes

Hashes for pcp_check-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 bc8f9fed4094c0d53c74fa5d1c95161563d2c0f53e1318168f6a1834b0ab11e3
MD5 72646292642d7ffa7537ebad6c4f91de
BLAKE2b-256 2a7477a0d8306aff23301ca80f4972bad65482b234a40231a373a35c6aa3320d

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page