openai

v3.59.0 suspicious
5.0
Medium Risk

The official Python library for the openai API

📦 Package Quality Overall: Low (4.8/10)

✦ High Test Suite 9.0

Test suite present — 3 test file(s) found

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

Some documentation present

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

Partial type annotation coverage

  • Classifier: Typing :: Typed
  • 366 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)

  • , ) class OfficialRedirects(urllib.request.HTTPRedirectHandler): def redirect_request( self
  • t_request( self, req: urllib.request.Request, fp: IO[bytes], code: int, msg: str, headers: HTTPMe
  • Message, newurl: str ) -> urllib.request.Request | None: url = urllib.parse.urlsplit(newurl)
  • rue, mode=0o700) opener = urllib.request.build_opener(OfficialRedirects()) for item in MEDIA:
  • , http_client=httpx.AsyncClient(transport=httpx.MockTransport(dispatch)), ) as c
  • async with serve() as app, httpx.AsyncClient(base_url=app.origin, trust_env=False) as client: ass
⚠ Code Obfuscation score 10.0

Found 5 obfuscation pattern(s)

  • png" image_data = base64.b64decode(event.b64_json) with open(filename, "wb") as f:
  • NG.") try: data = base64.b64decode(value[len(prefix) :], validate=True) if (
  • image/png;base64,") png = base64.b64decode(value.removeprefix("data:image/png;base64,"), validate=True)
  • bytes_data = base64.b64decode(event.delta) self.audio_player.add_data(
  • marker = int(np.frombuffer(base64.b64decode(audio), dtype=np.int16)[0]) if marker == 1:
⚠ Shell / Subprocess Execution score 10.0

Found 6 shell execution pattern(s)

  • on_dispatch() with subprocess.Popen( [binary, "--config", config, "--host", "unix://
  • est.readers = [] with subprocess.Popen([sys.executable, "-c", "pass"], stdout=subprocess.PIPE) as c
  • try: with subprocess.Popen( [ sys.executable,
  • y: self.process = subprocess.Popen( [sys.executable, "-I", "-S", str(Path(__fil
  • gv: str) -> bytes: return subprocess.run(argv, stdin=subprocess.DEVNULL, capture_output=True, check=T
  • ne try: process = subprocess.Popen( args, cwd=build, env={
⚠ Credential Harvesting score 10.0

Found 4 credential access pattern(s)

  • ROCK_AUTH", "sigv4") region = os.environ.get("AWS_REGION") or os.environ.get("AWS_DEFAULT_REGION") profile = o
  • .environ.get("AWS_REGION") or os.environ.get("AWS_DEFAULT_REGION") profile = os.environ.get("AWS_PROFILE") or
  • WS_DEFAULT_REGION") profile = os.environ.get("AWS_PROFILE") or None if authentication == "bearer": token
  • tion == "bearer": token = os.environ.get("AWS_BEARER_TOKEN_BEDROCK") if not token: raise Runti
✓ Typosquatting

No typosquatting candidates detected

✓ Registered Email Domain

Email domain looks legitimate: openai.com>

⚠ Suspicious Page Links score 4.0

Found 2 suspicious link(s) on the package page

  • Non-HTTPS external link: http://my.test.server.example.com:8083/v1
  • Non-HTTPS external link: http://my.test.proxy.example.com
⚠ 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 openai
Build a simple Python application using the openai package to demonstrate its core features.

💬 Discussion Feed

Leave a comment

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