Microsoft’s Agent Framework PyPI Package Hacked to Steal Azure and GitHub Credentials
Hackers released malicious versions of a Microsoft package on PyPI that could steal Azure and GitHub credentials during normal Python startup.
Overview
HackersA person who explores and manipulates computer systems, either as a criminal intruder or a security researcher uploaded two malicious versions of Microsoft's agent-framework package to the Python Package Index on November 17, 2026. These versions, numbered 1.26.1 and 1.26.2, contained a credential stealerMalware built to quietly copy saved passwords, browser cookies, and wallet keys from an infected device that could run during normal Python startup even if an application never imported the framework. The malware targeted Azure identities, GitHub credentialsThe login details, such as a username and password or key, that prove who an account belongs to, and secretsPrivate credentials used by software, such as API keys, database passwords, and encryption keys used in automated builds. Wiz traced the first upload to 20:35 UTC and the second to about 21:08 UTC, with both versions removed by 21:30 UTC. The package had about 41,000 downloads per week, indicating its overall use rather than the number of victims. The malicious releases appeared under the legitimate Microsoft-associated PyPI publisher, not under a lookalike name.
Terms in this story
- Hackers
- A person who explores and manipulates computer systems, either as a criminal intruder or a security researcher. In news headlines, the word hacker usually means an unauthorized intruder, though the security community also uses it for researchers who find and fix flaws.
- 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
- 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
- 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.
- 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.
- script
- A short program written in an interpreted language to automate tasks in a browser, shell, or application. System administrators write scripts to automate daily maintenance, while attackers often use a script to download malware and disable security settings without dropping a compiled file.
- telemetry
- Automated logs and status measurements that software sends back about how a system is running. Security teams inspect endpoint and network telemetry, such as which programs launched and which servers they contacted, to spot an intrusion early. Security+ objective 4.4 lists the term
- malicious code
- Software built to steal data, spy on users, lock files, or take control of a computer. News reports use malware as the umbrella term for viruses, ransomware, spyware, and trojans that criminals install on phones, laptops, or servers without permission. Security+ objective 2.4 lists the term
- runtime
- The environment in which a program executes, or the period of time while the program is actively running. A flaw in a container or language runtime can let a program escape its isolation, and runtime security tools watch what a program actually does in memory while it runs.
- repository
- A central storage place where a software project's source code, change history, and configuration files are kept. Software teams collaborate by pushing code to a shared repository, and attackers scan public repositories for accidentally committed API keys or try to poison popular projects.
- environment variables
- A named setting stored in a program's running environment that often holds file paths or secret keys. Cloud apps frequently store database passwords and API tokens in environment variables, so an attacker who tricks a server into printing its environment variables can steal those secrets.
- CLI
- A text-based terminal interface where users type commands instead of clicking buttons in a graphical window. Software teams and administrators manage cloud servers and code repositories through a CLI because text commands are fast and easy to automate in scripts.
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 Cyber Security News website. Cite the article, not this page.
Read the full article on Cyber Security News (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
"...microsofts agent framework pypi package hacked..." Found by reading the article; these exact words are in it - Who is affected: "Azure and GitHub Credentials..."
Copied word for word from the article - Security+ 2.2 Explain common threat vectors and attack surfaces.
"Microsoft’s Agent Framework PyPI Package Hacked to Steal Azure and GitHub..." Found in the headline - Security+ 2.4 Given a scenario, analyze indicators of malicious activity.
"......Versions 1.26.1 and 1.26.2 contained a credential stealer that could run during normal Python startup,..." Found in the opening sentences - Security+ 4.6 Given a scenario, implement and maintain identity and access management.
"......Package Hacked to Steal Azure and GitHub Credentials..." Found in the headline - Security+ 4.8 Explain appropriate incident response activities.
"......November 17, 2026. Versions 1.26.1 and 1.26.2 contained a credential stealer that could run during..." Found in the opening sentences - CYBR 101 week 8: networks, ports, DNS and packets
"......during normal Python startup, even if an application never imported Agent Framework." Found in the opening sentences - CYBR 101 week 9: malware, indicators and how detection works
"......Versions 1.26.1 and 1.26.2 contained a credential stealer that could run during normal Python startup,..." Found in the opening sentences - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Knowledge of malware triage.
"Wiz traced the first upload to 20:35 UTC..." Found by reading the article; these exact words are in it - Job skill (from the U.S. Department of Defense list of cybersecurity jobs): Analyze identified malicious activity to determine weaknesses exploited, exploitation methods, effects on system and information.
"...credential stealer that could run during normal Python startup..." Found by reading the article; these exact words are in it
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 AI Agent Framework Package Compromised on PyPI to Steal Cloud Credentials
- Two malicious agent-framework releases hit PyPI in 33 minutes