• Skip to primary navigation
  • Skip to main content
  • Skip to primary sidebar
  • Skip to footer
Sq Magazine LogoSQ Magazine

Smarter Insights for a Fast-Moving Digital World

  • Latest News
  • Statistics
  • About
  • Contact
Subscribe
Sq Magazine Logo
  • Latest News
  • Statistics
  • About
  • Contact
Subscribe
Home » Cybersecurity

Axios npm Attack Pushes RAT Through Malicious Packages

Published on: March 31, 2026
Sofia Ramirez
Written By
Sofia Ramirez
Sofia Ramirez
Senior Tech Writer • 502 Articles
Sofia Ramirez is a technology and cybersecurity writer at SQ Magazine. With a keen eye on emerging threats and innovations, she helps reader...
LATEST POSTS:
ClickUp Statistics 2026: Users, Revenue and AI
AWS vs Azure vs Google Cloud Statistics 2026: Market Share & Revenue
How to Improve Your Attention Span: 9 Methods
Robert A. Lee
Reviewed By
Robert A. Lee
Robert A. Lee
Senior Editor • 413 Articles
Robert A. Lee is a journalist at SQ Magazine who unpacks the fast-moving worlds of gaming and internet trends. He tracks everything from maj...
LATEST POSTS:
Netflix vs Disney+ vs Amazon Prime Statistics 2026: Viewer Insights
WhatsApp vs Telegram: Which One Is Best in 2026?
AWS CloudFront Outage Triggers Global 5xx Errors
Axios Npm Attack Pushes Trojan Through Packages
As Featured In
The New York Times LogoForbes LogoWired LogoDeloitte LogoResearch.com Logo
Share on LinkedIn ChatGPT Perplexity Share on X Share on Facebook

A major supply chain attack has hit the popular JavaScript library Axios, exposing developers to a stealthy cross platform remote access trojan.

Quick Summary – TLDR:

  • Malicious versions axios 1.14.1 and 0.30.4 were published using a compromised maintainer account.
  • Attackers injected a fake dependency plain crypto js to deploy a hidden RAT.
  • The malware targeted macOS, Windows, and Linux with platform specific payloads.
  • Developers are urged to downgrade immediately and rotate credentials.

What Happened?

Two malicious versions of the widely used npm package Axios were published after attackers gained access to a maintainer account. Instead of modifying Axios directly, they introduced a hidden dependency that silently executed a remote access trojan during installation. The attack bypassed standard security checks and spread quickly due to Axios’ massive usage across projects.

🚨 CRITICAL: Active supply chain attack on axios — one of npm’s most depended-on packages.

The latest axios@1.14.1 now pulls in plain-crypto-js@4.2.1, a package that did not exist before today. This is a live compromise.

This is textbook supply chain installer malware. axios…

— Feross (@feross) March 31, 2026

A Carefully Planned Supply Chain Attack

The attack targeted one of the most trusted libraries in the JavaScript ecosystem. Axios sees tens to hundreds of millions of weekly downloads, making it a high impact entry point.

Security researchers found that attackers used compromised npm credentials of the primary maintainer to publish the infected versions. The email linked to the account was changed to an anonymous ProtonMail address, allowing the attacker to maintain control and avoid detection. Crucially, the malicious packages were published outside the normal CI/CD pipeline, which meant automated checks were bypassed entirely.

What makes this attack stand out is its level of preparation. Researchers noted that:

  • A clean version of the malicious package was published first to build trust.
  • The weaponized version appeared around 18 hours later.
  • Both infected Axios releases were pushed within 39 minutes of each other.
  • The malware contacted its command server within seconds of installation.

This was not random activity. It was a deliberate and coordinated operation.

How the Malware Works?

Interestingly, Axios itself remained untouched. There was no malicious code inside the library, making traditional code reviews ineffective.

Instead, attackers injected a dependency called plain crypto js version 4.2.1, which is not used anywhere in the Axios codebase. Its only purpose was to execute a post install script.

This script acted as a dropper for a remote access trojan, which behaved differently depending on the operating system:

  • On macOS, it downloaded a binary disguised as a system file and executed it in the background.
  • On Windows, it copied PowerShell to a fake system path and ran a hidden script using VBScript.
  • On Linux, it fetched a Python script and executed it silently.

All variants communicated with the same command and control server, sending system data and receiving instructions. The malware supported actions such as:

  • Executing shell commands
  • Running additional payloads
  • Accessing files on the system

