{"id":10501,"date":"2026-11-20T03:10:04","date_gmt":"2026-11-20T03:10:04","guid":{"rendered":"https:\/\/cybersecurityinfocus.com\/?p=10501"},"modified":"2026-11-20T03:10:04","modified_gmt":"2026-11-20T03:10:04","slug":"a-single-pull-request-could-have-handed-attackers-the-keys-to-microsofts-software-supply-chain","status":"publish","type":"post","link":"https:\/\/cybersecurityinfocus.com\/?p=10501","title":{"rendered":"A single pull request could have handed attackers the keys to Microsoft\u2019s software supply chain"},"content":{"rendered":"<div>\n<div class=\"grid grid--cols-10@md grid--cols-8@lg article-column \">\n<div class=\"col-12 col-10@md col-6@lg col-start-3@lg\">\n<div class=\"article-column__content\">\n<div class=\"container\"><\/div>\n<p class=\"wp-block-paragraph\">The most dangerous actor in a software supply chain may now be an automated script with powerful credentials and no idea where it\u2019s sending them.<\/p>\n<p class=\"wp-block-paragraph\">Researchers from pen-testing company Cycode have discovered a now patched critical zero-click supply chain <a href=\"https:\/\/www.csoonline.com\/article\/4250261\/vulnerability-management-the-cybersecurity-industry-is-still-solving-the-wrong-problem.html\" target=\"_blank\" rel=\"noopener\">vulnerability<\/a> in the open-source Windows Package Manager (WinGet), which sits on billions of devices worldwide.<\/p>\n<p class=\"wp-block-paragraph\">A single pull request could have tricked Microsoft\u2019s internal tooling into freely handing over a moderator\u2019s GitHub access token, with no phishing, no malware, no moderator clicking or approval required.<\/p>\n<p class=\"wp-block-paragraph\">There is currently no evidence that the flaw has been exploited in the wild. But it serves as a cautionary tale for enterprises that the automation they trust is becoming an attacker entry point, and package repositories are particularly enticing targets.<\/p>\n<p class=\"wp-block-paragraph\">\u201cPackage registries have become the highest-profile target in the software supply chain,\u201d <a href=\"https:\/\/cycode.com\/blog\/?by=moriel-harush\" target=\"_blank\" rel=\"noopener\">Moriel Harush<\/a>, Cycode security research lead, wrote in a <a href=\"https:\/\/cycode.com\/blog\/winget-zero-click-supply-chain-vulnerability\/\" target=\"_blank\" rel=\"noopener\">blog post<\/a>. \u201cCompromise a single maintainer, and you reach everyone who trusts them. Compromise the gatekeepers, and you reach the entire ecosystem.\u201d<\/p>\n<h2 class=\"wp-block-heading\">Whatever the employee can do, the attacker can do<\/h2>\n<p class=\"wp-block-paragraph\">WinGet is Microsoft\u2019s free, open source command line tool that helps users discover, install, upgrade, configure, and remove apps. It exists on more than 1.4 billion active devices running Windows 10, Windows 11, and Windows Server 2025.<\/p>\n<p class=\"wp-block-paragraph\">WinGet\u2019s catalog is a public <a href=\"https:\/\/www.csoonline.com\/article\/4248672\/thousands-of-github-repos-hit-with-secret-stealing-malware.html\" target=\"_blank\" rel=\"noopener\">GitHub repository<\/a>, and its gatekeeper, so to speak, is a small, official group of Microsoft moderators who review a constant stream of community pull requests and proposed changes. By default, WinGet installations on every Windows machine trust the actions those keepers take.<\/p>\n<p class=\"wp-block-paragraph\">The hole is in the moderators\u2019 own internal triage tool. This PowerShell helper attached the moderator\u2019s secret GitHub Personal Access Token (PAT) to any HTTP request, without checking who owned that address.<\/p>\n<p class=\"wp-block-paragraph\">This meant an attacker merely had to supply an address. Theoretically, if they opened a pull request and pointed an InstallerURL software installation package at their own server, \u201cthe trap was set,\u201d Harush explained.<\/p>\n<p class=\"wp-block-paragraph\">Microsoft\u2019s automated Azure DevOps validation pipeline would then attempt to fetch the URL, but the attacker\u2019s server would intentionally return an error. This added a validation error label to the pull request.<\/p>\n<p class=\"wp-block-paragraph\">The moderator\u2019s internal script would respond to that label by running a CheckInstaller routine which would send a HEAD request to the attacker via an authenticated HTTP helper, whose job is to automatically attach credentials or tokens to outgoing HTTP requests and handle <a href=\"https:\/\/www.csoonline.com\/article\/4042464\/enterprise-passwords-becoming-even-easier-to-steal-and-abuse.html\" target=\"_blank\" rel=\"noopener\">authorization errors<\/a>. Then all the attacker had to do was check their logs and extract the moderator\u2019s official GitHub token, which was \u201ccasually\u201d handed over.\u00a0<\/p>\n<p class=\"wp-block-paragraph\">But the token is not merely a repository-scoped credential, it is a full identity credential, meaning whatever that Microsoft employee can do on GitHub, the token can do.<\/p>\n<p class=\"wp-block-paragraph\">Harush explained: \u201cIt is like a courier stapling your house key to every parcel that has your name on it, because most of them are destined for your own address.\u201d But if a stranger uses your name and changes the address to one they control, \u201cyour key is delivered directly to them.\u201d<\/p>\n<p class=\"wp-block-paragraph\">Armed with this key to Microsoft\u2019s internal environment, an attacker could push malicious manifests, approve their own pull requests, and slip in backdoored installers to 14,000 exposed packages, all under a highly trusted, official Microsoft badge.<\/p>\n<p class=\"wp-block-paragraph\">They could also access and write to every other Microsoft repository the moderator had access to, modify GitHub Actions workflows across those repositories to achieve <a href=\"https:\/\/www.csoonline.com\/article\/4159889\/rce-by-design-mcp-architectural-choice-haunts-ai-agent-ecosystem.html\" target=\"_blank\" rel=\"noopener\">remote code execution<\/a> (RCE) and exfiltrate corporate secrets.<\/p>\n<p class=\"wp-block-paragraph\">There is a precondition for this attack: At least one moderator has to have the triage tracker running in a continuous background loop, which it is designed to do as it waits for work.<\/p>\n<h2 class=\"wp-block-heading\">Underlying model \u2018fundamentally flawed\u2019<\/h2>\n<p class=\"wp-block-paragraph\">Harush pointed out that Microsoft\u2019s C# version of the tool, in the same directory, did not share the flaw; as such, it would have offered safer authentication. Microsoft has since <a href=\"https:\/\/github.com\/microsoft\/winget-pkgs\/pull\/456300\" target=\"_blank\" rel=\"noopener\">patched the PowerShell vulnerability<\/a>, safely scoping the authentication mechanism to ensure that users\u2019 tokens are only attached when a request host is an authorized GitHub endpoint, such as <a href=\"http:\/\/api.github.com\/\" target=\"_blank\" rel=\"noopener\">api.github.com<\/a>, <a href=\"http:\/\/github.com\/\" target=\"_blank\" rel=\"noopener\">github.com<\/a>, or <a href=\"http:\/\/raw.githubusercontent.com\/\" target=\"_blank\" rel=\"noopener\">raw.githubusercontent.com<\/a>.<\/p>\n<p class=\"wp-block-paragraph\">Harush noted, however, that the underlying credential model is \u201cfundamentally flawed,\u201d and that relying on Classic PATs is a \u201csevere liability.\u201d<\/p>\n<p class=\"wp-block-paragraph\">Cycode advises binding credentials to destinations, rather than functions; auditing every internal tool that handles maintainer credentials; and ensuring that headers are conditionally applied based on the target host, \u201cnot unconditionally stapled by a wrapper function.\u201d Treat all user inputs as hostile, validated hosts before credentials are attached, and deprecate classic PATs.<\/p>\n<p class=\"wp-block-paragraph\">\u201cThe blast radius of a leaked token must be limited to one repository and the bare minimum permissions,\u201d Harush said. \u201cA leaked token should never mean a leaked corporate identity.\u201d<\/p>\n<p class=\"wp-block-paragraph\">He emphasized, though, that WinGet moderators are doing exactly what\u2019s asked of them: Using automated tools to manage a \u201cflood of community submissions\u201d and make their jobs easier. \u201cBut automation does not just remove the human who would have clicked the malicious link; it removes the human who would have noticed the anomaly.\u201d<\/p>\n<h2 class=\"wp-block-heading\">Scripts are a soft spot<\/h2>\n<p class=\"wp-block-paragraph\">The WinGet flaw was a near miss, but \u201ca very serious one,\u201d said <a href=\"https:\/\/dicksonresearch.com\/\" target=\"_blank\" rel=\"noopener\">Frank Dickson<\/a> of Dickson Research. Exploiting it would have let an attacker publish malware with \u201cMicrosoft\u2019s seal of approval.\u201d<\/p>\n<p class=\"wp-block-paragraph\">This means attackers could have pushed tampered installers to anyone who ran an install or an update, reached into any other Microsoft repositories the moderator could touch, and hijacked the build machinery to steal more secrets.<\/p>\n<p class=\"wp-block-paragraph\">And the damage would have looked like routine work. An IT team scripting a standard software rollout would have installed the attacker\u2019s code on every machine, and the logs would have shown an approved package from an approved source.<\/p>\n<p class=\"wp-block-paragraph\">\u201cThe attack would have been a Trojan horse delivered by the mail carrier everyone trusts,\u201d Dickson said.<\/p>\n<p class=\"wp-block-paragraph\">Enterprise security teams should learn that their own scripts are a soft spot, he pointed out; internal tools, bots, and automation get production-level keys and hobby-level review. CISOs should inventory every script and bot that holds a token, and answer important questions: What could this key do in the wrong hands? Where is it allowed to go?<\/p>\n<p class=\"wp-block-paragraph\">Additionally, he advised replacing broad, long-lived tokens with narrow, short-lived ones, and binding every credential to the specific services that need it, which is exactly how Microsoft fixed this problem. \u201cAlso, enterprises should stop trusting public registries blindly,\u201d Dickson said.<\/p>\n<p class=\"wp-block-paragraph\">Ultimately, security teams should review their automations the way they review their people, he said. \u201cA script that runs in a loop around the clock with a moderator\u2019s keys is, in effect, a moderator who never sleeps and never questions anything.\u201d<\/p>\n<\/div>\n<\/div>\n<\/div>\n<\/div>","protected":false},"excerpt":{"rendered":"<p>The most dangerous actor in a software supply chain may now be an automated script with powerful credentials and no idea where it\u2019s sending them. Researchers from pen-testing company Cycode have discovered a now patched critical zero-click supply chain vulnerability in the open-source Windows Package Manager (WinGet), which sits on billions of devices worldwide. A [&hellip;]<\/p>\n","protected":false},"author":0,"featured_media":10502,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[],"class_list":["post-10501","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-education"],"_links":{"self":[{"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=\/wp\/v2\/posts\/10501"}],"collection":[{"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=\/wp\/v2\/types\/post"}],"replies":[{"embeddable":true,"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10501"}],"version-history":[{"count":0,"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=\/wp\/v2\/posts\/10501\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=\/wp\/v2\/media\/10502"}],"wp:attachment":[{"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10501"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10501"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/cybersecurityinfocus.com\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10501"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}