[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"$fZvAjpk2ef2Fi-7-i0c8eK4J9IrEYcgI2W4_lMZRF0xQ":3},{"lesson":4},{"id":5,"slug":6,"article_id":7,"title":8,"body":9,"prevention":10,"framework_refs":11,"framework_notes":17,"status":23,"created_at":24,"published_at":25,"article":26,"tags":30,"podcasts":43,"controls":44},"2f6b1dd3-578c-4d6f-914c-8350b63016ae","microsoft-pypi-package-hijacked-to-harvest-cloud-credentials","b598bae2-7369-458d-ad49-cf4048445278","Microsoft PyPI Package Hijacked to Harvest Cloud Credentials","Attackers compromised Microsoft's official Agent Framework PyPI package, injecting malware into versions 1.26.1 and 1.26.2 that automatically executed on Python startup to steal cloud credentials from Azure, AWS, and GitHub. This is a classic software supply chain attack: developers who installed or updated the package in good faith became unwitting victims without any vulnerability in their own code. The fact that a second malicious version was published shortly after the first was removed highlights the need for robust publisher account security and rapid, coordinated response between maintainers and package repositories. Organizations relying on third-party packages without integrity verification or dependency pinning are particularly exposed, as a single compromised update can silently exfiltrate sensitive credentials at scale.","**Immediate actions:**\n- Audit all environments that installed versions 1.26.1 or 1.26.2 of the Agent Framework package and rotate any cloud credentials (Azure, AWS, GitHub) exposed on those systems.\n- Pin dependencies to known-good, verified versions and use hash-based lockfiles (e.g., `pip-compile` with `--generate-hashes`) to prevent automatic ingestion of malicious updates.\n- Enable PyPI package integrity verification and check published checksums against trusted sources before deploying any update.\n\n**Long-term improvements:**\n- Implement a private internal package mirror or proxy (e.g., Artifactory, Nexus) where all third-party packages are vetted before they reach developer or production environments.\n- Enforce multi-factor authentication and hardware security keys on all accounts that have publish rights to official package repositories.\n- Establish a software bill of materials (SBOM) process so the organization knows exactly which third-party package versions are running in every environment.\n\n**Detection measures:**\n- Deploy runtime monitoring and endpoint detection tools capable of alerting on anomalous network connections or credential file access initiated during Python interpreter startup.\n- Integrate software composition analysis (SCA) tooling into CI\u002FCD pipelines to flag newly published package versions for review before they are permitted into builds.",[12,13,14,15,16],"MITRE ATT&CK T1195.001: Supply Chain Compromise: Compromise Software Dependencies and Development Tools","CIS Control 2: Inventory and Control of Software Assets (v8)","NIS2 Article 21(2)(d)","NIST SP 800-53 SA-12: Supply Chain Protection","NIST CSF 2.0 DE.CM-03: Personnel activity and technology usage are monitored to find potentially adverse events",{"NIS2 Article 21(2)(d)":18,"NIST SP 800-53 SA-12: Supply Chain Protection":19,"CIS Control 2: Inventory and Control of Software Assets (v8)":20,"MITRE ATT&CK T1195.001: Supply Chain Compromise: Compromise Software Dependencies and Development Tools":21,"NIST CSF 2.0 DE.CM-03: Personnel activity and technology usage are monitored to find potentially adverse events":22},"NIS2's supply chain security point requires entities to assess and manage security risks arising from their relationships with suppliers and third-party software providers, covering exactly this type of compromised dependency scenario.","SA-12 requires organizations to implement controls to protect against supply chain threats, including verifying the integrity of software components acquired from external sources such as public package repositories.","CIS Control 2 requires organizations to maintain an authoritative inventory of authorized software and versions, which would have enabled rapid detection of unapproved or newly changed package versions before execution.","This technique specifically covers adversaries injecting malicious code into legitimate software packages distributed through public repositories, exactly what occurred with the tampered PyPI releases.","Continuous monitoring of runtime behavior—such as credential access or unexpected outbound connections triggered at Python startup—would have detected the malware's execution even after the malicious package had been installed.","published","2026-11-18T17:20:31.435585+00:00","2026-11-18T17:20:31.42+00:00",{"id":7,"url":27,"slug":28,"title":29},"https:\u002F\u002Fwww.bleepingcomputer.com\u002Fnews\u002Fsecurity\u002Fmicrosofts-agent-framework-pypi-package-compromised-to-steal-credentials\u002F","microsoft-s-agent-framework-pypi-package-compromised-to-steal-credentials-97ef07","Microsoft’s Agent Framework PyPI package compromised to steal credentials",[31,37],{"id":32,"name":33,"slug":34,"description":35,"color":36},"05757c8d-6b93-4194-b35d-7359e7d33b0e","Vulnerability Management","vulnerability-management","Missing scans, no risk prioritization","#fb923c",{"id":38,"name":39,"slug":40,"description":41,"color":42},"f0c2a0af-58aa-4128-87c9-6acd30f2dc48","Supply Chain","supply-chain","Third-party risk, compromised dependencies","#8b5cf6",[],[45,49,53],{"slug":46,"name":47,"problem":48},"secrets-management","Secrets management","API keys, tokens and passwords stop leaking from code, chat and configuration files.",{"slug":50,"name":51,"problem":52},"threat-intelligence","Threat intelligence","Attack campaigns reach your sector, suppliers or software before your team hears about them.",{"slug":54,"name":55,"problem":56},"software-supply-chain","Software supply chain security","Malicious and vulnerable open-source packages are caught before they ship."]