Notably, the malware did not establish persistence, suggesting it was designed for quick data theft or follow up attacks.

Newsletter
Don’t chase tech news. We track it for you.

One weekly briefing with the launches, AI developments, and breaches that matter. No filler.

Built to Evade Detection

One of the most alarming aspects of the attack is how it covered its tracks.

After executing, the malicious package performed several cleanup steps:

  • Removed the post install script.
  • Deleted the modified package file.
  • Replaced it with a clean looking version.

This meant that even if developers inspected their node modules later, they would find no obvious signs of compromise.

Security experts pointed out that the malicious behavior lived entirely in a transitive dependency, making it extremely difficult to detect using standard review methods.

What Developers Should Do Now?

Developers who installed the affected versions should act immediately.

Recommended steps include:

  • Downgrade to safe versions such as axios 1.14.0 or 0.30.3.
  • Remove the plain crypto js package from dependencies.
  • Check for suspicious files like.
    • /Library/Caches/com.apple.act.mond on macOS
    • %PROGRAMDATA%wt.exe on Windows
    • /tmp/ld.py on Linux
  • Rotate all credentials, including API keys, tokens, and SSH keys.
  • Audit CI/CD pipelines for exposure.
  • Consider using install flags to disable scripts during dependency installation.

Security researchers warn that if any indicators are found, systems should be treated as fully compromised.

SQ Magazine’s Takeaway

I think this incident shows how fragile the open source ecosystem really is right now. Even a trusted library like Axios can become a threat overnight without a single line of its own code being changed. That is what makes this attack scary.

What stood out to me is the precision. This was not a noisy attack. It was quiet, fast, and designed to disappear. If developers are not actively monitoring their dependencies and build processes, they could miss something like this completely.

Going forward, I believe teams need to treat dependencies as part of their attack surface, not just tools. Simple steps like restricting install scripts and auditing packages more closely can make a real difference.

This article has been reviewed and fact-checked by Robert A. Lee. SQ Magazine follows strict Publishing Principles and a documented Fact-Check Policy to ensure accuracy, transparency, and editorial independence across all content.

Add SQ Magazine as a Preferred Source on Google for updates! Follow on Google News
Share ChatGPT Perplexity
Sofia Ramirez

Sofia Ramirez

Senior Tech Writer


Sofia Ramirez is a technology and cybersecurity writer at SQ Magazine. With a keen eye on emerging threats and innovations, she helps readers stay informed and secure in today’s fast-changing tech landscape. Passionate about making cybersecurity accessible, Sofia blends research-driven analysis with straightforward explanations; so whether you’re a tech professional or a curious reader, her work ensures you’re always one step ahead in the digital world.

Related Posts

Aws Codebreach Bug Exposed Millions
Cybersecurity

AWS CodeBreach Bug Exposed Millions to Potential Supply Chain Attack

Notepad Faces Cyberattack Affecting All Users
Cybersecurity

Stealthy Cyber Espionage Campaign Hits Notepad++ Users

Github Hit By Supply Chain Data Breach Attack
Cybersecurity

GitHub Hit by Supply Chain Attack Through VS Code Extension

Disclaimer: The content published on SQ Magazine is for informational and educational purposes only. Please verify details independently before making any important decisions based on our content.

Reader Interactions

Leave a Comment Cancel reply

Primary Sidebar

Connect With Us

facebook x linkedin google-news telegram pinterest whatsapp email
google-preferred-source-badge Add as a preferred source on Google

You Should Also Read

TrapDoor Malware Targets npm, PyPI, and Rust Developers
Zapier, Postman, ENS Hit as Shai-Hulud Malware Infects Hundreds of npm Packages
Critical React Native CLI Flaw Puts Millions of Developers at Risk

Table of Contents

  • Quick Summary – TLDR:
  • What Happened?
  • A Carefully Planned Supply Chain Attack
  • How the Malware Works?
  • Built to Evade Detection
  • What Developers Should Do Now?
  • SQ Magazine’s Takeaway
Connect on Telegram

Footer

SQ Magazine Logo

Smarter Insights for a Fast-Moving Digital World

Connect With Us

Follow Us on Google News

Editorial & Trust

  • About
  • Publishing Principles
  • Fact-Check Policy
  • Corrections Policy
  • Ethics Policy
  • Disclaimer

