This rule identifies executable files compiled with Borland Delphi 5.0 that exhibit specific YARA patterns, often associated with legacy or obfuscated malware used to evade signature-based detection. Proactively hunting for these artifacts in Azure Sentinel helps identify potentially compromised workloads or staging environments where adversaries may be leveraging outdated toolchains to establish a foothold or prepare for lateral movement.
rule PseudoSigner01BorlandDelphi50KOLMCKAnorganix
{
meta:
author="malware-lu"
strings:
$a0 = { 55 8B EC 90 90 90 90 68 [4] 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 90 00 FF 90 90 90 90 90 90 90 90 00 01 90 90 90 90 90 90 90 90 90 EB 04 00 00 00 01 90 90 90 90 90 90 90 00 01 90 90 90 90 90 90 90 90 90 }
condition:
$a0 at pe.entry_point
}
This YARA rule can be deployed in the following contexts:
This rule contains 1 string patterns in its detection logic.
C:\Program Files\LegacyPOS\ or C:\Apps\Inventory5\) or exclude executables with a specific version string matching the known legacy build (e.g., 5.0.0.*) if the application is whitelisted in the software inventory.legacy_plugin.dll, borland_helper.exe) or exclude files located in vendor-specific plugin directories (e.g., C:\Program Files\VendorX\Plugins\) that are verified in the application allowlist.LegacyDBBackup) runs a small utility script or executable written in Borland Delphi 5.0 to extract or compress data from legacy databases. The utility is often a standalone, unsigned binary placed in a service account’s home directory or a shared maintenance folder.