Compromised open source package pushed malicious release to developers
Threat actors gained access to sensitive developer data and cryptocurrency wallets after a popular open source software tool was compromised.
Developers behind the Elementary Python command line interface (CLI) tool revealed a recent release (version 0.23.3) included malicious code.
Attackers exploited a script injection vulnerability in the open source project’s GitHub Actions workflow to push the malicious update to users.
This malicious version was subsequently published on PyPI, as well as a Docker image pushed to the project’s registry.
In a blog post detailing the incident, developers said the malicious version was removed roughly 12 hours later. Elementary Cloud, the Elementary dbt package, and other CLI versions weren’t affected.
A replacement version (0.23.4) has also been released, however developers warned those who downloaded the malicious version are still at high risk.
What happened with the Elementary CLI attack?
Analysis of the incident by researchers at StepSecurity found attackers exploited a script injection vulnerability in the project’s GitHub Actions workflow.
Sign up today and you will receive a free copy of our Future Focus 2026 report - the leading resource for IT decision-maker insight on priorities and investment areas in AI, security and more.
Thereafter, they used the workflow’s GITHUB_TOKEN to “forge a signed release commit” and push the malicious version through a legitimate release pipeline.
According to StepSecurity, a .pth file was baked into the release, which upon startup allowed the threat actor(s) to harvest an array of sensitive data, including:
- Cloud credentials, including AWS, GCP, and Azure
- Container orchestration data
- System data (passwords, logs, shell history)
- Crypto wallet files (including Bitcoin, Litecoin, Monero, and Ripple)
What developers need to know
Project maintainers warned that users who installed the malicious version should “assume that any credentials accessible to the environment where it ran may have been exposed”.
Developers outlined a series of steps to take for those affected, including:
- Check your installed version (pip show elementary-data | grep Version)
- If the version is 0.23.3, uninstall it and replace it with the safe version
- Delete your cache files to avoid any artifacts
- Check for the malware’s marker file on any machine where the CLI may have run: If this file is present, the payload executed on that machine.
Developers are also advised to rotate credentials that were accessible from the environment where 0.23.3 ran. This includes dbt profiles, cloud provider keys, API tokens, SSH keys, and contents of .env files.
“CI/CD runners are especially exposed because they typically have broad sets of secrets mounted at runtime,” the blog post noted.
In the wake of the incident, project maintainers noted they have “hardened” open source release flows and permissions.
The vulnerable GitHub Action workflow has also been removed, while an audit of other GitHub Actions workflows across the organisation has been conducted to identify the same type of script injection flaw.
ITPro 建議文章
- Amazon OpenSearch update targets performance boosts and lower costs
- Cyber experts say they've identified the first case of ‘agentic ransomware’
- The UK is betting big on the power of open source AI
- ‘Open source should rest on transparency, not deception’: Euro-Office ‘sovereignty’ claims questioned in scathing open letter by LibreOffice maintainers
- AI is coming to Ubuntu: Canonical exec teases future AI features and agentic workflow capabilities for version 26.10 — but on a ‘strictly opt-in basis’
- The open source ecosystem is booming thanks to AI, but hackers are taking advantage
- A torrent of AI slop submissions forced an open source project to scrap its bug bounty program – maintainer claims they’re removing the “incentive for people to submit crap”
- Anthropic says MCP will stay 'open, neutral, and community-driven' after donating project to Linux Foundation
- Open source AI models are cheaper than closed source competitors and perform on par, so why aren’t enterprises flocking to them?
- AI-generated code is in vogue: Developers are now packing codebases with automated code – but they’re overlooking security and leaving enterprises open to huge risks
