Malware Targets FreePBX Servers to Steal SIP Credentials for Phone Fraud

Attackers focusing on FreePBX-based phone servers have upgraded their toolset so they can steal credentials that allow fraud to continue even after an infected system is rebuilt.

The campaign, tracked as INJ3CTOR3, now harvests configuration files that contain SIP trunk secrets, database credentials, administrative backdoor passwords, and mail-relay logins — extending the impact beyond the compromised host.

This escalation builds on an earlier wave of abuse in which fraudsters used victims’ own PBX systems to place unauthorized calls. While previously described six-layer persistence techniques let the malware survive removal attempts, the theft of carrier credentials gives attackers an alternate way to charge calls to the victim’s account.

Researchers at Cyble Research & Intelligence Labs discovered the updated components while examining artifacts taken from the operation’s staging servers in September 2026. In an analysis published October 28, they describe an installer that is configured to upload 17 files on a repeating schedule. The team recovered the upload commands but did not observe live exfiltration nor determine how many victims were affected.

How the updated attack works

The revised installer contains two groups of encoded commands, each directing configuration uploads to a different staging server. The malware installs scheduled tasks that run the installer every minute, repeatedly exposing secrets for the duration of the infection.

That behavior means simply changing passwords before removing the malware can hand new credentials right back to the attacker. The targeted files cover configurations from FreePBX, Issabel, Elastix, Asterisk and Postfix.

Specifically, the collectors focus on SIP and PJSIP authentication settings, Asterisk Manager Interface (AMI) credentials, database passwords, and outbound mail authentication details — exposing both the telephony services and supporting infrastructure.

INJ3CTOR3 attack chain (Source – Cyble)

SIP trunk credentials are especially valuable because they authenticate a business’s connection to its telephony carrier. If the carrier does not restrict trunk registration to approved IP addresses, stolen credentials let attackers register from another host and place calls without touching the original PBX — calls that may not appear in logs on a cleaned server.

The operation still uses the JOMANGY and ZenharR webshells to execute remote commands and access telephony functions. Prior FreePBX webshell exploitation has shown how attackers combine administrative access, backdoor accounts and outbound calling to monetize compromised VoIP infrastructure.

Cyble also observed modifications intended to evade older detection rules: webshell watermark strings now vary across builds and the webshell authentication-gate hash has changed. The core persistence techniques remain largely the same, including scheduled downloads, login-triggered actions, protected backup files and multiple webshell copies that can restore deleted components.

Detection and recovery: rotate credentials and remove persistence

A normal-looking FreePBX dashboard should not be taken as proof that a server is clean. In lab testing, Cyble demonstrated that an Asterisk trunk can be created directly in configuration files and carry calls without appearing in the FreePBX console — although the researchers did not see this campaign planting such a trunk in the wild.

The malware also alters web-server rewrite rules so requests containing encoded whitespace can reach a webshell without the file name appearing in access logs. The takeover script clears logs and shell histories, reducing the artifacts available for post-incident reconstruction.

Effective recovery requires isolating the system, preserving evidence, removing all persistence mechanisms, and only then rotating any credentials that may have been exposed. Previous guidance for FreePBX zero-day compromises likewise emphasizes fully restoring systems from a trusted image and replacing system, trunk, extension and other account secrets rather than relying on patching alone.

k.php line 34, decoded into 17 file uploads (Source – Cyble)

Administrators should work with their carriers to replace trunk credentials, retain registration and billing records for investigation, restrict allowed source IPs for trunks, and apply spending limits where the carrier supports them.

Monitoring should include detection of unexpected SIP registrations, calls to premium-rate destinations, anomalous call concurrency, and outbound configuration uploads. Cyble recommends rebuilding compromised systems from a trusted image as the most reliable recovery approach.

Indicators of compromise (IoCs)

Type Indicator Context
IPv4 45[.]95[.]147[.]178 Original staging server
IPv4 160[.]119[.]69[.]4 Additional staging server
URL hxxp://45[.]95[.]147[.]178/hima_data/index.php Credential collector
URL hxxp://160[.]119[.]69[.]4/hima_data/index.php Credential collector
SHA-256 c6e64453ea8bc0856333b6f57567c9efd8c440410787cae135d1c4a248c07c0d Shared takeover script
SHA-256 38edbfc4ac89619d2bdb3f4bb2626deaaf422868d6d7af640f59d7959903f838 Original-server installer
SHA-256 1c14a761620691a43b1a554a9eccd38d21c15d59463945250d4f57b10d20fce9 Additional-server installer
SHA-256 b54a8d9e98ff36dfe63b2aea97a2003b670f7311595bb4dd072850fed5900a0b Original-server wr.php
SHA-256 aa6dfd7ee90d9aea5af29ae39c14ff70cf8687118abadd7aa4fc98923f01ffd1 Additional-server wr.php
SHA-256 adeb015fdb37814edc3ed45230f48d2b0e87bb195a5a7e4487c01549b47c744c Original JOMANGY build
SHA-256 d345671e688ee807e1bb9b6fc45e6bb0611bbb1331c33888c8030ec2db47e672 Additional JOMANGY build
String trace_bd42a8a0d23ae16c85dede7d2abaec05 Original-build watermark
String trace_7544725ebaaadac217dfaa7ca8e8fe7e Additional-build watermark
MD5 8b3a1d970fda0c17a0b785a990fb7b6a Webshell authentication gate
Hash prefix $1$nRz1Cbtk$ Backdoor-account password marker

Note: IP addresses and domains are intentionally defanged (for example, [.] in place of .) to prevent accidental resolution or hyperlinking. Re-fang only inside controlled threat-intelligence platforms such as MISP, VirusTotal, or your SIEM.

Give your SOC the alert context to stop incidents quickly. Integrate threat intelligence from 16K SOCs.

spot_img

More from this stream

Recomended