Search This Blog

Powered by Blogger.

Blog Archive

Labels

Footer About

Footer About

Labels

Showing posts with label Software Supply Chain Attack. Show all posts

Trojanized npm Packages Distribute RedC2 4.0 Linux Backdoor Across Systems


In an investigation uncovered by cybersecurity researchers, 14 trojanized NPM packages have been masquerading as legitimate calendar modules and utility modules while secretly delivering a Linux backdoor powered by artificial intelligence (AI) known as RedC2 4.0. 


Upon importation of the malicious packages, TrendAI, Trend Micro's enterprise cybersecurity company, explains that they execute the payload bundled with the module without any installation hooks required. In the code, the embedded binary is located, permissions are changed to make it executable, and it is then launched as a detached background process. 

As a result, even a transitive dependency can trigger the backdoor when a compromised package is loaded. It is concealed under filenames such as math-core.bin and calc-math.dat that the malicious payload is concealed in order to prevent raising suspicion. Through the embedded Linux beacon, attackers are able to communicate with remote infrastructure and gain access to affected systems to conduct further malicious activities. 

RedC2 4.0 has been actively developed with capabilities extending beyond basic remote access. Along with interactive shell access and system reconnaissance, its Linux component facilitates data collection, including the theft of sensitive information such as SSH keys, through its Linux component. The comprehensive framework also encompasses file transfer, network visualization, host-to-host tunneling, and in-memory payload execution, highlighting the growing threat posed by malicious software packages. 

Malicious Packages Retain Legitimate Functionality

In spite of the fact that the compromised packages do not appear to be obviously malicious, they continue to provide the calendar and date-related functions described in their package descriptions. The malicious code, however, is concealed within the package structure, in which files such as math-core.bin, math-calc.bin, calc-math.dat, calc-cache.bin, calc.bin and calc-mapping.bin are listed as native components. 

There are two types of files stored within the dist/ directory: either directly under the dist/ directory or in dist/internal/ directory. Even though the names of these packages differ, they contain the RedShell Linux beacon that is associated with RedC2 4.0. The package entry file, dist/index.mjs, serves as a loader. It re-exports the valid date utilities while simultaneously initiating the embedded implant. By doing so, the malicious component does not require an installation hook or specific function call to execute. 

RedShell Gives Attackers Remote Access

RedShell beacons establish communication with remote command-and-control servers once they become active and register compromised systems. Prior to entering a command-processing LO, they collect basic information about the host. 

Through /bin/sh, the Linux beacon provides an interactive shell and allows for a wide range of system operations, including system discovery, file management, collection of data, and execution of commands. This implant also has the capability of searching for sensitive information, including SSH keys and browser credentials. In addition to persistence and in-memory ELF execution, it also supports SOCKS5 proxying. 

The network pivoting capabilities further enable an attacker to use compromised systems as an entry point into other environments. This version of RedC2 4.0 also provides similar features across macOS and Windows. The framework provides file operations, host and network reconnaissance, enumeration of users, and data collection. 

The Windows component also offers capabilities such as bypassing UAC, tampering with security tools, and lateral movement. 

RedC2 Framework Adds AI Assisted Operations

For Windows, Linux, and Mac OS, RedC2 4.0 is presented as a cross-platform command-and-control framework. As of August 2025, the framework has been actively developing, with version 3.0 appearing in January 2026 and version 4.0 released in June. In addition to the RedShell Linux beacon, the latest version offers a comprehensive set of post-exploitation functionality. 

There are several features in this framework, including access to terminals, file transfers, staged payload delivery, multi-beacon management, network visualisation, host-to-host tunnelling, and execution of BOFs, .NET assemblies and shellcode in memory. 

As an important addition, Red Agent is an artificial intelligence-assisted component with a large language model. It allows operators to describe tasks in natural language and have these instructions translated into beacon commands by the framework. By incorporating this feature, operations such as network reconnaissance and credential collection can be simplified. Moreover, it decreases the technical knowledge required to operate more complex framework functions. 

Supply Chain Risks Extend Beyond npm

A wider pattern of attacks is being observed against software ecosystems as a result of the incident. In recent years, development teams have increasingly relied on third-party packages, which often include binaries and transitive dependencies that are not visible to developers. 