Worth Checking

  • Social Media Attention Span Stats
  • Gen Z Social Media Statistics
  • TikTok vs. Instagram Statistics
  • LLM Hallucination Statistics
  • Spotify User Statistics
  • Apple Customer Loyalty Statistics
Contact Us
13570 Grove Dr #189,
Maple Grove, MN 55311,
United States
10 a.m. to 6 p.m. | Every day

Copyright © 2022–2026 SQ Magazine. All Rights Reserved. Powered by the Neural Stack.

  • Privacy Policy
  • Terms
  • Accessibility Statement
Company
  • About Us
  • Our Team
  • Our Mission
  • Core Values
Discover
  • Brand Assets
    Brand Assets
  • Stats Methodology
    Stats Research Process
  • Glossary
    Glossary
Categories
  • Internet
  • Technology
  • Artificial Intelligence
  • Gaming
  • Cybersecurity
Internet
Netflix vs Disney+ vs Amazon Prime Statistics
Netflix vs Disney+ vs Amazon Prime Statistics 2026: Viewer Insights
Social Media Demographics By Platform
Social Media Demographics by Platform Statistics 2026: A Definitive Guide
Amazon Music Statistics
Amazon Music Statistics 2026: Subscribers, Share and Revenue
How Many People Use YouTube
How Many People Use YouTube 2026: Users by Country
How Many People Work At Amazon
How Many People Work At Amazon 2026: Headcount, Layoffs, Productivity
Hulu Statistics
Hulu Statistics 2026: Subscribers, Revenue and Market Share
Technology
ClickUp Statistics
ClickUp Statistics 2026: Users, Revenue and AI
AWS vs Azure vs Google Cloud Statistics
AWS vs Azure vs Google Cloud Statistics 2026: Market Share & Revenue
Google Cloud Platform Statistics
Google Cloud Platform Statistics 2026: Market Growth
Asana Statistics
Asana Statistics 2026: Revenue, Customers, AI ARR and Market Share
AWS Statistics
AWS Statistics 2026: Revenue, Market Share and AI Growth
Adobe Creative Cloud Statistics
Adobe Creative Cloud Statistics 2026: Subscribers, Revenue and Market Share
Artificial Intelligence
ChatGPT vs DeepSeek Statistics
ChatGPT vs DeepSeek Statistics 2026: Users, Benchmarks & Pricing
ChatGPT vs Claude vs Gemini vs Perplexity Statistics
ChatGPT vs Claude vs Gemini vs Perplexity Statistics 2026: Users, Revenue & Market Share
How Many People Work At Midjourney
How Many People Work At Midjourney 2026: Lean Team, Big Revenue
Grammarly AI Statistics
Grammarly AI Statistics 2026: Users, Revenue, Funding, Rebrand
Copilot Statistics
Copilot Statistics 2026: Users, Adoption, Revenue and Market Share
AI Image Generation Statistics
AI Image Generation Statistics 2026: Market Size, Adoption & Risks
Gaming
Online Gambling Regulations Statistics
Online Gambling Regulations Statistics 2026: Global Compliance and Enforcement Data
Fantasy Sports Statistics
Fantasy Sports Statistics 2026: Users, Revenue & Trends
Apex Legends Statistics
Apex Legends Statistics 2026: Players, Revenue, and Esports
Fortnite Statistics
Fortnite Statistics 2026: Players, Revenue, Esports, and Engagement
Gamers Statistics
Gamers Statistics 2026: Players, Habits & Global Data
Minecraft Statistics
Minecraft Statistics 2026: 300 Million Copies Sold & 212M Monthly Players
Cybersecurity
Password Statistics
Password Statistics 2026: Credential Theft, MFA, and the Passkey Tipping Point
Identity Theft Statistics
Identity Theft Statistics 2026: Key Fraud Data and Trends
CVE Statistics
CVE Statistics 2026: Severity Distribution and Top Affected Vendors
Dark Web AI Tool Marketplace Statistics
Dark Web AI Tool Marketplace Statistics 2026: Explosive Market Growth
API Security Breach Statistics
API Security Breach Statistics 2026: Hidden Threats
AI Voice Cloning Fraud Statistics
AI Voice Cloning Fraud Statistics 2026: Alarming Trends You Must Know Now
Categories
  • Cybersecurity
  • Artificial Intelligence
  • Internet
  • Technology
  • Gaming
