Skip to main content
AnalysisPublished

A problem with a shared hosting account

Source Reddit Cybersecurity

0

Discussion

This threat involves cookie-controlled PHP webshells used by attackers to maintain stealthy, persistent access in Linux shared hosting environments. The webshells remain dormant until triggered by specific HTTP cookie values, reducing detection by blending into normal traffic. Attackers use obfuscation and layered payload deployment to evade discovery. Persistence is often maintained via scheduled tasks (cron jobs) within the hosting account, allowing low-noise long-term access without root privileges. The attack pattern can include long periods of inactivity followed by increased malicious activity, sometimes timed to weekends or low-monitoring periods. This technique complicates incident response and detection in shared hosting scenarios.

r/cybersecurity (opens in a new tab)u/DisasterBeautiful4440 points0 comments

Hi there!

Has anyone encountered a web-hosting compromise where the attacker gained access months before the main malicious activity became visible?

I'm investigating a compromised shared-hosting/cPanel account and trying to understand the timeline.

The pattern I'm seeing is roughly this:

  • possible initial compromise in January
  • relatively little visible activity for several months
  • increasing signs of compromise later in the year
  • much more aggressive activity in September
  • some activity appears to happen on Sundays

There was also a directory containing PHP code disguised as image files, consistent with a webshell/backdoor. After I neutralised part of the behaviour, the malicious content appeared to become active again. I was eventually able to observe and remove it when it reappeared.

I'm wondering about two things:

  1. Is it common for an attacker to establish persistence and then remain relatively quiet for months before becoming more active?
  2. Has anyone encountered attackers deliberately timing activity for weekends, holidays, or other periods when the victim's support/IT response is likely to be slower?

I'm particularly interested in real incident-response cases rather than general speculation.

I am not assuming that the January activity and September activity necessarily came from the same actor. I'm trying to determine whether this kind of "low-and-slow persistence followed by later activation" is a known pattern.

Since I don't know have a root access and a hosting company does not want to provide such information as they 'have been too busy solving the problem and getting lots of emails from others' I'm (I guess) left with this by myself.

Also, if the malicious files can recreate themselves after deletion, what persistence mechanisms would you investigate first in a cPanel/shared-hosting environment?

I have found a few interesting articles but am not sure how much they are related to my case:

  1. https://www.microsoft.com/en-us/security/blog/2026/04/02/cookie-controlled-php-webshells-tradecraft-linux-hosting-environments/

  2. https://attack.mitre.org/groups/G0082/

References

Community reviews

Loading reviews…