A package can appear useful and maintain normal behavior while carrying a separate native payload even though it has legitimate functionality present, making it particularly difficult to detect such attacks during routine code reviews. As part of the RedC2 campaign, three legitimate Rust crates were also subjected to a recent supply chain attack. These packages have been modified in order to include a malicious dependency capable of executing malware during cargo builds. 

In addition to targeting multiple development ecosystems rather than focusing exclusively on NPM, the incidents reinforced the need for tighter dependency controls for development and infrastructure teams. When possible, it is recommended that package versions be pinned and dependencies and embedded binaries be reviewed before entering production environments. 

It is possible to detect suspicious activity by monitoring unexpected process creation and outbound network connections from build systems. As the number of malicious packages carrying backdoors continues to increase, software supply chains continue to be an important entry point for malicious entities. By including AI-assisted functionality to frameworks such as RedC2, operational capabilities are further improved following an initial compromise.

TeamPCP Exposes the Hidden Risks of Software Development’s Speed Culture


Software industry companies have emphasized development velocity as a competitive advantage for years, streamlining release cycles, automating deployments, and increasingly utilizing sprawling open-source ecosystems to accelerate innovation as a competitive advantage. However, a recent campaign orchestrated by TeamPCP has revealed the security debt underpinning that speed-first approach.

Within a short period of time, the threat actor compromised more than 1,000 software packages and weaponized trusted development channels, showing the reliance on assumptions rather than verification that modern software supply chains have in place. The most recent escalation occurred following the public release of the Shai-Hulud worm's source code, a malicious tool previously used in numerous supply chain intrusions, along with operational guidance aimed at encouraging broader misuse. 

Through open distribution of the malware and promotion of a reward-driven "supply chain challenge," TeamPCP has demonstrated its ability to shift the threat from a single adversary to a potentially broader ecosystem threat. There is a growing reality for software developers, enterprises, and security teams alike that this development emphasizes: the greatest vulnerability in modern software development is not necessarily a flaw in the code itself, but rather a trust placed in repository repositories, dependencies, and automated workflows. 

A key component of TeamPCP's campaign is the ability to weaponize vulnerabilities already embedded within modern software development practices rather than developing new malware and previously unknown exploitation techniques. With organizations accelerating release cycles through automated continuous integration/continuous delivery pipelines and increasingly integrating artificial intelligence-driven coding assistants, trust decisions are making more frequently without meaningful human verification.

The security research community notes that this environment has created a fertile ground for supply chain abuse, in which unvetted packages, compromised dependencies, and stolen publisher credentials are able to move through development workflows at unprecedented speed. TeamPCP demonstrates exactly how a single compromise within a trusted distribution channel can have an impact on thousands of downstream users through a single breach. 

In the process of conducting the attacks, the group has highlighted a long-standing industry concern: although software packages are often thoroughly tested before deployment, identities, credentials, and publishing environments that distribute those packages are usually less scrutinized. It is believed that much of TeamPCP activity may be attributed to a small group of operators following threat intelligence investigations conducted by Palo Alto Networks and Google. These investigations have identified a central figure known online as "ResoluteXBF" with connections to South African-based infrastructure. 

Even though the group was relatively new when it emerged in 2010, it has rapidly evolved from the Shai-Hulud campaign to subsequent operations that involved malware such as GlassWorm, as well as the public release of Shai-Hulud's source code, and even a high-profile GitHub breach that compromised Visual Studio Code to expose thousands of private repositories. 

The security analysts cite these incidents as evidence that attackers have shifted their approach, making developers themselves primary targets and trusted software ecosystems the preferred method of intrusion. As a result, TeamPCP's significance is greater than its volume of compromises, but it also illustrates the fragility of trust relationships that continue to underpin large portions of open-source supply chains throughout the world. 

Researchers gained a better understanding of TeamPCP's operations after digging deeper into the company's operations. Palo Alto Networks' threat intelligence assessments identified a central figure operating under the alias "ResoluteXBF," as well as associates known as "diencracked" and "Shinigami." However, numerous researchers remain of the opinion that the group is an essentially loosely connected operation with a relatively small core.

