CVE-2024-7694 Elastic Security · Elastic

Detect TeamT5 ThreatSonar Anti-Ransomware Unrestricted File Upload (CVE-2024-7694) in Elastic Security

CVE-2024-7694 is an unrestricted file upload vulnerability (CWE-434) in TeamT5 ThreatSonar Anti-Ransomware. An attacker can upload files with dangerous types to the ThreatSonar management interface, potentially achieving remote code execution on the host running the security product. This vulnerability is listed in CISA's Known Exploited Vulnerabilities catalog, indicating active exploitation in the wild. Successful exploitation of a security product creates a high-impact scenario where the attacker may gain privileged access to the endpoint security management plane.

MITRE ATT&CK

Tactic
Initial Access Execution Persistence

Elastic Detection Query

Elastic Security (Elastic)
eql
sequence by host.name with maxspan=5m
  [file where event.action in ("creation", "overwrite") and
   (
     file.path : ("*threatsonar*", "*ThreatSonar*", "*antiransomware*") or
     process.name : ("*threatsonar*", "*ThreatSonar*")
   ) and
   file.extension : ("php", "asp", "aspx", "jsp", "war", "exe", "dll", "bat", "cmd", "ps1", "sh", "py")]
  [process where event.action == "start" and
   (
     process.parent.name : ("*threatsonar*", "*ThreatSonar*", "w3wp.exe", "java") or
     process.name : ("cmd.exe", "powershell.exe", "sh", "bash", "python*", "php*")
   ) and
   not process.args : ("*update*", "*patch*", "*install*")]
critical severity medium confidence

EQL sequence detecting a dangerous file written to ThreatSonar paths followed by a suspicious process spawn, indicating webshell upload and execution via CVE-2024-7694.

Data Sources

Elastic Endpoint SecurityFilebeat with Sysmon moduleAuditbeat

Required Tables

logs-endpoint.events.file-*logs-endpoint.events.process-*

False Positives & Tuning

  • Legitimate ThreatSonar maintenance windows deploying executables
  • Security product self-update mechanisms
  • Authorized red team exercises targeting the endpoint security stack
  • Java-based ThreatSonar components spawning child processes during normal operation

Other platforms for CVE-2024-7694


Testing Methodology

Validate this detection against 3 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 1Simulate web shell upload to ThreatSonar upload directory

    Expected signal: Sysmon Event ID 11 (FileCreate) showing creation of .php file in ThreatSonar path; DeviceFileEvents in MDE showing FileName=test_shell.php in ThreatSonar directory

  2. Test 2Simulate ASP webshell drop via PowerShell (ThreatSonar IIS context)

    Expected signal: Sysmon Event ID 11 with TargetFilename matching *.aspx in wwwroot/threatsonar; IIS log entry if file is subsequently requested

  3. Test 3Simulate post-exploitation cmd.exe spawn from web worker process in ThreatSonar context

    Expected signal: Sysmon Event ID 1 showing cmd.exe spawned from threatsonar_worker.exe process; process tree showing execution of whoami; DeviceProcessEvents in MDE capturing the parent-child process relationship

Unlock Pro Content

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

Response PlaybookInvestigation GuideHunting QueriesAtomic Red Team TestsTuning Guidance

Related Detections