This YARA rule identifies legacy DOS executables compiled with Zortech C v200, which may indicate the use of outdated or custom-compiled binaries that bypass modern security controls. Proactively hunting for these artifacts helps the SOC team uncover potential low-severity threats or forgotten legacy components that could serve as entry points for adversaries exploiting unpatched or unsupported software in the Azure environment.
rule Zortech_C_v200_1988_1989_Hint_DOS_EP: PEiD
{
strings:
$a = { FA B8 ?? ?? 8E D8 8C ?? ?? ?? 26 8B ?? ?? ?? 89 1E ?? ?? 8B D8 2B 1E ?? ?? 89 1E }
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 DOS Application Maintenance: An administrator is performing routine maintenance on a legacy inventory system (e.g., AS/400 host bridge or old POS software) that relies on a 1988-era Zortech C compiler runtime. The executable is copied to a temporary directory for analysis or backup, triggering the DOS EP (Executable Program) signature.
C:\LegacyApps\Inventory\bin\) or exclude files with specific extensions (.exe, .com) if the parent process is a known legacy wrapper (e.g., dosbox.exe, wine.exe, or a specific terminal emulator).Embedded DOS Utilities in Modern Toolchains: A developer or build engineer uses a cross-compilation toolchain or a specific utility (e.g., dos2unix, unix2dos, or a legacy linker like zortech_link.exe) that was compiled with Zortech C v200. The tool is executed as part of a CI/CD pipeline or local build script.
C:\Program Files\BuildTools\, C:\Users\<user>\.local\share\, or C:\Tools\zortech\) or exclude if the parent process is a known build orchestrator (e.g., msbuild.exe, ninja.exe, make.exe).Virtualized Legacy Environment Snapshots: A virtual machine (VM) running a legacy DOS or early Windows 3.1/95 environment is being snapshotted or its disk image is being scanned by the EDR agent. The scan identifies the Zortech C EP within the VHD/VMDK file or the mounted drive.