Back to all lessons
Awareness Lessons
last week

Malware Force-Pushed Into Open Source Pull Requests to Steal Developer Credentials

Written by AI from the linked story. Not reviewed by an editor. How this works

Attackers injected PolinRider malware into open pull requests for multiple high-profile open source projects by hiding malicious JavaScript inside build configuration files and fake font files. Because CI/CD pipelines automatically executed code from these pull requests, the malware ran in a release workflow and published 40 malicious installers before being caught. This attack demonstrates how open source contribution workflows can be weaponized to compromise not just one project, but cascade into developer credential theft and further repository compromise. The trust placed in pull requests and automated build systems without sufficient code review and pipeline controls creates a critical attack surface in modern software supply chains.

Tactical Insight

Immediate actions

  • Audit all open pull requests for unexpected changes to build configuration files, CI/CD workflows, and static assets such as font files.
  • Restrict CI/CD pipelines so that workflows triggered by external pull requests run with minimal permissions and cannot publish releases or access secrets without explicit approval.
  • Rotate any credentials and tokens that may have been exposed in affected CI/CD environments.

Long-term improvements

  • Require mandatory human code review and approval before any pull request from an external contributor can trigger a release or deployment workflow.
  • Enforce code signing and provenance attestation (e.g., SLSA, Sigstore) for all build artifacts so unauthorized or tampered releases can be detected.
  • Apply least-privilege principles to repository secrets, ensuring CI/CD jobs initiated by untrusted contributors cannot access sensitive tokens.

Detection measures

  • Implement automated scanning of pull request diffs for obfuscated or encoded scripts hidden in non-code assets and configuration files.
  • Monitor CI/CD pipeline logs for unexpected artifact publications or permission escalations and alert on anomalies in real time.
  • Subscribe to dependency and repository integrity monitoring services that flag unauthorized changes to build toolchains.

Back this up with a control

All controls and vendors

Training helps people spot this. These controls make the attack fail even on the day someone does not.