Malicious Code Exfiltration in awareness-demo-pkg: A Security Threat
Summary
MAL-2026-1044: Malicious code in awareness-demo-pkg (PyPI). Affects awareness-demo-pkg versions 0.1. No fix is published. How to fix ↓
Check if this vulnerability affects your application
Upload a manifest or SBOM and we'll show whether you're affected, plus every other risky package in the same scan.
No signup required · Results in about 60 seconds
Background
The awareness-demo-pkg is a Python package available on PyPI, designed for demonstration purposes. It is intended to showcase certain functionalities but has been found to contain malicious code. This package is particularly concerning as it can exfiltrate sensitive information from the host system, such as IP addresses and usernames, without the user's consent.
Vulnerability Detail
The vulnerability originates from the package's design, which overrides the install command in setup.py to execute malicious code during installation. This code is capable of exfiltrating basic data from the system, posing a risk to user privacy and security. The malicious behavior is triggered upon installation, making it a significant threat for users who may unknowingly install the package.
How To Fix
This package is malicious. Remove it and rotate any credentials it could have accessed.
pip uninstall awareness-demo-pkg
If it arrived as a transitive dependency, remove the package that pulled it in, then reinstall.
Tip — Not sure whether your app is affected? Vulert can check the versions your app actually runs. Scan free →
Workaround
As a workaround, users can manually inspect the package code before installation to ensure it does not contain any malicious scripts. Additionally, consider using virtual environments to isolate package installations and limit potential damage.
Conclusion
The awareness-demo-pkg poses a significant security risk due to its malicious code that exfiltrates sensitive information. Users should refrain from using this package and monitor their systems for any signs of compromise. Utilizing tools like Vulert can help in identifying and mitigating such vulnerabilities effectively.
See every vulnerability recorded for awareness-demo-pkg →
FAQ
awareness-demo-pkg is a Python package available on PyPI, primarily intended for demonstration purposes.
The package exfiltrates sensitive information such as IP addresses and usernames from the host system during installation.
You can use Vulert's playground at Vulert Scanner to check if your application is affected by this vulnerability without needing to sign up.
If you have installed awareness-demo-pkg, it is recommended to uninstall it immediately using 'pip uninstall awareness-demo-pkg' and monitor your system for any unusual activity.
Yes, Vulert provides real-time monitoring and alerts for open-source vulnerabilities using just the Pipfile.lock, allowing you to stay informed about potential threats.