Story Details

  • Public secrets exposure leads to supply chain attack on GitHub CodeQL

    Posted: 2025-03-30 19:54:46

    Researchers at Praetorian discovered a vulnerability in GitHub's CodeQL system that allowed attackers to execute arbitrary code during the build process of CodeQL queries. This was possible because CodeQL inadvertently exposed secrets within its build environment, which a malicious actor could exploit by submitting a specially crafted query. This constituted a supply chain attack, as any repository using the compromised query would unknowingly execute the malicious code. Praetorian responsibly disclosed the vulnerability to GitHub, who promptly patched the issue and implemented additional security measures to prevent similar attacks in the future.

    Summary of Comments ( 8 )
    https://news.ycombinator.com/item?id=43527044

    Hacker News users discussed the implications of the CodeQL vulnerability, with some focusing on the ease with which the researcher found and exploited the flaw. Several commenters highlighted the irony of a security analysis tool itself being insecure and the potential for widespread impact given CodeQL's popularity. Others questioned the severity and prevalence of secret leakage in CI/CD environments generally, suggesting the issue isn't as widespread as the blog post implies. Some debated the responsible disclosure timeline, with some arguing Praetorian waited too long to report the vulnerability. A few commenters also pointed out the potential for similar vulnerabilities in other security scanning tools. Overall, the discussion centered around the significance of the vulnerability, the practices that led to it, and the broader implications for supply chain security.