Threat Advisory

Attackers Can Plant Webshells in AhsayCBS and Steal Backup Credentials

Threat: Malware
Targeted Region: Global
Targeted Sector: Technology & IT
Criticality: High
[subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

Threat actors exploited two critical flaws in AhsayCBS, a backup management console, to gain initial access to internet-exposed servers. The vulnerabilities allowed an authentication bypass and unauthenticated remote code execution, enabling the attacker to plant multiple webshells directly within the application directories. The affected environment consisted of Windows servers dedicated to holding backups, though the exploit also attempted installation paths typical of Linux systems. This activity represents a significant risk because the compromised infrastructure stores critical data and credentials for hypervisors and domain accounts. The operator demonstrated patience by staging various tools and establishing persistent access before moving laterally. Patching the software mitigates the entry point but does not remove artifacts already deployed on the system.

The intrusion involved five distinct webshell families, including a loader disguised as an image preview service that extracted encrypted code from pixel data. Another shell functioned as a signed API, supporting command execution and chunked file transfers for exfiltration. A Python-based implant used environmental keying to verify the host identity before executing an embedded dynamic link library. This component communicated over HTTPS and performed DNS-over-HTTPS lookups for command and control. A separate cryptominer was deployed with a scheduled task that relaunched the process every minute if it was terminated. The operator also staged tunneling tools and remote access software, while creating exclusions in the endpoint protection software to reduce detection capabilities. Additionally, a script queried a backup database to decrypt stored credentials, indicating a focus on extracting sensitive information from the backup infrastructure.[/subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

Threat actors exploited two critical flaws in AhsayCBS, a backup management console, to gain initial access to internet-exposed servers. The vulnerabilities allowed an authentication bypass and unauthenticated remote code execution, enabling the attacker to plant multiple webshells directly within the application directories. The affected environment consisted of Windows servers dedicated to holding backups, though the exploit also attempted installation paths typical of Linux systems. This activity represents a significant risk because the compromised infrastructure stores critical data and credentials for hypervisors and domain accounts. The operator demonstrated patience by staging various tools and establishing persistent access before moving laterally. Patching the software mitigates the entry point but does not remove artifacts already deployed on the system.

The intrusion involved five distinct webshell families, including a loader disguised as an image preview service that extracted encrypted code from pixel data. Another shell functioned as a signed API, supporting command execution and chunked file transfers for exfiltration. A Python-based implant used environmental keying to verify the host identity before executing an embedded dynamic link library. This component communicated over HTTPS and performed DNS-over-HTTPS lookups for command and control. A separate cryptominer was deployed with a scheduled task that relaunched the process every minute if it was terminated. The operator also staged tunneling tools and remote access software, while creating exclusions in the endpoint protection software to reduce detection capabilities. Additionally, a script queried a backup database to decrypt stored credentials, indicating a focus on extracting sensitive information from the backup infrastructure.[emaillocker id="1283"]

The campaign targeted backup servers specifically, suggesting the operator valued the credentials and data stored within these systems. The presence of identical files across multiple hosts indicates a single operator or automated script was responsible for the deployment. The use of custom implants and steganographic techniques shows a deliberate effort to evade standard detection methods. Organizations should verify that hotfixes have been applied and search for unexpected web files, scheduled tasks, and embedded Python installations. Defensive teams should monitor for outbound requests to public resolvers from non-browser processes and review endpoint protection exclusions. A full re-image from trusted backups is recommended if any artifacts are found, along with rotating all credentials stored on or reachable from the affected servers.

THREAT PROFILE:

Tactic Technique Id Technique Sub-technique
Initial Access T1190 Exploit Public-Facing Application -
Execution T1059.003 Command and Scripting Interpreter Windows Command Shell
Execution T1059.006 Command and Scripting Interpreter Python
Persistence T1505.003 Server Software Component Web Shell
Persistence T1053.005 Scheduled Task/Job Scheduled Task
Persistence T1547.001 Boot or Logon Autostart Execution Registry Run Keys / Startup Folder
Defense Evasion T1562.001 Impair Defenses Disable or Modify Tools
Defense Evasion T1027.003 Obfuscated Files or Information Steganography
Defense Evasion T1620 Reflective Code Loading -
Defense Evasion T1480.001 Execution Guardrails Environmental Keying
Credential Access T1555 Credentials from Password Stores -
Impact T1496.001 Resource Hijacking Compute Hijacking

REFERENCES:

The following reports contain further technical details:

[/emaillocker]
crossmenu