Threat Actors Exploiting NGINX Servers
A new cyber campaign where attackers are hijacking web servers to redirect visitors to malicious websites .
The campaign targets NGINX, a popular web server software, and specifically focuses on servers using the Baota (BT) management panel.
The attackers, linked to previous “React2Shell” activity, modify the server’s configuration files to secretly intercept traffic .
The core of this attack involves altering NGINX configuration files. NGINX uses these files to decide how to handle web requests.
Attackers inject malicious rules into the location blocks of these files .
When a user visits a compromised site, the malicious configuration uses the proxy_pass directive to send the user’s request to a server controlled by the hackers, rather than the legitimate website.
This allows the attackers to serve fake content, such as gambling or scam pages, without the site owner immediately noticing .
The Attack Toolkit: Step-by-Step
Datadog Security Labs researchers analysed the specific scripts used in this campaign, revealing a five-stage process :
zx.sh)zx.sh. It acts as a manager, downloading and running the other necessary scripts. It can even create raw network connections if standard tools like curl are blocked .bt.sh)4zdh.sh)/etc/nginx/sites-enabled) and includes error checking. It verifies the configuration is valid before restarting the service to avoid crashing the website and alerting the owner .zdh.sh).in (India) and .id (Indonesia). It uses aggressive methods to restart the server if a standard reload fails .ok.sh)This campaign highlights the importance of securing server configurations. Administrators should regularly check their NGINX location blocks for unexpected proxy_pass directives pointing to unknown domains .
Follow us on Google News, LinkedIn, and X to Get Instant Updates and Set GBH as a Preferred Source in Google.
Attackers abused compromised ConnectWise Cloud Backup credentials to access Microsoft 365 customer environments, prompting ConnectWise…
Anthropic says an internal Claude research model reconstructed how the National Security Agency generated seeds…
Two WordPress Core vulnerabilities can be chained to execute remote code without authentication, according to…
A newly disclosed OpenBSD kernel exploitation chain combines a shared memory accounting flaw with a…
GhostAction attackers have expanded their GitHub credential theft campaign with a second stage that disguises…
Indian authorities have warned that SideCopy hackers are targeting Indian organizations, including academic institutions, with…