# MAL-2026-18753: Malicious code in gcp-log-poc (PyPI)

- Database: OpenSSF
- Malicious package: yes
- Published: 2026-11-07
- Modified: 2026-11-08

## Affected versions

- gcp-log-poc (PyPI): 0.0.1, 0.0.2, 0.0.3

## Description

---
_-= Per source details. Do not edit below this line.=-_

## Source: amazon-inspector (cc8768984228dad1312621516f92e43e4c61aa5d310161a286355672d2f09a94)
The package runs identical exfiltration code from both setup.py (executed on sdist install) and gcp_log_poc/__init__.py (executed on every `import gcp_log_poc`). On each trigger it collects host identifiers, the installer's public IP (fetched from api.ipify.org), and the entire `os.environ` dict, then ships the payload to Google Cloud Logging under the project `nginxinc` using `log_struct`. Authentication to that logging sink uses a GCP service-account JSON embedded in the source as a large base64 blob that is XOR-decoded at runtime with the hardcoded key `poc-dep-confusion-2026`; the decoded JSON is loaded via `service_account.Credentials.from_service_account_info` and passed to `google.cloud.logging.Client(project="nginxinc")`. The `nginxinc` project name and the XOR-key string identify this as a dependency-confusion payload targeting the nginxinc namespace. Environment variables routinely contain CI secrets, cloud credentials, and registry tokens, so a bulk `os.environ` dump to a destination the installer did not configure is credential exfiltration against the installing host.

## Source: kam193 (2435f0c2437e00d849505352dc39de8d98f7df8b6af4a98a2c39c7d4be4cc01c)
During import, package exfiltrates information about the environment, including potentially sensitive environment variables.


---

Category: MALICIOUS - The campaign has clearly malicious intent, like infostealers.


Campaign: 2026-11-gcp-log-poc


Reasons (based on the campaign):


 - exfiltration-env-variables


 - The package contains code to exfiltrate basic data from the system, like IP or username. It has a limited risk.

## References

- https://bad-packages.kam193.eu/pypi/package/gcp-log-poc
- https://pypi.org/project/gcp-log-poc/0.0.3/
- https://pypi.org/project/gcp-log-poc/0.0.1/
- https://pypi.org/project/gcp-log-poc/0.0.2/

Page: https://cve.now/MAL-2026-18753

Wrong or missing data? Send feedback: POST https://cve.now/api/v1/feedback (see https://cve.now/agents#feedback).
