Poisoned Pipeline / Incidents / AS496
A Delphi compiler virus compiled itself into every program built on an infected machine
Windows softwareDeveloper workstation
A virus ESET named Win32/Induc.A did not infect executables. It looked for a
Delphi installation (versions 5, 6 and 7), modified SysConst.pas, kept a backup
of the original, and let Delphi compile the viral code into every program built
on that machine. Developers picked it up by downloading and testing Delphi
utilities; the resulting applications then carried the infection to users.
Sophos and ESET spent August 2009 explaining that the detections were real and
not false positives, and that ordinary users could receive tainted programs from
developers who did not know they were infected. It was reported as a Delphi
virus, not a supply-chain incident. The modern reading is a compiler-level
compromise that propagates through every downstream build.
Mapped techniques
- T0170 Malicious compiler or interpreter
- T0121 Compromised legitimate artifact
- T0191 Malicious code in artifacts
- T0197 Use code from untrusted source
supply-chain Delphi SysConst.pas
The Delphi toolchain was modified so the viral code was compiled into
every program built on the machine.
A legitimate Delphi installation became the carrier while keeping its
normal build behaviour.
Every compiled application carried the virus to its users.
Developers were infected by downloading and testing Delphi utilities
from the web.
Framework gaps noted
- No technique covers a compiler that inserts itself into every artifact it produces. Build provenance and artifact scanning see the output, not the toolchain that wrote it, which is the same blind spot as XcodeGhost.