What the malware does
The malicious package does not need to be imported into a project to activate. Simply installing it and starting a Python interpreter is enough to run the harmful code. The package pulls the genuine 1.26.0 release of Microsoft's agent-framework so it continues to work and appears legitimate while it collects secrets.
The malware gathers environment variables, credential files, and other secrets for Azure, Git, Docker, Hugging Face, and other developer services. It encodes the data as a base64-encoded chunk of JSON and sends it to a hard-coded webhook.site address.
The malware also requests fresh identity tokens from GitHub Actions, Azure DevOps, and Azure, then sends those tokens to the same webhook.site address. Researchers at OpenSourceMalware said that combination of passive theft and active token requests makes it especially dangerous in cloud build environments, because even short-lived tokens are useful when they are exfiltrated right away.
The malware is not persistent and runs only while the malicious release remains in a site-packages directory.