Microsoft Identifies Cookie Driven PHP Web Shells Maintaining Access on Linux Servers

 

Server-side intrusions are experiencing a subtle but consequential shift in their anatomy, where visibility is no longer obscured by complexity, but rather clearly visible. Based on recent findings from Microsoft Defender’s Security Research Team, there is evidence of a refined tradecraft gaining traction across Linux environments, in which HTTP cookies are repurposed as covert command channels for PHP-based web shells. 
HTTP cookies are normally regarded as a benign mechanism for session continuity.

It is now possible for attackers to embed execution logic within cookie values rather than relying on overt indicators such as URL parameters or request payloads, enabling remote code execution only under carefully orchestrated conditions. 

The method suppresses conventional detection signals as well as enabling malicious routines to remain inactive during normal application flows, activating selectively in response to web requests, scheduled cron executions, or trusted background processes during routine application flows. 
Through PHP’s runtime environment, threat actors are effectively able to blur the boundary between legitimate and malicious traffic through the use of native cookie access. This allows them to construct a persistence mechanism, which is both discreet and long-lasting.

It is clear that the web shells continue to play a significant role in the evolving threat landscape, especially among Linux servers and containerized workloads, as one of the most effective methods of maintaining unauthorised access. 

By deploying these lightweight but highly adaptable scripts, attackers can execute system-level commands, navigate file systems, and establish covert networks with minimal friction once they are deployed. These implants often evade detection for long periods of time, quietly embedding themselves within routine processes, causing considerable concern about their operational longevity. 
A number of sophisticated evasion techniques, including code obfuscation, fileless execution patterns, and small modifications to legitimate application components, are further enhancing this persistence.

One undetected web shell can have disproportionate consequences in environments that support critical web applications, facilitating the exfiltration of data, enabling lateral movement across interconnected systems, and, in more severe cases, enabling the deployment of large-scale ransomware. 

In spite of the consistent execution model across observed intrusions, the practical implementations displayed notable variations in structure, layering, and operational sophistication, suggesting that threat actors are consciously tailoring their tooling according to the various runtime environments where they are deployed. 
PHP loaders were incorporated with preliminary execution gating mechanisms in advanced instances, which evaluated request context prior to interacting with cookie-provided information.

In order to prevent sensitive operations from being exposed in cleartext, core functions were not statically defined at runtime, but were dynamically constructed through arithmetic transformations and string manipulation at runtime.

Although initial decoding phases were performed, the payloads avoided revealing immediate intent by embedding an additional layer of obfuscation during execution by gradually assembling functional logic and identifiers.

Following the satisfacti

[…]
Content was cut in order to protect the source.Please visit the source for the rest of the article.

This article has been indexed from CySecurity News – Latest Information Security and Hacking Incidents

Read the original article: