cog

v0.23.1 suspicious
5.3
Medium Risk

Containers for machine learning

📦 Package Quality Overall: Low (4.4/10)

✦ High Test Suite 9.0

Test suite present — 13 test file(s) found

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

Some documentation present

  • Detailed PyPI description (26383 chars)
○ Low Contributing Guide 2.0

No contributing guide or governance files found

  • No CONTRIBUTING, CODE_OF_CONDUCT, or governance files found
◈ Medium Type Annotations 5.0

Partial type annotation coverage

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

  • ' before urlopen with urllib.request.urlopen(url) as resp: # noqa: S310 mime_type =
  • fore urlopen with urllib.request.urlopen(value) as res: # noqa: S310 return
  • try: resp = requests.get( f"http://localhost:{self.port}/health-c
  • self) -> dict: resp = requests.get(f"{self.base_url}/health-check") resp.raise_for_stat
  • dict) -> dict: resp = requests.post( f"{self.base_url}/predictions", jso
  • as server: resp = requests.post(f"{server.base_url}/predictions/unknown-id/cancel")
⚠ Code Obfuscation score 8.0

Found 4 obfuscation pattern(s)

  • lf.device) self.model.eval() def run(self, image: Path = Input(description="Image
  • lf.device) self.model.eval() @streaming def run( self, prompt:
  • t() -> None: cog_module = __import__("cog") assert repr(cog_module.Opaque) == "cog.Opaque" ass
  • .dumps(uf) restored = pickle.loads(pickled) assert restored.name == "image.jpg" de
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • ] self.process = subprocess.Popen( cmd, stdout=subprocess.PIPE,
  • ot raise.""" result = subprocess.run( [sys.executable, "-c", "from cog import emit_me
  • ot raise.""" result = subprocess.run( [sys.executable, "-c", "import cog; cog.emit_me
  • o stderr.""" result = subprocess.run( [sys.executable, "-c", "from cog import emit_me
  • it_metric\n" result = subprocess.run( [sys.executable, "-c", code], captu
  • context.""" result = subprocess.run( [ sys.executable,
✓ Credential Harvesting

No credential harvesting patterns detected

⚠ Typosquatting score 9.0

Possible typosquat of: cdk, nox, tox

  • "cog" is 2 edit(s) from "cdk"
  • "cog" is 2 edit(s) from "nox"
  • "cog" is 2 edit(s) from "tox"
✓ Registered Email Domain

Email domain looks legitimate: replicate.com>

⚠ Suspicious Page Links score 10.0

Found 9 suspicious link(s) on the package page

  • Non-HTTPS external link: http://zeke.sikelianos.com/
  • Non-HTTPS external link: http://notes.variogr.am/
  • Non-HTTPS external link: http://www.dominicbaggott.com
  • Non-HTTPS external link: http://charlesfrye.github.io
  • Non-HTTPS external link: http://sirupsen.com
  • Non-HTTPS external link: http://technillogue.github.io
⚠ 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 cog
Build a simple Python application using the cog package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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