Article Details

Scrape Timestamp (UTC): 2025-03-07 04:47:53.068

Source: https://thehackernews.com/2025/03/php-cgi-rce-flaw-exploited-in-attacks.html

Original Article Text

Click to Toggle View

PHP-CGI RCE Flaw Exploited in Attacks on Japan's Tech, Telecom, and E-Commerce Sectors. Threat actors of unknown provenance have been attributed to a malicious campaign predominantly targeting organizations in Japan since January 2025. "The attacker has exploited the vulnerability CVE-2024-4577, a remote code execution (RCE) flaw in the PHP-CGI implementation of PHP on Windows, to gain initial access to victim machines," Cisco Talos researcher Chetan Raghuprasad said in a technical report published Thursday. "The attacker utilizes plugins of the publicly available Cobalt Strike kit 'TaoWu' for-post exploitation activities." Targets of the malicious activity encompass companies across technology, telecommunications, entertainment, education, and e-commerce sectors in Japan. It all starts with the threat actors exploiting the CVE-2024-4577 vulnerability to gain initial access and run PowerShell scripts to execute the Cobalt Strike reverse HTTP shellcode payload to grant themselves persistent remote access to the compromised endpoint. The next step entails carrying out reconnaissance, privilege escalation, and lateral movement using tools like JuicyPotato, RottenPotato, SweetPotato, Fscan, and Seatbelt. Additional persistence is established via Windows Registry modifications, scheduled tasks, and bespoke services using the plugins of the Cobalt Strike kit called TaoWu. "To maintain stealth, they erase event logs using wevtutil commands, removing traces of their actions from the Windows security, system, and application logs," Raghuprasad noted. "Eventually, they execute Mimikatz commands to dump and exfiltrate passwords and NTLM hashes from memory on the victim's machine." The attacks culminate with the hacking crew stealing passwords and NTLM hashes from the infected hosts. Further analysis of the command-and-control (C2) servers associated with the Cobalt Strike tool has revealed that the threat actor left the directory listings accessible over the internet, thereby exposing the full suite of adversarial tools and frameworks hosted on the Alibaba cloud servers. Notable among the tools are listed below - "We assess with moderate confidence that the attacker's motive extends beyond just credential harvesting, based on our observation of other post-exploitation activities, such as establishing persistence, elevating to SYSTEM level privilege, and potential access to adversarial frameworks, indicating the likelihood of future attacks," Raghuprasad said.

Daily Brief Summary

MALWARE // Exploitation of PHP-CGI RCE Vulnerability Targets Japanese Sectors

Threat actors exploited the CVE-2024-4577, a PHP-CGI RCE flaw in Windows, affecting multiple sectors in Japan.

Initial access was achieved by running PowerShell scripts that executed Cobalt Strike's reverse HTTP shellcode payload for persistent remote access.

Post-exploitation tactics included use of tools for reconnaissance, privilege escalation, lateral movement, and persistence mechanisms like Registry modifications and scheduled tasks.

Attackers maintained stealth by erasing event logs with wevtutil, making detection difficult.

Credentials such as passwords and NTLM hashes were exfiltrated using Mimikatz post-compromise.

Analysis indicated victim's directory listings on C2 servers and adversarial tools were exposed on the internet.

The end goal of the attack, which extends beyond credential theft, suggests preparation for potential future malicious activities.