Attackers keep finding ways into open source projects. They phish maintainers. They twist CI/CD pipelines. Then they spread fast. But GitHub just shipped a series of changes that directly target those exact moves. The updates hit npm and GitHub Actions over recent months. They don’t promise perfection. They do break common attack paths.
Disrupting the Attack Chain at Its Weak Points
High-impact npm accounts now enter read-only mode for 72 hours after an email change or 2FA recovery code use. Maintainers get breathing room to spot trouble and reclaim control. The GitHub Blog detailed this preventive account protection rolled out in June 2026. It directly counters the phishing campaigns that kicked off incidents like the widespread Shai-Hulud worm in September 2025.
But account takeovers represent only one entry vector. Many compromises start inside workflows. Consider “pwn requests.” A workflow triggers on a pull request from a fork. It then checks out and runs untrusted code. Attackers loved this pattern. GitHub altered the default behavior of actions/checkout. It now blocks untrusted fork checkouts on common triggers unless teams explicitly opt out after risk review. The change, backported to older versions, and its companion policy controls for who and what can trigger workflows slash the attack surface. Both arrived in June 2026 per the same GitHub Blog post.
Once inside a workflow, attackers hunt for privilege escalation. They poison shared caches to reach more trusted workflows and their credentials. Read-only cache for untrusted triggers closes that door. Less-trusted workflows can no longer modify entries used by release or publish jobs. Simple. Effective. And another June 2026 delivery.
Credentials remain the real prize. Stolen tokens let attackers publish malicious package versions at scale. Trusted publishing removes long-lived secrets from CI/CD entirely. Support expanded to CircleCI in April 2026. More teams can now publish safely without exposing tokens that attackers crave. The GitHub Blog highlighted how this shrinks the exfiltration target list.
Visibility still matters. The Actions network firewall, now in technical preview, logs all outbound traffic from workflow runs. Teams spot odd domains or unexpected data flows. Future updates will add blocking policies. Detection comes first. Containment follows. This tool addresses the exfiltration and tampering phase that appears in nearly every documented incident.
Staged publishing for npm adds another gate. Even with stolen credentials, new package versions require extra approval and 2FA. The May 2026 feature decouples automation tokens from actual registry publication power. Attackers can’t race from compromised CI to mass distribution as easily. And npm v12, with its upcoming changes, disables install scripts by default. Teams approve specific ones when needed. It also blocks git and remote URL dependencies out of the box. These shifts target the install-time execution attackers favored to spread quickly.
Speed defined many 2026 campaigns. Attackers published malicious versions and hoped downstream tools pulled them before detection. Dependabot version updates now enforce a three-day cooldown by default. The package must exist for at least that long before Dependabot opens a PR. Security updates bypass the wait. Malicious releases get more time to trigger signals from scanners and researchers. The July 2026 change, reported in recent GitHub changelogs, builds on lessons from rapid-fire incidents.
Real attacks show why these matter. Palo Alto Networks Unit 42 tracked the post-Shai-Hulud surge. The September 2025 worm compromised hundreds of packages through automated token theft and republishing. Unit 42 documented wormable propagation in the March 2026 Axios compromise. One of the most downloaded npm packages fell to an account takeover. It delivered a cross-platform RAT. Cumulative downloads exceeded 520 million before takedown. April and May 2026 brought “Shai-Hulud: The Third Coming” and Mini Shai-Hulud campaigns. TanStack’s pipeline compromise in May produced 84 malicious packages and 373 versions in hours. AntV followed with 639 packages in a single hour. June delivered the Red Hat @redhat-cloud-services incident. Thirty-two packages carried the Miasma payload. July saw AsyncAPI packages trojanized with a Miasma RAT descendant. The pattern repeats: initial access, credential theft, propagation.
GitHub Actions attacks follow their own predictable playbook. Cycode researchers outlined four phases. Initial access via compromised actions or pull_request_target triggers. Execution with access to GITHUB_TOKEN and secrets. Exfiltration or tampering. Persistence through backdoors or poisoned downstream packages. The March 2025 tj-actions/changed-files compromise hit over 23,000 repositories. Attackers repositioned tags to a malicious commit. It dumped runner memory, encoded secrets, and printed them to logs. Public logs meant instant exposure. Similar memory reads via /proc/PID/mem appeared in reviewdog/action-setup and trivy-action incidents. Cycode noted these techniques required no zero-days. They exploited existing workflow behaviors.
Runtime monitoring with eBPF offers one answer for the execution gap. It observes process behavior, network calls, and file access inside the runner at kernel level. Static checks like SHA pinning miss what happens after a workflow starts. The June 2026 GitHub changes complement such tools by shrinking the opportunities for that initial execution.
Incident response also improved. Self-service credential revocation lets enterprise admins instantly invalidate all credentials for a user. It builds on earlier enterprise-wide management tools. When supply chain incidents hit, speed of response determines damage.
These updates don’t eliminate risk. Maintainers still review dependencies. Teams still configure workflows with care. But the changes raise the bar. They force attackers to find new paths or accept smaller scale. And they give defenders faster detection and stronger defaults.
Recent reporting shows the pressure continues. Microsoft Threat Intelligence uncovered dependency confusion packages in May 2026 that profiled developer environments. Red Hat investigated its own npm compromises in June. The threat actors adapt. So do the platforms. GitHub’s latest moves represent targeted responses to observed TTPs rather than generic advice.
Organizations should audit their workflows today. Enable the new policy controls. Adopt trusted publishing wherever possible. Set the Dependabot cooldown and review npm v12 plans. Monitor outbound traffic from Actions runs. The attacks won’t stop. These defenses make them harder to execute at volume. That’s progress worth noting in a field where volume has defined the threat for years.
GitHub’s Counterstrike: New Defenses Blunt npm and Actions Supply Chain Assaults first appeared on Web and IT News.
“The AnyCo V100 is built to make everyday meetings easier to start and easier to…
Cloudflare on Tuesday began allowing customers to secure connections from its global network to their…
Power shortages loom as data centers multiply. Artificial intelligence systems consume electricity at rates once…
Ford Motor Co. posted better-than-expected second-quarter results and lifted its full-year profit forecast. Shares jumped.…
Capuchin monkeys in a Costa Rican forest have become the latest subjects in artificial intelligence…
Framework Computer set an ambitious goal. Build a Windows and Linux laptop that matches the…
This website uses cookies.