Microsoft’s AI Agent Framework Package Compromised on PyPI to Steal Cloud Credentials
A compromised Microsoft AI package on PyPI installed malicious code to steal cloud credentials and developer secrets from users.
Overview
Microsoft's AI agent-framework Python package was compromised on November 17, 2026, with malicious versions 1.26.1 and 1.26.2 distributing a credential stealerMalware built to quietly copy saved passwords, browser cookies, and wallet keys from an infected device. The incident affects cloud identities, developer secretsPrivate credentials used by software, such as API keys, database passwords, and encryption keys, and CI/CDThe automated pipeline that tests, builds, and deploys software whenever developers push new code environments by using trusted software packages as entry points into infrastructure. The attack relies on executableA compiled program file that an operating system can load into memory and run directly import statements inside .pth files processed during normal Python initialization, allowing the stealer to execute when Python starts in an affected environment. Both releases installed Python startup hooks that collected credentialsThe login details, such as a username and password or key, that prove who an account belongs to and transmitted them to an attacker-controlled webhookAn automated HTTP message that one web service sends to another URL whenever a specific event happens endpointAny user device or server, such as a laptop, phone, or workstation, connected to a network. The payloadsThe part of an attack or malware file that carries out the harmful action on the target targeted Azure, Azure DevOps, GitHub Actions, and local configurationA text file that stores settings, network addresses, and options for how a program or server runs stores, combining conventional secret harvesting with requests for fresh cloud identity tokensA short-lived digital pass that a server gives a logged-in user or app. Developers using these specific package versions in their environments are exposed to the theft of their authenticationVerifying that a user, device, or program really is who it claims to be before allowing access material and cloud identity tokens.
Terms in this story
- credential stealer
- Malware built to quietly copy saved passwords, browser cookies, and wallet keys from an infected device. Victims often download an infostealer through a fake game crack or malicious ad, and the stolen login cookies are then sold to ransomware crews on criminal markets. Security+ objective 2.4 lists the term
- secrets
- Private credentials used by software, such as API keys, database passwords, and encryption keys. Software teams use vault tools to keep secrets out of source code because anyone who finds a leaked secret in a public repository can log right in to the company's cloud services.
- CI/CD
- The automated pipeline that tests, builds, and deploys software whenever developers push new code. Attackers love to compromise a company's CI/CD pipeline because that build server holds cloud keys and can inject malicious code directly into official software releases. Security+ objective 4.7 lists the term
- executable
- A compiled program file that an operating system can load into memory and run directly. Most mail servers block attached executable files by default because double-clicking a compiled program lets it run whatever instructions the author wrote.
- Credentials
- The login details, such as a username and password or key, that prove who an account belongs to. Many breaches begin when attackers steal an employee's login credentials through a fake website and sign in to the company network as if they belonged there. Security+ objective 4.6 lists the term
- webhook
- An automated HTTP message that one web service sends to another URL whenever a specific event happens. Legitimate apps use a webhook to post chat alerts when code is updated, while malware authors often abuse chat webhooks to send stolen passwords straight to their own channels.
- endpoint
- Any user device or server, such as a laptop, phone, or workstation, connected to a network. Security teams install monitoring tools on every company endpoint because a single employee laptop infected at home can carry malware onto the corporate network.
- payloads
- The part of an attack or malware file that carries out the harmful action on the target. A phishing email and an exploit are only the delivery steps, while the payload is the ransomware or spyware that actually runs once the computer is compromised.
- configuration
- A text file that stores settings, network addresses, and options for how a program or server runs. Attackers who gain read access to a server look for its configuration file first because it often contains database passwords, API keys, and internal server paths.
- tokens
- A short-lived digital pass that a server gives a logged-in user or app. After you sign in once, your browser or app presents a token on each request, and if malware steals that token the attacker can act as you without knowing your password. Security+ objective 4.6 lists the term
- authentication
- Verifying that a user, device, or program really is who it claims to be before allowing access. When you enter a password, scan a fingerprint, or present a key, authentication checks your identity before a server decides what your account is allowed to do.
- Cloud Credentials
- Access keys, tokens, or login secrets that grant control over cloud servers and storage. Attackers scan public code repositories and developer laptops for cloud credentials so they can spin up cryptominers or download company databases.
This page is a short description made for this site. The article itself, with its author's name and its own link, is on the GBHackers website. Cite the article, not this page.
Read the full article on GBHackers (opens in a new tab)
Course connections
Each line below connects this story to a Security+ objective (a skill on CompTIA's Security+ exam, a common first cybersecurity certification), a CYBR 101 week, or a cybersecurity job, and quotes the words that made the connection.
- Kind of story: Breach or attack
"Python package was compromised on November 17..." Found by reading the article; these exact words are in it - Security+ 2.2 Explain common threat vectors and attack surfaces.
"Microsoft’s AI Agent Framework Package Compromised on PyPI to Steal Cloud Credentials..." Found in the headline - Security+ 2.3 Explain various types of vulnerabilities.
"......incident extends a pattern of AI dependency supply-chain compromises, where trusted software packages become entry..." Found in the opening sentences - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"......versions 1.26.1 and 1.26.2 distributing a credential stealer targeting cloud identities, developer secrets, and CI/CD..." Found in the opening sentences - Security+ 4.6 Given a scenario, implement and maintain identity and access management.
"......Package Compromised on PyPI to Steal Cloud Credentials..." Found in the headline - Security+ 4.7 Explain the importance of automation and orchestration related to secure operations.
"......stealer targeting cloud identities, developer secrets, and CI/CD environments. The incident extends a pattern of..." Found in the opening sentences - Security+ 4.8 Explain appropriate incident response activities.
"......identities, developer secrets, and CI/CD environments. The incident extends a pattern of AI dependency supply-chain..." Found in the opening sentences - Security+ 5.3 Explain the processes associated with third-party risk assessment and management.
"......incident extends a pattern of AI dependency supply-chain compromises, where trusted software packages become entry..." Found in the opening sentences - CYBR 101 week 2: the CIA triad, threat actors, risk and CVEs
"......become entry points into infrastructure holding sensitive authentication material." Found in the opening sentences - CYBR 101 week 6: AI, how it is attacked, and what it does for attackers and defenders
"Microsoft’s AI Agent Framework Package Compromised on PyPI to..." Found in the headline - CYBR 101 week 9: malware, indicators and how detection works
"......versions 1.26.1 and 1.26.2 distributing a credential stealer targeting cloud identities, developer secrets, and CI/CD..." Found in the opening sentences
How a story is connected to the course, and every objective, week and job role
Same story at other outlets
- Credential stealer slipped into Microsoft’s official Python agent framework
- Microsoft’s Agent Framework PyPI package compromised to steal credentials
- Attackers hijack Microsoft’s agent-framework package to steal Azure and CI credentials
- Microsoft agent-framework PyPI hijack: inside the stealer and the repos that command AI agents
- Attackers Compromise Microsoft's Agent Framework PyPI Package to Steal Cloud Credentials
- Microsoft’s Agent Framework PyPI Package Hacked to Steal Azure and GitHub Credentials
- Two malicious agent-framework releases hit PyPI in 33 minutes