Injective Labs GitHub Compromise: npm Packages Steal Wallet Keys

An attacker compromised Injective Labs' GitHub to publish an npm package that steals crypto wallet keys. Find out how to protect yourself.

11 jul 2026 • 4 min read • Q2BSTUDIO Team

How a fake npm package stole private keys from crypto wallets

The software development ecosystem faces a growing threat: supply chain attacks. Recently, an incident in Injective Labs' GitHub repository showed how unknown actors managed to compromise a legitimate SDK and publish a malicious package in the npm registry. The altered version, identified as @injectivelabs/sdk-ts@1.20.21, contained fake telemetry functionality that extracted private keys and seed phrases from cryptocurrency wallets. This type of incident not only affects end users, but also jeopardizes trust in the open source dependencies that millions of projects use daily.

The software supply chain has become one of the most sophisticated attack vectors. Developers who integrate third-party libraries without verifying their integrity expose themselves to a legitimate package being poisoned at the source. In the case of Injective Labs, the attacker gained access to the official GitHub repository and from there modified the code before publishing it on npm. This method is particularly dangerous because the malicious code is distributed through seemingly trustworthy channels. Organizations that don't have strong security policies in place in their continuous integration pipelines are the most vulnerable.

For companies developing custom applications, the lesson is clear: security must be built in from the project conception. It is not enough to trust that a package is safe because it has many downloads or because it comes from an official account. It is necessary to implement static analysis tools, digital signatures and dependency integrity verification. At Q2BSTUDIO, we offer specialized cybersecurity services including code audits and penetration testing, helping our clients identify and mitigate risks in their applications before they are exploited. You can learn more about our cybersecurity and pentesting solutions.

This attack also highlights the importance of properly managing cloud environments. Many organizations store their repositories on platforms like GitHub and deploy their packages in public or private registries. Improper access to a developer account can compromise the entire software lifecycle. Adopting AWS and Azure cloud services with robust security policies, such as multi-factor authentication and secrets management, significantly reduces the attack surface. In addition, artificial intelligence can play a key role in detecting anomalies in repositories and in the behavior of packages. Enterprise AI systems can analyze commit patterns, account activity, and packet metadata to alert on potential compromises before malicious code reaches production.

In the field of business intelligence, tools such as Power BI allow security data to be visualized in a comprehensive way. A company that constantly monitors its development pipelines and the integrity of its dependencies can make informed decisions to strengthen its security posture. The business intelligence services we offer at Q2BSTUDIO help transform audit data into actionable dashboards, integrating sources such as npm logs, GitHub events, and package trust metrics. In this way, development and security teams work with real-time information.

Process automation also plays a crucial role. AI agents can be responsible for automatically scanning each new dependency before it is incorporated into the project, comparing hashes, reviewing changes in the source code, and verifying the maintainer's reputation. These practices should be part of the standard workflow in any company that develops custom software. At Q2BSTUDIO, we combine custom software development expertise with cutting-edge technologies to create secure and scalable solutions. Our team works with modern frameworks and agile methodologies, integrating security at every stage of the software lifecycle.

The case of Injective Labs is not isolated. Similar attacks have occurred in the past with packages such as event-stream, ua-parser-js or colors.js, proving that no ecosystem is exempt. The open source community needs to collaborate to set stricter security standards. For example, verifying signatures using Sigstore or adopting private records with access control can mitigate risk. Companies that develop custom applications should consider keeping their own copies of critical dependencies in internal repositories, auditing each update.

Another relevant aspect is the training of the development team. Social engineering remains one of the most effective ways to gain access to developer accounts. Attackers can impersonate legitimate maintainers through emails or messages on collaboration platforms. That's why security policies should include ongoing training and clear procedures for identity verification. At Q2BSTUDIO, we offer cybersecurity consulting ranging from team building to implementing advanced technical controls.

Finally, incident response is critical. When a malicious packet is discovered, reaction time is critical. Organizations should have contingency plans in place that include token revocation, credential rotation, and notification to affected users. Transparency and quick communication can limit reputational damage. In this scenario, AI services can help automate compromise detection and response, reducing the mean time to resolution.

In conclusion, Injective Labs' GitHub pledge is a reminder that security in the software supply chain is not optional. Companies that invest in cybersecurity, secure cloud, artificial intelligence, and business intelligence tools are better prepared to face these threats. Q2BSTUDIO accompanies its customers on this path, offering comprehensive solutions ranging from the development of custom applications to the implementation of advanced monitoring systems with Power BI and AI agents. If your organization wants to strengthen its security posture or needs advice on the adoption of cloud technologies, do not hesitate to contact us. Prevention is always more cost-effective than remediation.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Artificial intelligence

AI agents, chatbots, and intelligent assistants that automate tasks and serve your customers 24/7 to improve the efficiency of your business.

More info

Software Development

Web, mobile, and desktop applications, intranets, e-commerce, SaaS, and management platforms designed for your company's specific needs.

More info

Cloud services

Migration, infrastructure, managed hosting, high availability, and security on Microsoft Azure and Amazon Web Services to help your business scale without limits.

More info

Cybersecurity and pentesting

Security audits, penetration testing and protection of applications, data and infrastructure on-premise and cloud, with ethical hacking and regulatory compliance.

More info

Business Intelligence

Dashboards and data analysis with Power BI: we integrate your sources, design dashboards and KPIs and turn your data into decisions.

More info

Process automation

We automate repetitive tasks and connect your applications with n8n, Power Automate, Make, and RPA, eliminating manual work and increasing productivity.

More info

Training for Companies

We train your teams in technology with criteria: web development, databases, Git, best practices and security, automation with n8n, artificial intelligence for companies and creation of AI solutions with Azure AI Foundry.

More info

Code Auditing

We audit the code that you, your team or an AI create: we tell you what is good and what to improve, we secure it and make it ready for production, web or app.

More info

AI Image Generation

We create for you the images that your business needs with artificial intelligence: product, networks, advertising, illustration and avatars. You tell us what you want and we deliver it ready to use.

More info

AI Video Generation

We create videos with artificial intelligence for you: promotional, networking, virtual presenters, dubbing and animations. You tell us the idea and we will deliver it assembled and ready to publish.

More info

AI Conversational Avatars

We create conversational avatars with AI – digital humans with a face and voice – that serve your customers and teams with the knowledge of your company, on your website, interactive monitors, WhatsApp or Teams.

More info

Online Marketing and AI

Google Ads, Meta Ads, LinkedIn Ads and AI Engine Positioning (GEO/AEO): we attract customers and make your brand appear where they search for you, also on ChatGPT, Gemini and Perplexity.

More info

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.