Today's cybersecurity headlines are brought to you by ThreatPerspective


Ethical Hacking News

Shai-Hulud 2.0: A Modern-Day Worm Attacks PostHog's JavaScript SDKs, Exfiltrating Sensitive Data


PostHog suffers massive security breach due to automated pull request; Shai-Hulud 2.0 worm compromises thousands of developer credentials.

  • The Shai-Hulud 2.0 attack involved malicious releases of contaminated packages into PostHog's JavaScript SDKs, compromising over 25,000 developer credentials within three days.
  • The attack used a pre-install script that ran automatically when software was installed, utilizing TruffleHog to scan for credentials on compromised machines or build systems.
  • The affected packages were not limited to PostHog; several major companies had their packages tainted by the Shai-Hulud 2.0 worm.
  • The attack propagated like a full-blown worm, stealing cloud credentials, CI/CD secrets, environment variables, and sensitive data from developer machines or build systems.



  • PostHog, a company that provides a suite of tools for data analytics and business intelligence, recently suffered one of the largest and most impactful security incidents it has ever experienced. According to a postmortem released by PostHog, the Shai-Hulud 2.0 attack involved malicious releases of contaminated packages into its JavaScript SDKs, which then proceeded to auto-loot developer credentials.

    The Shai-Hulud 2.0 attack, which bears a striking resemblance to the infamous Shai-Hulud worm of 2008, used a pre-install script that ran automatically when the software was installed. This script then utilized TruffleHog, a tool commonly used for vulnerability scanning and bug hunting, to scan for credentials on compromised developer machines or build systems. Any found secrets were subsequently exfiltrated to new public GitHub repositories, allowing the worm to spread further.

    One of the most alarming aspects of this attack is its scope. According to security experts at Wiz, who uncovered the second coming of the Shai-Hulud campaign, more than 25,000 developers had their secrets compromised within three days of the attack. Affected packages were not limited to PostHog alone; several major companies that provide software development tools and services, including Zapier, AsyncAPI, ENS Domains, and Postman, also had their packages tainted by the Shai-Hulud 2.0 worm.

    What made this attack particularly concerning is its ability to propagate like a full-blown worm. Unlike traditional malware, which tends to behave in a more contained manner, the Shai-Hulud 2.0 worm was capable of stealing not only npm or GitHub tokens but also cloud credentials (AWS, Azure, GCP), CI/CD secrets, environment variables, and other sensitive data from developer machines or build systems.

    The postmortem highlights a deeper, more structural danger: this wasn't an accidental breach of a password or token, but a mistake in the company's CI/CD workflow configuration that allowed malicious code from a pull request to run with enough privilege to grab high-value secrets. This underscores the importance of adopting robust security measures and ensuring that developers adhere to strict coding standards.

    To address these issues, PostHog has vowed to adopt a "trusted publisher" model for npm releases, overhaul its workflow change reviews, and disable install-script execution in its CI/CD pipelines, among other hardening measures. By taking these steps, the company aims to prevent similar attacks from occurring in the future.

    In conclusion, the Shai-Hulud 2.0 attack serves as a stark reminder of the importance of robust security measures and adherence to strict coding standards in the world of software development. As technology continues to evolve at breakneck speed, it is essential that companies prioritize their users' data protection and take proactive steps to prevent similar attacks from occurring.

    PostHog suffers massive security breach due to automated pull request; Shai-Hulud 2.0 worm compromises thousands of developer credentials.



    Related Information:
  • https://www.ethicalhackingnews.com/articles/Shai-Hulud-20-A-Modern-Day-Worm-Attacks-PostHogs-JavaScript-SDKs-Exfiltrating-Sensitive-Data-ehn.shtml

  • Published: Fri Nov 28 10:38:44 2025 by llama3.2 3B Q4_K_M













    © Ethical Hacking News . All rights reserved.

    Privacy | Terms of Use | Contact Us