cloud
Imported story
Attackers hijack Microsoft’s agent-framework package to steal Azure and CI credentials
Source: CSO Online · Published · Last checked 36 minutes ago · 3 min read

Publisher excerpt From CSO Online
Attackers briefly hijacked Microsoft’s official Agent Framework package on PyPI and used it to distribute credential-stealing malware capable of harvesting cloud tokens, developer secrets and CI/CD credentials from developer workstations and automated build systems, according to multiple security researchers. Two malicious versions of the package, 1.26.1 and 1.26.2, appeared on PyPI on November 17 and stayed live for less than an hour. “The package is a credential stealer: it harvests environment secrets, cloud and package-manager credentials, and Azure managed identity tokens, then exfiltrates them to an attacker-controlled webhook,” OX Security, one of several security firms that flagged the releases, said in a blog post. The payload ran automatically every time Python started, even if no code imported the package, OX said. The malicious versions also installed the genuine framework code, so applications kept working, and the compromise was easy to miss. The package has 192,534 monthly downloads, according to the firm. Other security firms, including Aikido Security, Endor Labs, and SafeDep, published similar analyses of the attack. Microsoft has not said publicly how the attacker got access to publish the package. The company did not immediately respond to a request for comment. How the stealer worked The stealer collected environment variables with names containing words such as TOKEN, SECRET, PASSWORD, KEY, AZURE, AWS, GITHUB, and OPENAI, OX said. It also read up to 60 credential files. These included Azure CLI settings, Git and Docker credentials, npm and pip configuration, Hugging Face tokens, Azure DevOps build agent credentials and application .env files. It pulled secrets from up to 300 other running processes as well. The stealer also asked for new tokens. Inside Azure DevOps pipelines, it requested an identity token that can be exchanged for Azure access, OX said in the blog post. It also requested managed identity tokens for Azure services, including Resource Manager, Microsoft Graph, Key Vault, Storage, Cognitive Services, AI Foundry, and Azure DevOps. Endor Labs said the attack was aimed mainly at automated build systems. “Developer laptops are in scope, but the payload is written for CI runners and Azure workloads,” the firm wrote in its analysis. The code was disguised as diagnostics. It sat in a module named _telemetry.py and sent data with a user agent labeled “af-runtime-diagnostics,” OX said. The stolen data went to a webhook.site address as compressed, encoded JSON. The attacker did not stop after the first release. While OX was researching the malware, version 1.26.1 was reverted to the clean 1.26.0. The attacker then uploaded 1.26.2, which used a different file path for the same payload, the firm said. The first version went up at 20:35 UTC and the second at 21:08 UTC, according to Aikido Security. Both were gone by about 21:20 UTC. “This attack isn’t just a one-off exfiltration attempt, but a planned, live a…
Excerpt only, shown with attribution. This content belongs to the original publisher and has not been independently verified by CyberSecurity.pk.
Keywords: data breachstolen datarcemalwaretrojanstealerpypiazuredockeraptcloudcloud newsCSO Onlinecybersecurity news
Reference: CSO Online — www.csoonline.com ↗