Cybersecurity
Wordpress Wp2shell Flaws Now Under Active Exploitation
WordPress WP2Shell Flaws Now Under Active Exploitation
7 Zip Fixes High Severity Xz Archive Code Execution Flaw
7-Zip Fixes High-Severity XZ Archive Code Execution Flaw
Cursor S Unpatched Zero Day Lets Repos Run Malicious Code
Cursor’s Unpatched Zero-Day Lets Repos Run Malicious Code
Notepad 8 9 7 Patches Five Security Vulnerabilities
Notepad++ 8.9.7 Patches Five Security Vulnerabilities
Telegram S T Me Domain Suspended Amid Ofac Sanctions Link
Telegram’s t.me Domain Suspended Amid OFAC Sanctions Link
Shinyhunters Abuses Salesforce Oauth To Bypass Mfa
ShinyHunters Abuses Salesforce OAuth to Bypass MFA
Artificial Intelligence
Anthropic Extends Claude Fable 5 Access Again
Claude Fable 5 Ends Free Access For Pro Subscribers
Moonshot S Kimi K3 Beats Top U S Ai Models
Moonshot’s Kimi K3 Beats Top U.S. AI Models in Blind Tests
Xai Open Sources Grok Build Coding Agent
Grok Build AI Coding Agent is Now Open Source
Openai Reveals Gpt Red For Powerful Ai Security Testing
OpenAI Reveals GPT Red for Powerful AI Security Testing
Openai S First Hardware Device Is Reportedly A Screenless Speaker
OpenAI’s First Hardware Device Is Reportedly a Screenless Speaker
Claude For Teachers Launched
Anthropic Gives Verified K-12 Teachers Free Claude Access
Internet
Aws Cloudfront Outage Triggers Global 5xx Errors
AWS CloudFront Outage Triggers Global 5xx Errors
Whatsapp Launches Username Reservation Feature
WhatsApp Opens Username Reservations for Its 3 Billion Users
Chrome 149 Update Fixes Serious Vulnerabilities
Google Chrome 149 Fixes 18 Serious Security Flaws
Meta Hands Whatsapp Reins To Cred Founder Kunal Shah
Meta Hands WhatsApp Reins to CRED Founder Kunal Shah
Major X Outage Disrupts Users Worldwide
Major X Outage Disrupts Users Worldwide, Service Restored
Meta Adds 13 Plus Age Verification For Teen Safety
Meta Adds 13+ Content Settings and AI Age Checks for Teens
Technology
Microsoft Fixes Dell Windows 11 Shutdown Overheating Bug
Microsoft Fixes Dell Windows 11 Shutdown, Overheating Bug
Apple S Foldable Iphone Ultra Battery Capacity Allegedly Leaks
Apple’s Foldable iPhone Ultra Battery Capacity Allegedly Leaks
Microsoft Lays Off 4800 Employees
Microsoft Cuts 4,800 Jobs, Resets Xbox Strategy
Chrome Update Fixes 382 Vulnerabilities
Chrome 150 Patches 382 Security Fixes, 15 Critical
Apple Leak Reveals Six New Iphones For 2027
Massive Apple Leak Reveals Six New iPhones for 2027
Google Finance Comes Out Of Beta With Android App
Google Finance Gets Major AI Upgrade and New Android App
Gaming
Gta Vi Official Cover Art
GTA 6 Pre-Orders Start June 25, New Cover Art Unveiled
Epic Games Teases Unreal Engine 6 For Rocket League
Epic Games Teases Unreal Engine 6 for Rocket League
Stardew Valley Launched For Nintendo Switch 2 Edition
Stardew Valley Switch 2 Edition Arrives with Online Co-op
Hogwarts Legacy Game Crosses 40m Downloads
Hogwarts Legacy Crosses 40M Sales, Beating Industry Giants
Pubg Black Budget Closed Alpha Launched
PUBG: Black Budget Launches Closed Alpha Test With a Bold PvPvE Twist
Counter Strike 2 Skin Market Crashes After Valve Update
Counter-Strike 2’s $5.9 Billion Skin Economy Just Got Shattered
Newsletter

Too much tech noise?

We respect your time. One high-signal briefing a week — tech, AI, and security. Nothing else.

Newsletter

The SQ Briefing

We track tech, AI, and security 24/7. You get a 5-minute weekly summary.