This hunt hypothesis targets adversaries exploiting a post-authentication remote code execution vulnerability via QCommand path traversal to gain unauthorized access and execute arbitrary commands within authenticated sessions. Proactive hunting in Azure Sentinel is critical because this specific exploit allows attackers to bypass standard authentication controls, potentially leading to lateral movement or data exfiltration before traditional alerts trigger.
rule EXPL_JSP_CommVault_CVE_2025_57791_Aug25_1 {
meta:
description = "Detects potential exploit for WT-2025-0049, Post-Auth RCE with QCommand Path Traversal"
author = "X__Junior"
date = "2025-08-21"
reference = "https://labs.watchtowr.com/guess-who-would-be-stupid-enough-to-rob-the-same-vault-twice-pre-auth-rce-chains-in-commvault/"
score = 75
id = "6fdfa207-6361-5dfb-b313-623d7cfa95f1"
strings:
$s1 = "<App_GetUserPropertiesResponse>" ascii
$s2 = "getMethod('getRuntime').invoke(null).exec(param.cmd)" ascii
condition:
filesize < 50KB and all of them
}
This YARA rule can be deployed in the following contexts:
This rule contains 2 string patterns in its detection logic.
Here are 3-5 specific false positive scenarios for the WT-2025-0049 detection rule, including suggested filters and exclusions:
Automated Backup Script Execution via Scheduled Task
QCommand utility to archive logs. The script passes dynamic file paths containing user-specific identifiers, which may include special characters or directory traversal sequences (..) that mimic the exploit signature.vss.exe, vcagent.exe, or specific backup service accounts (e.g., DOMAIN\BackupSvc). Additionally, filter events where the command line contains known backup flags like /backup-mode or /archive-target.Internal Security Scanning Tool Utilizing QCommand
QCommand to retrieve system configuration data, utilizing path traversal logic to access deep nested registry keys or file structures that trigger the RCE detection logic.nv1.exe, qualyspc.exe) running under a dedicated service account (e.g., DOMAIN\SecurityScanner). Add a condition to ignore alerts where the user context is a non-interactive service account rather than an interactive logged-in user.IT Admin Performing Legacy Migration via PowerShell Wrapper
QCommand with parameters that include relative paths (e.g., ..\Data\Legacy) to traverse from a root directory