CVE-2025-64328 CrowdStrike LogScale · LogScale

Detect Sangoma FreePBX OS Command Injection (CVE-2025-64328) in CrowdStrike LogScale

Detects exploitation of an OS command injection vulnerability in Sangoma FreePBX. An authenticated or unauthenticated attacker may inject arbitrary OS commands through vulnerable FreePBX web interfaces or API endpoints, leading to remote code execution on the underlying Linux host. This vulnerability is tracked as CVE-2025-64328 and is listed in CISA's Known Exploited Vulnerabilities catalog.

MITRE ATT&CK

Tactic
Initial Access Execution Persistence

LogScale Detection Query

CrowdStrike LogScale (LogScale)
cql
event_simpleName=ProcessRollup2
| search ParentBaseFileName IN ("asterisk", "httpd", "apache2", "php", "nginx", "amportal")
| search FileName IN ("sh", "bash", "dash", "ksh", "python", "python3", "perl", "nc", "ncat", "curl", "wget", "socat", "base64", "id", "whoami", "mkfifo")
| search CommandLine IN ("*wget *", "*curl *http*", "*bash -i*", "*/dev/tcp*", "*python -c*", "*perl -e*", "*nc -e*", "*mkfifo*", "*base64 -d*", "*socat*")
| table _time, ComputerName, UserName, FileName, CommandLine, ParentBaseFileName, ParentCommandLine
| sort - _time
critical severity high confidence

CrowdStrike Falcon query detecting shell spawning from FreePBX/Asterisk parent processes via ProcessRollup2 events, indicative of OS command injection.

Data Sources

CrowdStrike Falcon EDRFalcon Process Telemetry

Required Tables

ProcessRollup2

False Positives & Tuning

  • Authorized system administrators running shell commands via FreePBX admin console features
  • CrowdStrike RTR (Real Time Response) sessions that appear as child processes
  • Asterisk AGI scripts that legitimately invoke system commands as part of telephony logic

Other platforms for CVE-2025-64328


Testing Methodology

Validate this detection against 4 adversary techniques from Atomic Red Team. Each test below lists the behaviour to exercise and the telemetry you should expect to see. Executable commands and cleanup steps are available with Pro.

  1. Test 1FreePBX OS Command Injection via Admin Web Interface Parameter

    Expected signal: Linux audit log entry for execve of 'id' with ppid mapping to httpd/apache2; DeviceProcessEvents showing id or sh spawned from apache2 parent process

  2. Test 2Reverse Shell Establishment via FreePBX Command Injection

    Expected signal: DeviceNetworkEvents showing outbound TCP connection from FreePBX host to ATTACKER_IP:4444 initiated by bash process with asterisk user context; auditd execve of bash with -i flag

  3. Test 3Post-Exploitation Persistence via Cron Job Implant

    Expected signal: File creation or modification event for /var/spool/cron/asterisk; auditd SYSCALL write to cron spool directory by asterisk UID

  4. Test 4Web Shell Deployment Following FreePBX Command Injection

    Expected signal: File creation event for shell.php in FreePBX web root directory with www-data initiating process; subsequent HTTP GET request to shell.php with cmd parameter; DeviceProcessEvents showing id spawned from httpd/apache2

Unlock Pro Content

Get the full detection package for CVE-2025-64328 including response playbook, investigation guide, and atomic red team tests.

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections