Compromised open source package pushed malicious Elementary CLI release to developers
The open source Elementary CLI tool has more than one million monthly downloads
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:
- SSH keys
- Cloud credentials, including AWS, GCP, and Azure
- CI secrets
- 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.
FOLLOW US ON SOCIAL MEDIA
Follow ITPro on Google News and add us as a preferred source to keep tabs on all our latest news, analysis, views, and reviews.
You can also follow ITPro on LinkedIn, X, Facebook, and BlueSky.
Ross Kelly is ITPro's News & Analysis Editor, responsible for leading the brand's news output and in-depth reporting on the latest stories from across the business technology landscape. Ross was previously a Staff Writer, during which time he developed a keen interest in cyber security, business leadership, and emerging technologies.
He graduated from Edinburgh Napier University in 2016 with a BA (Hons) in Journalism, and joined ITPro in 2022 after four years working in technology conference research.
For news pitches, you can contact Ross at ross.kelly@futurenet.com, or on Twitter and LinkedIn.
-
A spate of cyber attacks has rocked JapanNews With over 100 cyber attacks impacting major sectors this year, Japan’s ruling party is calling for an emergency taskforce to strengthen AI defenses
-
Top takeaways: The AI tokenomics challengeFeature Why invisible metering, compounding agentic workflows, and production scale turn enterprise AI into an open tab – and how leaders can govern for measurable value
-
IBM and Red Hat report hundreds of open source fixes with Lightwell Clearinghouse schemeNews Lightwell Clearinghouse is now generally available, allowing firms to request priority review and remediations for open source software
-
‘This pause is due to a significant rise in automated submissions, the vast majority of which are not valid’: Google pauses open source bug bounty scheme over AI slop submissionsNews The Google open source scheme is the latest bug bounty to fall victim to AI-generated submissions
-
Huawei reiterates its commitment to open source standards at Connect 2026News The Chinese IT giant is the latest to declare open source a key element of AI
-
Red Hat launches new open source project to drive AI governanceNews The asago open source project will allow enterprises to automate compliance processes and bolster security
-
Amazon targets agent safety gains with investment in team behind Lean programming languageNews The tech giant hopes support for the open source programming language could drive AI agent safety improvements
-
‘These Chinese models are excellent’: Nvidia CEO Jensen Huang hails powerful new Chinese AI models like Kimi K3 – and says don’t be put off by security ‘misconceptions’News As powerful new AI models like Kimi K3 hit the market, Huang says competition will be a positive for the global industry
-
The UK is betting big on the power of open source AINews The government wants to encourage open source developers to help improve public services
-
‘Open source should rest on transparency, not deception’: Euro-Office ‘sovereignty’ claims questioned in scathing open letter by LibreOffice maintainersNews The developers behind LibreOffice have questioned Euro-Office’s sovereignty credentials and use of a Microsoft-based document format