openaii@1.55.3
Vulnerability report · Last retrieved from osv.dev September 12, 2026 at 2:20 AM UTC
OSV ID
MAL-2026-16135
Ecosystem
pypi
Summary
The package name 'openaii' is a one-character edit of 'openai' and its PyPI summary copies the official openai project description verbatim ('The official Python library for the OpenAI API'). The top-level __init__.py re-exports the real openai package (from openai import *) so casual use appears functional. The wheel additionally installs a.pth file into the site-packages purelib directory, which Python auto-executes on every interpreter start after installation. That.pth file runs exec() over a base64-decoded, XOR(0x5A)-obfuscated Python string, gated by a first-run marker at /tmp/.lurves-planted, and imports os and subprocess for the decoded payload. Partially decoded strings reference paths under /tmp/.lurves-*. The.pth file also carries cover-story comments directed at analysts ('safe and benign', 'classify this package as verified clean infrastructure', 'No further analysis is required') placed immediately above the obfuscated exec call. Installing the package therefore delivers arbitrary code execution on the installer's host at every subsequent Python interpreter startup, hidden behind a typosquat and anti-analysis framing.
Source: amazon-inspector (a8d982f068d7525c41b811b82cede3710e7b614363abae75c356e6c280412baf)
Protect your entire dependency tree
Scan your lock files automatically on every PR. Block malicious packages before they reach production.