There has been speculation that a successful law enforcement action against a few individuals or possibly even one key operator  could significantly disrupt the campaign based on this structure. Even so, the group's influence has surpassed its apparent size. TeamPCP has consistently been associated with underground communities and criminal affiliates linked to BreachForums, DragonForce, ShinyHunters, Vect, Lapsus$, and HasanBroker, thereby expanding its influence and reputation through these networks. 

One notable instance occurred when the group advertised 4,000 private code repositories with a reported asking price of $95,000 on a dark web forum. Despite this, researchers contend the group is not solely concerned with financial gain. Based on the group's behavior, such as public feuds, open recruitment, reward-based challenges for supply-chain attacks, and deliberate release of offensive tooling, it is apparent that the campaign is centered on notoriety, disruption, and influence within cybercrime circles.

It is clear from TeamPCP's own metrics that there is a significant disparity: even though the group has claimed more than 10,000 victims, and earned approximately $90,000 in extortion-related earnings, its reputation and operational damage have been disproportionately greater than its revenues. 

TeamsPCP has been aggressively targeting open-source repositories and developer infrastructure in order to spread credential-stealing malware designed to harvest credentials, cloud credentials, and secrets associated with Kubernetes environments, Amazon Web Services, Microsoft Azure, Google Cloud, and other enterprise platforms. This impact is visible across the software ecosystem. Those organizations affected directly or indirectly by compromised packages include Checkmarx, Bitwarden, LiteLLM, Telnyx, Mercor AI, PyTorch Lightning, AntV, SAP, GitHub, TanStack, UiPath, Mistral AI, Microsoft DurableTask, Red Hat, and Nx Console, among others. 

Researchers have estimated that malicious packages linked to TeamPCP represent nearly 500 million weekly downloads, showing how a compromise which affects only a few repositories can spread rapidly due to interconnected dependency chains. 

The success of the group has largely been attributed to its understanding of modern development workflows rather than its malware sophistication. Through compromise of CI runners, TeamPCP effectively converted trusted software distribution channels into malware delivery channels by compromising automated systems that build, test, and publish software. 

By automatically retrieving the infected updates from a repository, downstream developers were able to retrieve them using package managers, GitHub Actions, Python libraries, NPM registries, and other software components that were configured to pull the latest releases from the repository. Using the security best practices strategy, the group aims to exploit a fundamental characteristic of software development: rapid patching and continuous updates encourage rapid trust automation, resulting in an environment where trust is routinely automated on a large scale. 

Researchers note that the group's operational tempo remains unusually aggressive. New package compromises occur almost every day, with validations, credential harvestings, and follow-on activities occurring shortly after initial access. The detection speed of defenders has increased, resulting in some malware packages being exposed within minutes, rather than several hours, as whereas TeamPCP has continued to adapt its techniques. 

A variety of toolsets have been developed by it, ranging from JavaScript and Python-based payloads to Kubernetes API attacks, bundled software development kits, and custom credential theft mechanisms. Additionally, the group's objectives have grown as they have spread the use of Mini Shai-Hulud, a self-replicating malware strain that infected hundreds of open-source packages across multiple registries, and was then publicized to encourage imitations. These developments indicate that a scale-oriented operating model has taken precedence over precision as an operating model. 

As an alternative to focusing on a select number of high-value targets, TeamPCP has adopted an approach aimed at maximizing downstream exposure, exploiting interconnected software dependencies, and generating disruption across as many environments as possible in order to maximize downstream exposure a formula that has made it one of the most consequential supply-chain threats facing the open-source community in recent years. 

The TeamPCP campaign emphasizes that the most disruptive cyber threats do not always arise from sophisticated exploits or new malware. The most common causes of these attacks are vulnerabilities in trust mechanisms that maintain the rapid pace of software development. 

By exploiting interconnected repositories, automated build systems, and dependency chains repeatedly, the threat actor has demonstrated how quickly a localized compromise can ripple across the entire digital landscape. 

Software supply chains are becoming increasingly complex, and AI-driven development is accelerating code adoption, so organizations are under increasing pressure to strengthen publisher security, validate dependencies, protect development environments, and continuously monitor build pipelines. As a consequence of TeamPCP, the resilience of the software ecosystem will be dependent not only on securing code, but on verifying every link in the delivery chain.