Threat Advisory

INJ3CTOR3 FreePBX Implant Steals SIP Trunk Credentials

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

EXECUTIVE SUMMARY:

The INJ3CTOR3 campaign targets Asterisk-based phone systems, specifically FreePBX, Issabel, and Elastix, to conduct toll fraud. The initial access vector involves exploiting exposed systems or brute-forcing credentials to plant a password-gated webshell. The threat has evolved significantly, as the implant now exfiltrates critical configuration data to external staging hosts. This shift means that simply removing the malicious code from the infected machine no longer stops the fraud. The risk is severe because the stolen credentials allow the operator to register and place calls from any location, bypassing the victim's own infrastructure entirely. Defenders must recognize that the exposure persists even after the host is cleaned, requiring immediate action to secure the underlying communication channels.

The mechanism relies on a PHP script that executes every minute via cron jobs, uploading seventeen specific configuration files to two distinct staging servers. These files contain SIP trunk secrets, database passwords, and mail relay credentials, which are transmitted via outbound HTTP requests. The webshell uses a rotating gate hash and per-build watermarks to evade detection, while a manipulated access control file allows requests to reach the shell without naming the file in logs. The operator also deploys a takeover script that removes rival implants and creates a backdoor account. Because the credentials are sent off the box continuously, rotating secrets on an infected host immediately hands the new values to the attacker. The split communication channels, with some commands pointing to one host and others to a second, complicate network monitoring and require decoding base64 strings to identify all active connections.[/subscribe_to_unlock_form]

EXECUTIVE SUMMARY:

The INJ3CTOR3 campaign targets Asterisk-based phone systems, specifically FreePBX, Issabel, and Elastix, to conduct toll fraud. The initial access vector involves exploiting exposed systems or brute-forcing credentials to plant a password-gated webshell. The threat has evolved significantly, as the implant now exfiltrates critical configuration data to external staging hosts. This shift means that simply removing the malicious code from the infected machine no longer stops the fraud. The risk is severe because the stolen credentials allow the operator to register and place calls from any location, bypassing the victim's own infrastructure entirely. Defenders must recognize that the exposure persists even after the host is cleaned, requiring immediate action to secure the underlying communication channels.

The mechanism relies on a PHP script that executes every minute via cron jobs, uploading seventeen specific configuration files to two distinct staging servers. These files contain SIP trunk secrets, database passwords, and mail relay credentials, which are transmitted via outbound HTTP requests. The webshell uses a rotating gate hash and per-build watermarks to evade detection, while a manipulated access control file allows requests to reach the shell without naming the file in logs. The operator also deploys a takeover script that removes rival implants and creates a backdoor account. Because the credentials are sent off the box continuously, rotating secrets on an infected host immediately hands the new values to the attacker. The split communication channels, with some commands pointing to one host and others to a second, complicate network monitoring and require decoding base64 strings to identify all active connections.[emaillocker id="1283"]

This campaign has been active since at least 2020, with recent updates showing active development and rotation of identifiers to bypass existing defenses. The operator’s motivation is financial gain through unauthorized international calling, leveraging the victim’s carrier contracts. The scale remains significant, targeting a wide range of organizations that rely on these open-source phone platforms. Defensive implications are clear: organizations must rotate all SIP trunk and database credentials only after confirming the host is clean. Additionally, network egress filtering should block outbound web access from phone systems, and carriers should monitor for trunk registrations from unexpected IP addresses to detect and prevent fraud.

THREAT PROFILE:

Tactic Technique Id Technique Sub-technique
Initial Access T1190.001 Exploit Public-Facing Application Exploit Web Shell
Execution T1059.004 Command and Scripting Interpreter Unix Shell
Persistence T1053.003 Scheduled Task/Job Cron
Persistence T1558.003 Valid Accounts Local Accounts
Defense Evasion T1027.001 Obfuscated Files or Information Binary Padding
Defense Evasion T1070.004 Indicator Removal File Deletion
Defense Evasion T1562.008 Impair Defenses Disable or Modify Tools
Credential Access T1573.001 Steal Credentials from Web Browsers Credentials In Memory
Command and Control T1071.001 Application Layer Protocol Web Protocols
Exfiltration T1041 Exfiltration Over C2 Channel -

REFERENCES:

The following reports contain further technical details:

[/emaillocker]
crossmenu