{"id":201972,"date":"2026-04-03T11:32:00","date_gmt":"2026-04-03T15:32:00","guid":{"rendered":"https:\/\/testing.news-you-need.com\/index.php\/2026\/04\/03\/microsoft-details-cookie-controlled-php-web-shells-persisting-via-cron-on-linux-servers\/"},"modified":"2026-04-03T14:40:21","modified_gmt":"2026-04-03T18:40:21","slug":"microsoft-details-cookie-controlled-php-web-shells-persisting-via-cron-on-linux-servers","status":"publish","type":"post","link":"https:\/\/testing.news-you-need.com\/index.php\/2026\/04\/03\/microsoft-details-cookie-controlled-php-web-shells-persisting-via-cron-on-linux-servers\/","title":{"rendered":"Microsoft Details Cookie-Controlled PHP Web Shells Persisting via Cron on Linux Servers"},"content":{"rendered":"<p><a href=\"https:\/\/thehackernews.com\/2026\/04\/microsoft-details-cookie-controlled-php.html\">Microsoft Details Cookie-Controlled PHP Web Shells Persisting via Cron on Linux Servers<\/a><\/p>\n<p><a href=\"https:\/\/thehackernews.com\/2026\/04\/microsoft-details-cookie-controlled-php.html\">https:\/\/thehackernews.com\/2026\/04\/microsoft-details-cookie-controlled-php.html<\/a><\/p>\n<p>Publish Date: <a href=\"publish_date]\">2026-04-03 11:32:00<\/a><\/p>\n<p>Source Domain: <a href=\"thehackernews.com\">thehackernews.com<\/a><\/p>\n<p>Author: <a href=\"\"><\/a><\/p>\n<p> Using an unordered list, summarize the following article with between 4 and 8 key points.<br \/>\n\ue804Ravie Lakshmanan\ue802Apr 03, 2026Linux \/ Server Hardening<br \/>\nThreat\u00a0actors are increasingly using HTTP cookies as a control channel for PHP-based web shells on Linux servers and to achieve remote code execution, according to findings from the Microsoft Defender Security Research\u00a0Team.<br \/>\n&#8220;Instead of exposing command execution through URL parameters or request bodies, these web shells rely on threat actor-supplied cookie values to gate execution, pass instructions, and activate malicious functionality,&#8221; the tech\u00a0giant said.<br \/>\nThe\u00a0approach offers added stealth as it allows malicious code to stay dormant during normal application execution and activate the web shell logic only when specific cookie values are present. This\u00a0behavior, Microsoft noted, extends to web requests, scheduled tasks, and trusted background\u00a0workers.<br \/>\nThe\u00a0malicious activity takes advantage of the fact that cookie values are available at runtime through\u00a0the $_COOKIE superglobal variable, allowing attacker-supplied inputs to be consumed without additional parsing. What&#8217;s more, the technique is unlikely to raise any red flags as cookies blend into normal web traffic and reduce visibility.<\/p>\n<p>The\u00a0cookie-controlled execution model comes in different implementations\u00a0&#8211;<\/p>\n<p>A PHP loader that uses multiple layers of obfuscation and runtime checks before parsing structured cookie input to execute an encoded secondary payload.<br \/>\nA PHP script that segments structured cookie data to reconstruct operational components such as file handling and decoding functions, and conditionally writes a secondary payload to disk and executes it.<br \/>\nA PHP script that uses a single cookie value as a marker to trigger threat actor-controlled actions, including execution of supplied input and file upload.<\/p>\n<p>In\u00a0at least one case, threat actors have been found to obtain initial access to a victim&#8217;s hosted Linux environment through valid credentials or the exploitation of a known security vulnerability to set up a cron job that invokes a shell routine periodically to execute an obfuscated PHP\u00a0loader.<\/p>\n<p>This\u00a0&#8220;self-healing&#8221; architecture allows the PHP loader to be repeatedly recreated by the scheduled task even if it was removed as part of cleanup and remediation efforts, thereby creating a reliable and persistent remote code execution channel. Once\u00a0the PHP loader is deployed, it remains inactive during normal traffic and springs into action upon receiving HTTP requests with specific cookie\u00a0values.\u00a0<br \/>\n&#8220;By shifting execution control into cookies, the web shell can remain hidden in normal traffic, activating only during deliberate interactions,&#8221; Microsoft added. &#8220;By separating persistence through cron-based re-creation from execution control through cookie-gated activation, the threat actor reduced operational noise and limited observable indicators in routine application\u00a0logs.&#8221;<br \/>\nA\u00a0common aspect that ties together all the aforementioned implementations is the use of obfuscation to conceal sensitive functionality and cookie-based gating to initiate the malicious action, while leaving a minimal interactive footprint.<\/p>\n<p>To\u00a0counter the threat, Microsoft recommends enforcing multi-factor authentication for hosting control panels, SSH access, and administrative interfaces; monitoring for unusual login activity; restricting the execution of shell interpreters; auditing cron jobs and scheduled tasks across web servers; checking for suspicious file creation in web directories; and limiting hosting control panels&#8217; shell capabilities.<br \/>\n&#8220;The consistent use of cookies as a control mechanism suggests reuse of established web shell tradecraft,&#8221; Microsoft said. &#8220;By shifting control logic into cookies, threat actors enable persistent post-compromise access that can evade many traditional inspection and logging controls.&#8221;<br \/>\n&#8220;Rather than relying on complex exploit chains, the threat actor leveraged legitimate execution paths already present in the environment, including web server processes, control panel components, and cron infrastructure, to stage and preserve malicious\u00a0code.&#8221;<\/p>\n<p><\/p>\n","protected":false},"excerpt":{"rendered":"<p>Microsoft Details Cookie-Controlled PHP Web Shells Persisting via Cron on Linux Servers https:\/\/thehackernews.com\/2026\/04\/microsoft-details-cookie-controlled-php.html Publish Date:&#8230;<\/p>\n","protected":false},"author":1,"featured_media":201973,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"fifu_image_url":"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEg_2zEf8l08MTElI1sGlJPVVWtscud2RAXdsivOvcby3pO4NUWMBioT3FNaFL7Bw0GeEqnX_WqY10FVqXhVNBTOrl0UMPoyun7AvshwpvfJIdfdJ0yJ1V2mz7ZHQDE9motXuuW6urvTJYu0kLGvpZf10Qx1hNeobD4YV25tJY9nvNoW9Sqd8nSsWK7NWQP0\/s1600\/php-linux.jpg","fifu_image_alt":"","footnotes":""},"categories":[15],"tags":[31,34,27],"class_list":["post-201972","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-cybersecurity","tag-exploit","tag-threat-actor","tag-vulnerability"],"_links":{"self":[{"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/201972"}],"collection":[{"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/comments?post=201972"}],"version-history":[{"count":1,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/201972\/revisions"}],"predecessor-version":[{"id":201974,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/posts\/201972\/revisions\/201974"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/media\/201973"}],"wp:attachment":[{"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/media?parent=201972"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/categories?post=201972"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/testing.news-you-need.com\/index.php\/wp-json\/wp\/v2\/tags?post=201972"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}