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.
-
The AI vulnerability flood: 7 critical takeaways from the Sophos Mythos expert briefingNavigating the shift from conversational AI to automated, long-running exploitation pipelines
-
MSI Modern MD342CQPW reviewReviews A good value ultrawide with USB-C connectivity, good image quality and a sensible design – the MSI Modern MD342CQPW is a good buy
-
‘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
-
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’News A range of new AI features are coming to Ubuntu over the next year, according to maintainers, but only providing they’re of “sufficient maturity and quality”.
-
The open source ecosystem is booming thanks to AI, but hackers are taking advantageNews Analysis by Sonatype found that AI is giving attackers new opportunities to target victims
-
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”News Curl isn’t the only open source project inundated with AI slop submissions
-
Anthropic says MCP will stay 'open, neutral, and community-driven' after donating project to Linux FoundationNews The AAIF aims to standardize agentic AI development and create an open ecosystem for developers
-
Open source AI models are cheaper than closed source competitors and perform on par, so why aren’t enterprises flocking to them?Analysis Open source AI models often perform on-par with closed source options and could save enterprises billions in cost savings, new research suggests, yet uptake remains limited.