This hypothesis targets the presence of legacy Watcom C++ 32-bit runtime components, which may indicate the execution of outdated or vulnerable applications that adversaries could leverage for initial access or lateral movement. Proactively hunting for these artifacts in Azure Sentinel helps identify potential attack surfaces introduced by unmaintained software, allowing the SOC to remediate risks before they are exploited.
rule WATCOM_CCpp_32_Run_Time_System_1989_1994_additional: PEiD
{
strings:
$a = { 0E 1F 8C C6 B4 ?? 50 BB ?? ?? CD 21 73 ?? 58 CD 21 72 }
condition:
$a at pe.entry_point
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
Legacy Financial Reporting Tool Execution: A specific, unpatched internal financial reporting utility (e.g., FinReport.exe) compiled in the early 1990s using Watcom C++ is executed by a scheduled task (Task Scheduler job ID: Monthly_Financial_Audit) on a dedicated application server. The binary contains the specific Watcom runtime strings but is signed by the internal corporate code-signing certificate.
C:\Apps\FinReport\ AND the file has a valid internal code-signing certificate AND the process name is FinReport.exe.Legacy Database Maintenance Script: A database administrator runs a legacy maintenance script (db_maint.bat) that invokes a small Watcom-compiled utility (chk_integrity.exe) to verify database integrity. This utility is located in the C:\DBTools\Legacy\ directory and is only executed during the monthly maintenance window.
C:\DBTools\Legacy\ directory AND where the parent process is cmd.exe or powershell.exe initiated by the DBAdmin service account.Legacy Point-of-Sale (POS) Terminal Driver: A retail environment uses a legacy POS terminal driver (pos_drv32.dll) that was compiled with Watcom C++ in 1992. This DLL is loaded by the main POS application (pos_main.exe) on specific terminal workstations (identified by hostname pattern POS-TERMINAL-*).
.dll where the path contains C:\POS\Drivers\ AND the hostname matches the regex ^POS-TERMINAL-\d+$.Legacy Scientific Simulation Software: A research department runs a legacy scientific simulation tool