---
title: The Axios Supply Chain Attack Proves Why Server-Side API Credential Management Is Non-Negotiable
description: The Axios npm supply chain attack deployed a cross-platform RAT that harvested credentials from developer machines and CI/CD pipelines. Learn why server-side API credential management with DreamFactory prevents this class of attack and how to protect your enterprise API infrastructure.
image: https://blog.dreamfactory.com/hubfs/Generated%20Image%20March%2031%2c%202026%20-%2010_22AM.png
---

[![DreamFactory logo](https://cdn.prod.website-files.com/64ed8da8a866be7a702fbae0/68d51994d3678214b54acb60_dreamfactory-navbar-logo.svg)](https://www.dreamfactory.com/)

 Products & Services

[AI Data Gateway](https://www.dreamfactory.com/ai-data-gateway/overview)

[Overview Why DreamFactory exists](https://www.dreamfactory.com/ai-data-gateway/overview) [Data Gov, Comp, Security Policy enforcement at the API layer](https://www.dreamfactory.com/ai-data-gateway/ai-data-governance) [Standard API Layer One contract for every backend](https://www.dreamfactory.com/ai-data-gateway/standard-api-layer) [API Gateway Functionality Routing, auth, rate limits, observability](https://www.dreamfactory.com/ai-data-gateway/api-gateway-functionality) [Deployment & Integration Self-hosted, cloud, hybrid](https://www.dreamfactory.com/ai-data-gateway/on-premise-deployment-and-integration) [Developer Productivity Auto-generated, never hand-coded](https://www.dreamfactory.com/ai-data-gateway/ai-development-accelerated) [AI App Architectures Patterns for RAG, agents, MCP](https://www.dreamfactory.com/ai-data-gateway/enterprise-ai-architectures)

AI Data Models

[AIOpenAI](https://www.dreamfactory.com/use-cases/openai) [GGoogle Gemini](https://www.dreamfactory.com/use-cases/google-gemini) [CAnthropic Claude](https://www.dreamfactory.com/use-cases/anthropic-claude-landing) [LMeta Llama](https://www.dreamfactory.com/use-cases/meta-llama) [MMistral AI](https://www.dreamfactory.com/use-cases/mistral) [CoCohere](https://www.dreamfactory.com/use-cases/cohere)

Services and support

[Quickstart Service Packages Expert-led Quickstarts to production](https://www.dreamfactory.com/services-and-support/quickstart-services-packages)

API Management

[Generate & Manage REST APIs From any database, in seconds](https://www.dreamfactory.com/api-management/generate-rest-apis) [Features Security, scripting, self-hosted & more](https://www.dreamfactory.com/api-management/features) [API Generation The complete guide to auto-generated APIs](https://blog.dreamfactory.com/a-complete-guide-to-api-generation) [API Management Concepts, tools, and best practises](https://blog.dreamfactory.com/what-is-api-management-a-brief-overview-of-api-management-concepts-and-tools?_gl=1*jl0njh*_gcl_au*MjQzMjgwMTc3LjE3ODIzMjI3MzY)

 Use Cases

AI Use Cases

[AI Data Access Secure, governed reads for your LLMs](https://www.dreamfactory.com/use-cases/ai-data-access) [MCP Server Drop-in Model Context Protocol](https://www.dreamfactory.com/use-cases/mcp-server) [Legacy Modernization Wrap mainframes with REST](https://www.dreamfactory.com/use-cases/legacy-modernization) [Data Governance Audit every call, enforce every policy](https://www.dreamfactory.com/use-cases/data-governance)

[Customer Case Studies](https://www.dreamfactory.com/case-studies)

[Energy Modernization](https://www.dreamfactory.com/case-studies/energy-snowflake-modernization) [Government Modernization](https://www.dreamfactory.com/case-studies/government-mainframe-oracle-modernization) [Government Business Intelligence](https://www.dreamfactory.com/case-studies/government-sql-server-bi-analyst-queries) [Manufacturing Modernization](https://www.dreamfactory.com/case-studies/steel-manufacturing-sap-erp-modernization) [Financial Services Investor Portal](https://www.dreamfactory.com/case-studies/financial-services-sql-server-investor-portal) [Non-Profit Partner Data Sharing](https://www.dreamfactory.com/case-studies/non-profit-sql-server-partner-data-sharing) [Professional Services Exec Dashboards](https://www.dreamfactory.com/case-studies/professional-services-erp-dashboards) [Education HR and External Data Sharing](https://www.dreamfactory.com/case-studies/education-student-hr-sql-server-mysql-external-data-sharing)

 Industries

Industries

#### [Healthcare HIPAA-grade APIs across EHR, claims, and labs.](https://www.dreamfactory.com/use-cases/healthcare)

#### [Financial Services Portfolios, partners, and portals on one layer.](https://www.dreamfactory.com/use-cases/financial-services)

#### [Government Modernize mainframes without re-platforming.](https://www.dreamfactory.com/use-cases/government)

#### [Manufacturing SAP, MES, and shop-floor data, governed.](https://www.dreamfactory.com/use-cases/manufacturing)

#### [Spotlight How enterprises run on DreamFactory From healthcare to energy to finance — governance baked into every endpoint. Browse case studies →](https://www.dreamfactory.com/case-studies)

 Connectors

SQL Database

[SQL SQL Server](https://www.dreamfactory.com/connectors/sql-server) [OR Oracle](https://www.dreamfactory.com/connectors/oracle) [PG PostgreSQL](https://www.dreamfactory.com/connectors/postgresql) [My MySQL](https://www.dreamfactory.com/connectors/mysql)

NoSQL & Docs

[Dy DynamoDB](https://www.dreamfactory.com/connectors/dynamodb) [Do DocumentDB](https://www.dreamfactory.com/connectors/azure-documentdb) [Mo MongoDB](https://www.dreamfactory.com/connectors/mongodb) [Cb CouchDB](https://www.dreamfactory.com/connectors/couch-db)

Cloud Warehouses

[S3 S3](https://www.dreamfactory.com/connectors/amazon-s3) [Ab Azureblob](https://www.dreamfactory.com/connectors/azure-blob) [FS FTP/SFTP](https://www.dreamfactory.com/connectors/ftp-sftp) [LS Local Storage](https://www.dreamfactory.com/connectors/local-storage)

C & SaaS

[Sf Salesforce](https://www.dreamfactory.com/connectors/salesforce) [API REST / SOAP](https://www.dreamfactory.com/connectors/soap-to-rest)

[See all 30+ connectors](https://www.dreamfactory.com/connectors)

[Blog](https://blog.dreamfactory.com/)

[FREE 30 Minute Demo](https://www.dreamfactory.com/demo)

[![DreamFactory logo](https://cdn.prod.website-files.com/64ed8da8a866be7a702fbae0/68d51994d3678214b54acb60_dreamfactory-navbar-logo.svg)](https://www.dreamfactory.com/)

![hamburger](https://blog.dreamfactory.com/hubfs/raw_assets/public/dreamfactory/images/megamenu/menu-hamburger.svg) ![close](https://blog.dreamfactory.com/hubfs/raw_assets/public/dreamfactory/images/megamenu/close-menu.svg)

 Back to main menu

 Products & Services

 Use Cases

 Industries

 Connectors

[Blog](https://blog.dreamfactory.com/)

[FREE 30 Minute Demo](https://www.dreamfactory.com/demo)

[AI Data Gateway](https://www.dreamfactory.com/ai-data-gateway/overview)

[Overview Why DreamFactory exists](https://www.dreamfactory.com/ai-data-gateway/overview) [Data Gov, Comp, Security Policy enforcement at the API layer](https://www.dreamfactory.com/ai-data-gateway/ai-data-governance) [Standard API Layer One contract for every backend](https://www.dreamfactory.com/ai-data-gateway/standard-api-layer) [API Gateway Functionality Routing, auth, rate limits, observability](https://www.dreamfactory.com/ai-data-gateway/api-gateway-functionality) [Deployment & Integration Self-hosted, cloud, hybrid](https://www.dreamfactory.com/ai-data-gateway/on-premise-deployment-and-integration) [Developer Productivity Auto-generated, never hand-coded](https://www.dreamfactory.com/ai-data-gateway/ai-development-accelerated) [AI App Architectures Patterns for RAG, agents, MCP](https://www.dreamfactory.com/ai-data-gateway/enterprise-ai-architectures)

AI Data Models

[AIOpenAI](https://www.dreamfactory.com/use-cases/openai) [GGoogle Gemini](https://www.dreamfactory.com/use-cases/google-gemini) [CAnthropic Claude](https://www.dreamfactory.com/use-cases/anthropic-claude-landing) [LMeta Llama](https://www.dreamfactory.com/use-cases/meta-llama) [MMistral AI](https://www.dreamfactory.com/use-cases/mistral) [CoCohere](https://www.dreamfactory.com/use-cases/cohere)

Services and support

[Quickstart Service Packages Expert-led Quickstarts to production](https://www.dreamfactory.com/services-and-support/quickstart-services-packages)

AI Data Models

[Generate & Manage REST APIs From any database, in seconds](https://www.dreamfactory.com/api-management/generate-rest-apis) [Features Security, scripting, self-hosted & more](https://www.dreamfactory.com/api-management/features) [API Generation The complete guide to auto-generated APIs](https://blog.dreamfactory.com/a-complete-guide-to-api-generation) [API Management Concepts, tools, and best practises](https://blog.dreamfactory.com/what-is-api-management-a-brief-overview-of-api-management-concepts-and-tools?_gl=1*jl0njh*_gcl_au*MjQzMjgwMTc3LjE3ODIzMjI3MzY)

AI Use Cases

[AI Data Access Secure, governed reads for your LLMs](https://www.dreamfactory.com/use-cases/ai-data-access) [MCP Server Drop-in Model Context Protocol](https://www.dreamfactory.com/use-cases/mcp-server) [Legacy Modernization Wrap mainframes with REST](https://www.dreamfactory.com/use-cases/legacy-modernization) [Data Governance Audit every call, enforce every policy](https://www.dreamfactory.com/use-cases/data-governance)

[Customer Case Studies](https://www.dreamfactory.com/case-studies)

[Energy Modernization](https://www.dreamfactory.com/case-studies/energy-snowflake-modernization) [Government Modernization](https://www.dreamfactory.com/case-studies/government-mainframe-oracle-modernization) [Government Business Intelligence](https://www.dreamfactory.com/case-studies/government-sql-server-bi-analyst-queries) [Manufacturing Modernization](https://www.dreamfactory.com/case-studies/steel-manufacturing-sap-erp-modernization) [Financial Services Investor Portal](https://www.dreamfactory.com/case-studies/financial-services-sql-server-investor-portal) [Non-Profit Partner Data Sharing](https://www.dreamfactory.com/case-studies/non-profit-sql-server-partner-data-sharing) [Professional Services Exec Dashboards](https://www.dreamfactory.com/case-studies/professional-services-erp-dashboards) [Education HR and External Data Sharing](https://www.dreamfactory.com/case-studies/education-student-hr-sql-server-mysql-external-data-sharing)

Industries

#### [Healthcare HIPAA-grade APIs across EHR, claims, and labs.](https://www.dreamfactory.com/use-cases/healthcare)

#### [Financial Services Portfolios, partners, and portals on one layer.](https://www.dreamfactory.com/use-cases/financial-services)

#### [Government Modernize mainframes without re-platforming.](https://www.dreamfactory.com/use-cases/government)

#### [Manufacturing SAP, MES, and shop-floor data, governed.](https://www.dreamfactory.com/use-cases/manufacturing)

SQL Database

[SQL SQL Server](https://www.dreamfactory.com/connectors/sql-server) [OR Oracle](https://www.dreamfactory.com/connectors/oracle) [PG PostgreSQL](https://www.dreamfactory.com/connectors/postgresql) [My MySQL](https://www.dreamfactory.com/connectors/mysql)

NoSQL & Docs

[Dy DynamoDB](https://www.dreamfactory.com/connectors/dynamodb) [Do DocumentDB](https://www.dreamfactory.com/connectors/azure-documentdb) [Mo MongoDB](https://www.dreamfactory.com/connectors/mongodb) [Cb CouchDB](https://www.dreamfactory.com/connectors/couch-db)

Cloud Warehouses

[S3 S3](https://www.dreamfactory.com/connectors/amazon-s3) [Ab Azureblob](https://www.dreamfactory.com/connectors/azure-blob) [FS FTP/SFTP](https://www.dreamfactory.com/connectors/ftp-sftp) [LS Local Storage](https://www.dreamfactory.com/connectors/local-storage)

C & SaaS

[Sf Salesforce](https://www.dreamfactory.com/connectors/salesforce) [API REST / SOAP](https://www.dreamfactory.com/connectors/soap-to-rest)

[See all 30+ connectors](https://www.dreamfactory.com/connectors)

[![back arrow](https://blog.dreamfactory.com/hubfs/raw_assets/public/dreamfactory/images/orange-arrow.svg) Blog](https://blog.dreamfactory.com/)

# The Axios Supply Chain Attack Proves Why Server-Side API Credential Management Is Non-Negotiable

 by Kevin McGahey

![calendar icon](https://blog.dreamfactory.com/hubfs/raw_assets/public/dreamfactory/images/calendar-icon.svg) March 31, 2026

Table of contents

RECOMMENDED ARTICLES

- [A Complete Guide to API Generation](https://blog.dreamfactory.com/a-complete-guide-to-api-generation)
- [10 Best API Management Tools](https://blog.dreamfactory.com/what-is-api-management-a-brief-overview-of-api-management-concepts-and-tools)
- [Creating a Microsoft SQL Server API in Less Than 5 minutes with DreamFactory](https://blog.dreamfactory.com/creating-a-microsoft-sql-server-api-in-less-than-5-minutes-with-dreamfactory)
- [Hasura vs. DreamFactory: A Comprehensive Comparison](https://blog.dreamfactory.com/hasura-vs-dreamfactory)
- [Build A Snowflake REST API in Less Than 5 Minutes](https://blog.dreamfactory.com/generate-a-snowflake-rest-api-in-less-than-5-minutes)

## Executive Summary

On March 31, 2026, Axios—the most widely used HTTP client in the JavaScript ecosystem, with approximately 100 million weekly npm downloads and a presence in roughly 80% of cloud environments—was compromised via a hijacked maintainer account. Two malicious versions (1.14.1 and 0.30.4) delivered a cross-platform remote access trojan (RAT) that harvested credentials, SSH keys, cloud tokens, and API secrets from every machine where they were installed. The attack was characterized by security researchers as espionage-grade, not financially motivated. It is the fifth major open-source supply chain attack in March 2026 alone. This article examines the technical details, the downstream enterprise impact, and why self-hosted platforms with server-side credential management—like DreamFactory, a secure, self-hosted enterprise data access platform that provides governed API access to any data source, connecting enterprise applications and on-prem LLMs with role-based access and identity passthrough—are architecturally resilient against this entire class of attack.

## What Happened: The Axios Compromise in Detail

Axios is not just another npm package. It is foundational infrastructure: embedded in frontend frameworks, backend services, mobile applications, and automated build pipelines across the enterprise landscape. When Axios is compromised, the blast radius spans nearly every layer of a modern software organization.

### The Attack Timeline

| Timestamp (UTC) | Event |
| --- | --- |
| March 30, 05:57 | `plain-crypto-js@4.2.0` published by attacker account (`nrwise@proton.me`)—a clean decoy establishing npm publishing history |
| March 30, 23:59 | `plain-crypto-js@4.2.1` published with malicious `postinstall` hook added |
| March 31, 00:21 | `axios@1.14.1` published via compromised maintainer account (email changed to attacker-controlled ProtonMail address) |
| March 31, 01:00 | `axios@0.30.4` published—39 minutes after 1.14.1, covering both active release branches |
| March 31, ~03:15 | npm unpublishes both versions after approximately 2.5–3 hours live |

### How the Maintainer Account Was Hijacked

The attacker compromised the npm account of **jasonsaayman**, Axios's primary maintainer, and changed the registered email to an attacker-controlled ProtonMail address to lock out the rightful owner. A critical forensic indicator: legitimate Axios releases use GitHub Actions with npm's OIDC Trusted Publisher mechanism, creating cryptographic binding between the published package and a verified CI/CD workflow. The malicious versions showed **no trusted publisher, no gitHead, no corresponding GitHub commit or tag**—they were published manually using a stolen classic npm access token.

Collaborator DigitalBrainJS noted in the GitHub issue: *“Since access to git and the npm repository is compromised... I can’t revoke his access.”*

### The Three-Stage Payload

The malicious dependency `plain-crypto-js@4.2.1` was never imported anywhere in the Axios source code. Its sole purpose was to execute a `postinstall` script that triggered automatically during `npm install`:

1. **Dropper Execution:** An obfuscated `setup.js` file (XOR cipher with key “OrDeR\_7077” plus base64 encoding) decoded and contacted C2 server `sfrclak.com:8000` within 2 seconds of install start—before npm even finished resolving the dependency tree
2. **Platform-Specific RAT Delivery:** The dropper downloaded and executed payloads tailored to the target OS: 
     - **macOS:** Mach-O binary dropped to `/Library/Caches/com.apple.act.mond` (disguised as an Apple system cache file)
     - **Windows:** Executable at `%PROGRAMDATA%\wt.exe` (disguised as Windows Terminal) with registry persistence via `MicrosoftUpdate` Run key
     - **Linux:** Python RAT at `/tmp/ld.py`
3. **Anti-Forensic Self-Destruction:** The dropper deleted itself, removed the malicious `package.json`, and renamed a pre-staged clean stub in its place. Post-infection, `npm list` showed no trace of the compromise

### What the RAT Did

All three platform variants functioned as lightweight RATs with consistent capabilities:

- Remote shell execution
- Directory browsing and process listing
- System reconnaissance and file enumeration
- C2 beaconing every 60 seconds
- Binary injection capabilities

Security researchers from multiple firms characterized the operation as **espionage or advanced persistent threat (APT) activity**. The absence of cryptocurrency mining, ransomware, or financial fraud components—combined with the operational sophistication of 18-hour pre-staging, multi-platform payloads, and forensic erasure—pointed to intelligence gathering, credential harvesting, and preparation for lateral movement into production environments.

## Why This Attack Targets Exactly Where Enterprise Credentials Live

The Axios attack was not targeting Axios itself. It was targeting the *environments where Axios runs*—and the credentials those environments contain.

### Developer Machines

Developer laptops and workstations typically hold SSH keys, AWS/GCP/Azure credentials, database connection strings, API keys in `.env` files, Git credentials, and cloud CLI configurations. A single `npm install` on a compromised package delivers all of these to an attacker.

### CI/CD Pipelines

Build servers running `npm install` or `npm ci` automatically resolve and install dependencies—including malicious ones. These environments typically hold deployment credentials, production database passwords, cloud provider tokens, container registry access, and every secret injected as an environment variable. The Axios RAT's `postinstall` hook executed before the build even started.

### Docker Images and Production Builds

Docker images built without version pinning during the 2.5-hour exposure window baked the malicious package into container layers. These images may continue to be deployed from registries long after the npm removal, creating a persistent infection vector.

**The common thread:** every one of these environments stores credentials in places accessible to any code running in the same process—environment variables, config files on the local filesystem, credential helper caches. The Axios RAT knew exactly where to look because *that’s where everyone puts them*.

## The Architectural Lesson: Credential Location Is Credential Security

The Axios attack exploits a structural weakness that no amount of npm hardening can fully eliminate: **if credentials are stored on machines that install packages from public registries, those credentials are one compromised dependency away from exfiltration.**

This is not an Axios problem. It is not an npm problem. It is an **architecture problem**.

Consider the attack surface of a typical enterprise API integration:

- Database passwords stored in `.env` files on developer machines
- Cloud API keys set as environment variables in CI/CD
- Service account tokens written to filesystem configs
- OAuth client secrets embedded in application configuration

Every credential stored this way is vulnerable to any process running on the same machine—including code executed by `postinstall` scripts from transitive npm dependencies that no developer explicitly chose to install.

### How Server-Side Credential Management Eliminates the Attack Surface

DreamFactory’s architecture is built around a principle that directly addresses this vulnerability class: **credentials are stored server-side in encrypted storage on your infrastructure, never on endpoint machines, never in environment variables, and never accessible through public package registry dependency chains.**

#### Self-Hosted Deployment: Your Infrastructure, Your Credentials

DreamFactory runs on your infrastructure—on-premises, private cloud, or your own VPC. Database passwords, API keys, and service credentials are stored encrypted in DreamFactory’s system database, with optional integration with AWS KMS and Azure Key Vault for enterprise key management. A compromised npm package on a developer’s laptop cannot access credentials that exist only inside a hardened server environment.

#### No Public Package Registry in the Credential Path

DreamFactory is deployed as a self-contained application—not a library installed via `npm install` or `pip install` into a shared development environment. The credential management layer has zero dependency on public package registries. There is no transitive dependency chain through which an attacker can inject code into the path between credential storage and credential usage.

#### Client Applications Never See Provider Credentials

When an application or AI agent accesses data through DreamFactory, it authenticates with a scoped DreamFactory API key or session token. DreamFactory then authenticates with the underlying data source using credentials that exist only on the server. The client application—and everything on the client machine, including any compromised npm packages—never sees the database password, cloud API key, or service account token.

If a developer’s machine is compromised, the attacker gets a DreamFactory API key scoped to specific services, endpoints, and fields. They do *not* get the underlying database superuser password or the AWS root credentials.

#### Granular RBAC at Every Layer

DreamFactory enforces role-based access control at the service, endpoint, table, and field levels. Combined with enterprise identity integration (Azure AD/Entra ID, Okta, LDAP, SAML), permissions are governed by your existing identity infrastructure—not by static API keys scattered across team members’ machines. When an employee leaves or changes roles, their API access updates automatically.

#### MCP Server Integration for AI Agent Security

With DreamFactory’s MCP Server (introduced in v7.4.0), AI agents and LLMs access enterprise data through DreamFactory’s governed API layer. The AI agent authenticates with DreamFactory. DreamFactory authenticates with the data source. Provider credentials never leave the server, never appear in agent configurations, and never transit through environments that install packages from public registries.

## What to Do Right Now

### Immediate Actions (Today)

1. **Check installed Axios versions** across all environments: `npm list axios` in every project, CI/CD runner, and Docker image
2. **Search for the malicious dependency:** `ls node_modules/plain-crypto-js`—if this directory exists, the dropper executed
3. **Check for RAT artifacts:** 
     - macOS: `/Library/Caches/com.apple.act.mond`
     - Windows: `%PROGRAMDATA%\wt.exe`
     - Linux: `/tmp/ld.py`
4. **Audit network logs** for connections to `sfrclak.com` or `142.11.206.73`
5. **If compromised: treat the system as fully breached.** Do not attempt to clean in place—rebuild from known-good state and rotate every credential on the machine

### Short-Term Hardening (This Week)

1. **Pin Axios to a known-safe version:** `axios@1.14.0` (or `0.30.3` for 0.x users)
2. **Add overrides to package.json** to prevent malicious version resolution:
   
   ```
   {
     "overrides": { "axios": "1.14.0" },
     "resolutions": { "axios": "1.14.0" }
   }
   ```
3. **Disable postinstall scripts in CI/CD:** `npm ci --ignore-scripts` for all automated builds
4. **Block C2 infrastructure:** Add `sfrclak.com` and `142.11.206.73` to firewall blocklists and DNS sinkholes
5. **Audit all CI/CD pipeline runs** from the exposure window (March 31 00:21–03:15 UTC) and rotate every secret injected into those workflows

### Strategic Architecture Changes (This Quarter)

1. **Move credentials off endpoint machines:** Database passwords, API keys, and service tokens should live in server-side credential management—not in `.env` files, not in CI/CD environment variables, not on developer laptops
2. **Adopt a self-hosted API gateway:** Route application and AI agent traffic through a platform that manages credentials internally, issues scoped tokens to clients, and enforces RBAC at every layer
3. **Implement npm minimum release age:** Configure `min-release-age=7` in `.npmrc` (supported in npm, pnpm, bun, yarn, and uv) to create a buffer window for security scanners to detect anomalies before your systems pull new versions
4. **Evaluate native alternatives:** Modern Node.js includes native `fetch()` support. For use cases that don’t require Axios’s interceptor patterns or upload progress tracking, eliminating the dependency eliminates the attack surface
5. **Implement egress filtering:** Development machines and CI/CD runners should not be able to POST data to arbitrary external domains

## March 2026: The Month That Changed Supply Chain Security

The Axios compromise did not occur in isolation. It is the fifth major open-source supply chain attack in a single month:

| Date | Target | Ecosystem | Mechanism |
| --- | --- | --- | --- |
| March 19 | Trivy (Aqua Security) | GitHub Actions / Docker | CI/CD credential theft via compromised scanner |
| March 21 | Checkmarx AST | GitHub Actions | Identical credential stealer pattern |
| March 24 | LiteLLM | PyPI | Credential harvester via .pth file injection |
| March 27 | Telnyx | PyPI | Compromised package with credential theft |
| March 31 | Axios | npm | Cross-platform RAT via hijacked maintainer account |

The pattern is unmistakable: attackers are systematically targeting high-download-count packages in public registries to harvest credentials from enterprise environments. Whether it is a Python `.pth` file or an npm `postinstall` script, the fundamental exploit is the same: **code from a public registry runs with full access to every credential on the machine where it is installed.**

The only durable defense is architectural: ensure that the credentials worth stealing do not exist on machines that run code from public registries.

## How DreamFactory Fits Into This Landscape

DreamFactory was not designed as a response to npm supply chain attacks. But its architecture—self-hosted deployment, server-side encrypted credential storage, zero reliance on public package registries for credential handling, granular RBAC, and enterprise identity integration—directly addresses the structural weakness that every attack in March 2026 exploited.

With 50,000+ production instances processing over 2 billion daily API calls across healthcare, financial services, government, and manufacturing, DreamFactory provides a proven path to credential isolation. Applications and AI agents authenticate with DreamFactory. DreamFactory authenticates with data sources. The underlying credentials never leave the server.

The Axios attack is a signal: the open-source supply chain is under sustained, sophisticated assault. The question for enterprise teams is not whether their dependencies will be targeted, but whether their architecture limits the damage when it happens. Server-side credential management is no longer a best practice. It is a baseline requirement.

## Frequently Asked Questions

### What exactly happened in the Axios supply chain attack?

On March 31, 2026, an attacker hijacked the npm account of Axios’s primary maintainer (jasonsaayman) and published two malicious versions (1.14.1 and 0.30.4) that included a hidden dependency called `plain-crypto-js@4.2.1`. This dependency’s `postinstall` script executed automatically during `npm install`, downloading and running a cross-platform remote access trojan (RAT) that harvested credentials, performed system reconnaissance, and established persistent backdoor access. The malicious versions were live for approximately 2.5–3 hours before npm removed them, but 3% of affected environments showed observed execution of the malware.

### How does DreamFactory prevent credential theft from supply chain attacks?

DreamFactory is a self-hosted platform providing governed API access to any data source for enterprise apps and local LLMs. Because credentials are stored encrypted server-side—in DreamFactory’s own system database integrated with AWS KMS or Azure Key Vault—they never appear as environment variables, `.env` files, or configuration files on developer machines, CI/CD runners, or any endpoint that installs packages from public registries. Even if a developer’s machine is fully compromised, the attacker obtains only a scoped DreamFactory API key, not the underlying database passwords or cloud provider credentials.

### Was the Axios attack related to the LiteLLM or Trivy compromises?

The Axios attack has not been formally attributed to TeamPCP (the group behind the Trivy, Checkmarx, and LiteLLM attacks). However, it is the fifth major open-source supply chain attack in March 2026. The Axios malware showed hallmarks of espionage-grade operations—multi-platform RATs, 18-hour pre-staging, forensic self-destruction—distinct from the credential-harvesting focus of the TeamPCP campaign. Whether related or independent, the attacks demonstrate that multiple sophisticated threat actors are systematically targeting high-value open-source packages.

### Should I stop using Axios?

The compromised versions have been removed from npm, and clean versions (1.14.0, 0.30.3) remain safe. Modern Node.js includes native `fetch()` support, which eliminates the need for Axios in many use cases. However, Axios provides capabilities not available in native fetch (request/response interceptors, upload progress events, automatic JSON transformation). The decision should be based on whether you need those features, combined with appropriate supply chain hardening: pin versions, use `--ignore-scripts` in CI/CD, and configure minimum release age delays.

### What is the npm minimum release age setting, and should I use it?

Most major JavaScript package managers now support a setting that refuses to install packages published less than a specified number of days ago: `min-release-age=7` (npm, in days), `minimum-release-age=10080` (pnpm, in minutes), `minimumReleaseAge = 604800` (bun, in seconds), and `npmMinimalAgeGate: "3d"` (yarn berry). This creates a buffer window during which security researchers and automated scanners can detect compromised releases before they reach your environments. It would have prevented exposure to the Axios attack entirely.

### How do I know if my organization was affected by the Axios compromise?

Check for the malicious dependency: if `node_modules/plain-crypto-js` exists in any project, the dropper executed. Search for RAT artifacts on macOS (`/Library/Caches/com.apple.act.mond`), Windows (`%PROGRAMDATA%\wt.exe`), and Linux (`/tmp/ld.py`). Audit network logs for connections to `sfrclak.com` or IP `142.11.206.73`. If any indicators are found, assume full system compromise: rebuild from known-good state and rotate all credentials—npm tokens, SSH keys, cloud provider credentials, database passwords, and CI/CD secrets.

![Kevin McGahey](https://blog.dreamfactory.com/hs-fs/hubfs/KevinMcGahey.jpg?width=100&height=100&name=KevinMcGahey.jpg)

Kevin McGahey

Kevin McGahey is an accomplished solutions engineer and product lead with expertise in API generation, microservices, and legacy system modernization, as demonstrated by his successful track record of facilitating the modernization of legacy databases for numerous public sector organizations.

 Stay Connected with   
 The Connector Newsletter!

 Subscribe to stay up-to-date with DreamFactory's latest product updates, API best practices, and tech humor in your inbox.

[![Dreamfactory Logo](https://blog.dreamfactory.com/hubfs/raw_assets/public/dreamfactory/images/megamenu/Megamenu-logo.svg)](https://www.dreamfactory.com/)

[Call Sales +1 (415) 993-5877](tel:+14159935877)

Open – Mon–Fri 9–5 PT

[FREE 30 Minute Demo](https://www.dreamfactory.com/demo)

#### Follow us

- [GitHub](https://github.com/dreamfactorysoftware/dreamfactory)
- [Facebook](https://www.facebook.com/dfsoftwareinc/)
- [X (Twitter)](https://twitter.com/dfsoftwareinc)
- [LinkedIn](https://www.linkedin.com/company/dreamfactory-software)
- [YouTube](https://www.youtube.com/c/dreamfactorysoftware)

### Features

[Features](https://www.dreamfactory.com/features) [Self hosted](https://www.dreamfactory.com/features#self) [API Generation](https://www.dreamfactory.com/features#api) [Security](https://www.dreamfactory.com/features#secure) [Customization](https://www.dreamfactory.com/features#custom) [Pricing](https://www.dreamfactory.com/pricing)

### Installers

[Linux](https://www.dreamfactory.com/features#installer) [Docker](https://www.dreamfactory.com/features#installer) [Kubernetes](https://www.dreamfactory.com/features#installer)

### API Resources

[Documentation](https://docs.dreamfactory.com/) [Case Studies](https://www.dreamfactory.com/stories) [White Papers](https://www.dreamfactory.com/resources/whitepapers) [Academy](https://www.dreamfactory.com/academy) [API Calculator](https://calculator.dreamfactory.com) [Open Source](https://github.com/dreamfactorysoftware)

### Company

[Blog](https://blog.dreamfactory.com/) [Hub](https://www.dreamfactory.com/hub) [About us](https://www.dreamfactory.com/about) [Partners](https://www.dreamfactory.com/partners) [Support](https://www.dreamfactory.com/support) [Connectors](https://www.dreamfactory.com/connectors) [Contact Us](https://www.dreamfactory.com/demo)

 © 2025 DreamFactory. All rights reserved.

[Terms of Use](https://www.dreamfactory.com/terms-of-use) [Privacy Policy](https://www.dreamfactory.com/privacy-policy) [LLMs](https://www.dreamfactory.com/llms.txt)

```json
{
  "@context" : "https://schema.org",
  "@type" : "BlogPosting",
  "author" : {
    "@type" : "Person",
    "name" : "Kevin McGahey",
    "url" : "https://blog.dreamfactory.com/author/kevin-mcgahey"
  },
  "dateModified" : "2026-03-31T17:24:22.795Z",
  "datePublished" : "2026-03-31T17:24:22.000Z",
  "headline" : "The Axios Supply Chain Attack Proves Why Server-Side API Credential Management Is Non-Negotiable",
  "image" : [ "https://blog.dreamfactory.com/hubfs/Generated%20Image%20March%2031%2c%202026%20-%2010_22AM.png" ],
  "mainEntityOfPage" : {
    "@id" : "https://blog.dreamfactory.com/the-axios-supply-chain-attack-proves-why-server-side-api-credential-management-is-non-negotiable",
    "@type" : "WebPage"
  },
  "publisher" : {
    "@type" : "Organization",
    "logo" : {
      "@type" : "ImageObject",
      "url" : "https://blog.dreamfactory.com/hubfs/DreamFactory%20-%20Orange%20-%20Transparent-1.png"
    }
  }
}
```