The discovery of malicious Apache modules being used to hijack Brazilian government and educational websites highlights a particularly dangerous form of server compromise: attackers are no longer merely defacing websites or dropping obvious malware. They are modifying the web server itself so that a legitimate and trusted domain becomes part of the attack infrastructure. 

Researchers have linked the activity to a Chinese-speaking cybercrime cluster tracked as Gambling Goblin. The attackers reportedly install malicious Apache modules on compromised Linux servers and use them to reverse-proxy visitors toward phishing and online gambling pages. Because the redirection occurs from infrastructure belonging to legitimate organizations, users may continue to see what appears to be a trusted government domain while attacker-controlled content is being delivered behind it.

The Apache Module Is the Real Concern 

Apache modules operate deep inside the web-server process. A malicious module therefore provides attackers with capabilities that are substantially more powerful than simply placing a malicious JavaScript file in a website directory.

Once loaded into Apache, a rogue module can potentially inspect incoming requests, modify responses, redirect selected users, remove security headers and proxy content from attacker-controlled servers.

In this campaign, researchers observed the malicious modules stripping security headers from legitimate websites and proxying phishing pages that impersonated platforms such as Google Play, Microsoft Store and Amazon.

This architecture also makes detection more difficult. The legitimate website may continue functioning normally for many visitors while only certain requests, search-engine crawlers or selected traffic are manipulated.

Reputation Has Become an Attack Surface 

One of the more interesting aspects of this campaign is that the attackers appear to be exploiting something organizations rarely classify as a security asset: domain reputation.

Government and educational domains often have strong search-engine authority and are naturally trusted by users. Compromising such infrastructure allows attackers to borrow that reputation.

The reported campaign appears partly designed to manipulate search-engine rankings by using compromised high-reputation domains to promote gambling websites. Similar SEO-fraud techniques have previously been observed against compromised IIS infrastructure as well.

This creates an important shift in how website compromises should be evaluated.

A compromised server does not necessarily have to steal information from the organization hosting it to be valuable to an attacker. The attacker may instead steal the organization's reputation, search ranking, infrastructure and trust relationship with visitors.

The Compromise Goes Well Beyond Website Redirection 

The tooling associated with the campaign indicates that the attackers are attempting to establish persistent control over compromised Linux servers.

Researchers identified several tools within the attack infrastructure, including a custom downloader called DownPro, the AlphaAgent modular backdoor, the oRAT remote-access Trojan, a credential-stealing utility based on 3snake, an SSH brute-forcing tool and a plugin-based reconnaissance agent.

The inclusion of credential-stealing capabilities is particularly significant. The 3snake technique can attach itself to processes such as `sshd` and `sudo` and extract authentication-related information from compromised systems.

This means administrators attempting to investigate or repair a compromised server could potentially expose additional privileged credentials simply by logging into it.

Traditional Website Monitoring May Miss This Attack 

Many organizations still monitor web-server security primarily by checking application files, CMS plugins and visible website changes.

That approach is inadequate against attacks operating inside the web-server runtime.

Administrators should also monitor the Apache configuration and module environment, including:

* Unexpected modules loaded through `LoadModule`
* Newly created or modified `.so` files in Apache module directories
* Changes to Apache configuration files
* Modifications to virtual-host configurations
* Unexpected reverse-proxy directives
* New outbound connections originating from Apache worker processes
* Changes to response headers
* Unexpected child processes launched by `httpd` or `apache2`
* New SSH keys, accounts or scheduled tasks
* Changes in hashes of critical server binaries and modules

File-integrity monitoring should therefore extend beyond website directories such as `/var/www` and include the web-server binaries, libraries, modules and configuration directories.

Outbound Traffic from Web Servers Deserves More Attention 

Web servers are normally considered inbound-facing infrastructure. As a result, organizations frequently impose strict inbound filtering while allowing comparatively unrestricted outbound communication.

That assumption becomes dangerous after compromise.

A malicious Apache module acting as a reverse proxy requires the server to establish outbound connections toward attacker-controlled infrastructure. Restricting outbound communication from internet-facing servers can therefore significantly limit this type of attack.

A production web server generally should not have unrestricted access to arbitrary internet destinations.

Organizations should consider implementing outbound policies that permit only explicitly required services such as operating-system repositories, DNS, NTP and approved backend services.

Unexpected outbound HTTP or HTTPS connections originating from Apache itself should receive particular scrutiny.

A Web Application Firewall Alone May Not Be Enough 

This incident also demonstrates an important architectural limitation.

A WAF typically analyzes traffic entering or leaving a web application. But if the web server itself has been compromised and a malicious Apache module is generating or proxying the response, some malicious activity may appear to be perfectly legitimate server behavior.

Security therefore has to extend beyond application-layer request inspection.

Organizations hosting critical web infrastructure should combine WAF protection with server hardening, endpoint detection, configuration monitoring, file-integrity verification, network behaviour analysis and strict administrative-access controls.

Treat the Web-Server Runtime as Part of the Security Boundary 

The larger lesson from this campaign is simple: protecting the website files is no longer enough.

Administrators must protect the entire execution environment responsible for delivering the website.

That means monitoring Apache modules, shared libraries, configuration files, privileged accounts, running processes and outbound network behaviour alongside the application itself.

When attackers can insert themselves directly into the web-server process, they gain something extremely valuable: the ability to make malicious content appear as though it originated from infrastructure users already trust.

And that trust may ultimately be more valuable than the website itself.


A Chinese-speaking cybercrime cluster known as Gambling Goblin has been observed installing malicious Apache modules on compromised web servers run by Brazilian government and educational institutions, and using them to divert visitors to attacker-controlled pages promoting online gambling and sports betting. Check Point Research said it has tracked the campaign since mid-2025. The modules

Source: Malicious Apache Modules Hijack Brazilian Government Site Traffic to Push Betting Pages via The Hacker News — published 02 Sep 2026.