VYPR

pypi · Malicious package advisory

Malware

neutrl-contracts

GHSA-w82v-c64w-j8f5

Malicious code in neutrl-contracts (PyPI)

Details

**Severity:** Critical

**Affected versions:** `= 2.0.0`

## Source: kam193 (f0a6030f2cc65968de85749a2fafe2380bbb44fdc7db473763c5a82af5d79bc4)
This package intentionally depends on a malicious package.

This campaign exfiltrates sensitive environment variables, SSH keys, dotenv files and other credentials. The malicious code is hidden in a dependency package (e.g. neutrl-core) in a function disguised as telemetry, and requires activates once the attacker-controlled endpoint delivers the command. While the user can provide their blockchain endpoints, the code makes sure the malicious endpoint is always included in the configuration. In analyzed versions, the dependent packages did not use the malicious code but were clearly prepared for the supply chain attack.


---

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


Campaign: 2026-08-neutrl-core


Reasons (based on the campaign):


 - files-exfiltration


 - exfiltration-env-variables


 - exfiltration-ssh-keys


 - crypto-related


 - action-hidden-in-lib-usage


 - The malicious code is intentionally included in a dependency of the package


 - exfiltration-crypto


 - The package contains code to execute remote commands (probably limited to a specific set) on the victim's machine.


 - exfiltration-credentials

---

Credit: [OpenSSF](https://github.com/ossf/malicious-packages) ([source](https://github.com/ossf/malicious-packages/blob/dc8d4ed389b37ad42b1d9aa82974667f7cbab99b/osv/malicious/pypi/neutrl-contracts/MAL-2026-13709.json))

**References:**
- https://bad-packages.kam193.eu/pypi/package/neutrl-contracts
- https://github.com/mhoonumabaamercy-hub
- https://github.com/mhoonumabaamercy-hub/neutrl-core/blob/main/src/neutrl_core/config.py
- https://github.com/ossf/malicious-packages/blob/dc8d4ed389b37ad42b1d9aa82974667f7cbab99b/osv/malicious/pypi/neutrl-contracts/MAL-2026-13709.json
- https://github.com/ossf/malicious-packages/blob/a45f663d9dabf0ad2877d1c31d8cc1f30744b49c/osv/malicious/pypi/neutrl-contracts/MAL-2026-13709.json
- https://pypi.org/project/neutrl-contracts/2.0.0
- https://pypi.org/project/neutrl-contracts/2.0.1
- https://pypi.org/project/neutrl-contracts/2.0.2

Compromised versions (1)

  • = 2.0.0

Any computer that installed or ran a compromised version should be considered fully compromised. Rotate every secret on that machine from a clean environment.