Skip to content

Chen Ing-hau and the CIH Virus

Abstract

Chen Ing-hau (陳盈豪) was an information engineering student at the Tatung Institute of Technology in Taipei when he wrote CIH, a Windows 95/98 virus of under one kilobyte that carried his initials. Antivirus researchers found it in June 1998. On 26 April 1999, the trigger date of two of its versions and the anniversary of the Chernobyl disaster, it overwrote the start of hard disks around the world and, on many Pentium motherboards, erased part of the flash BIOS so that the machines would not start. Turkey and South Korea each reported about 300,000 damaged computers. Chen told police he had written it to embarrass the antivirus vendors. He was questioned in 1999 and detained in 2000, but never tried; Taiwan added a chapter on computer crime to its Criminal Code in 2003.

Chen Ing-hau 2020
Chen Ing-hau giving the keynote at SITCON 2020, Taipei, 8 August 2020. Image: 丞相 of SITCON, CC BY-SA 2.0, via Wikimedia Commons.

Tatung

Chen studied information engineering at the Tatung Institute of Technology (today Tatung University) and graduated in 1998. By his own account in a 2006 interview with iThome, his English was weak enough that he was put in a remedial English class, so he learned the Windows kernel by stepping through it with a debugger rather than from textbooks. CIH was the product of that habit.

The virus first did damage at home. In April 1998, according to the institute’s dean of student affairs, Lee Chee-chen, it began corrupting an inter-college data system. Tatung gave Chen a demerit but did not expel him, partly because he had warned fellow students not to spread the program. Classmates later told reporters that he had boasted about it and had admitted that the name was his initials.

How CIH Worked

Richard Wang of Sophos published a detailed analysis in Virus Bulletin in August 1998, after a customer sent in an infected file that June. He counted at least four variants, labelled v1.2, v1.3 (two of them), and v1.4, between 1,003 and 1,019 bytes long. Their payloads were identical; only the trigger date differed: 26 April, 26 June, or the 26th of every month. The v1.4 code carried the string “TATUNG”.

The infection method was new. Most Windows executables contain padding at the end of each section, and CIH broke itself into fragments that filled those gaps, so an infected file did not grow by a single byte (hence the alias Spacefiller). Once running, it hooked an interrupt to get supervisor-level access to the processor, a trick that worked on Windows 9x but not on Windows NT, and then sat in the file system waiting for programs to be opened.

On a trigger date the payload ran in two parts. The first wrote to the flash ROM holding the BIOS. CIH changed only one byte in the boot block, but flash chips are erased in pages, typically 128 bytes, so the surrounding code was wiped as well and the PC could no longer start. Wang confirmed that the routine worked on Intel’s 430TX chipset and on BIOS chips from at least two manufacturers; many boards shipped with the programming voltage enabled, or hardwired, to make BIOS updates easy. The second part overwrote the first 2,048 sectors (1 MB) of every hard disk with random data from memory, destroying the partition table and boot records.

Misconception: CIH physically destroyed computers

CIH did not burn out chips or damage hardware physically. It erased a 128-byte section of firmware and the first megabyte of each disk. The BIOS chip itself survived and could be reprogrammed; Virus Bulletin’s point in 1998 was that, in practice, fixing it still needed hardware work, a replacement chip or, where the chip was soldered on, a new motherboard. Taiwanese dealers told iThome in 1999 that some disks had “burned out from overheating,” a claim no technical analysis supports. See Myths and Misconceptions.

Shipped by Vendors

CIH spread the way viruses did before mass e-mail: through copied executables. In Taiwan, BBS users warned each other in June 1998 that it was rumoured to be hidden in a Chinese localization of ICQ. Several companies then distributed it themselves. F-Secure lists an infected download for Origin Systems’ Wing Commander, infected cover CD-ROMs on three European gaming magazines, a firmware update utility for Yamaha’s CD-R400 drive, and a widely copied demo of Activision’s SiN (not, F-Secure notes, infected at the vendor). In March 1999, a month before the main trigger date, IBM shipped a batch of Aptiva PCs with the virus already on the disk and warned users to check four model numbers built between 5 and 17 March.

26 April 1999

The v1.2 trigger fell on the thirteenth anniversary of the Chernobyl reactor accident, and the press called the virus Chernobyl. The worst damage came in Asia and the Middle East. South Korea’s vice minister Ahn Byung-yop estimated that nearly 4 percent of the country’s computers had been hit, about 300,000 machines; the Korean antivirus company Ahn’s Laboratory (today AhnLab) took 2,500 calls for help in two days. Turkey also reported 300,000 damaged machines, including systems at an Izmir airport and at the state broadcaster TRT. Chinese state media counted at least 7,600 damaged computers, while Liu Xu of the Beijing antivirus firm Ruixin put the figure at 100,000. In the United States, fewer than 10,000 of about 50 million computers were affected.

The totals grew with time. The Taipei Times reported in September 2000 that the virus had crashed more than half a million computers on 26 April 1999; F-Secure’s count, quoted in the same paper that April, was at least two million machines with permanently lost data. By 2006 iThome wrote that CIH had infected about 60 million computers and caused US$1 billion in losses, figures with no source given. The contemporary country reports support hundreds of thousands of damaged machines, not tens of millions.

Questioned, Not Charged

Taiwan’s Criminal Investigation Bureau learned of CIH from foreign police after the outbreak; its information office said nobody had reported the virus in Taiwan during the previous year. On 30 April 1999 the bureau’s computer crime squad questioned Chen, then 24 and serving his compulsory military service. He told investigators that CIH had been written to make the antivirus vendors “出洋相” (look foolish).

The relevant offence, interfering with other people’s stored computer data, carried up to three years in prison but could be prosecuted only if a victim complained, and no one in Taiwan did. Reports of why the case ended differ. Police later said there had been no complaint; iThome wrote that prosecutors dropped the case because he had not intended to spread the virus; and the weekly Business Today reported in February 2000 that he had been cleared on the basis of a psychiatric diagnosis. In October 1999 he joined the Linux company XLinux International (網虎) as a programmer in its hardware division.

On 25 April 2000, the day before the next trigger date, Chen called a press conference, accompanied by his employer XLinux, at which a visibly nervous Chen apologized again and demonstrated an inoculation program against CIH that he had written. That year the virus hit a Taiwanese high school student, who filed a complaint, and police detained Chen on 11 September 2000. Sophos’s Graham Cluley welcomed the arrest and warned employers that virus writers “must not be rewarded” with lucrative jobs. No trial followed.

On 25 June 2003 Taiwan promulgated a new chapter of the Criminal Code on offences against computer use. Article 362 made it a crime to write a program designed for such offences when its use causes harm, with up to five years in prison, and unlike the access and data-interference articles it does not require a complaint.

Later Career

Chen later worked for the Tatung company, and by 2006 he was chief engineer at Gigabyte Communications (集嘉通訊), the handset subsidiary of Gigabyte Technology, working on operating-system kernels for smartphones and recruiting programmers. His job advertisement asked for the strongest programmer in the class, the kind who, once started on a program, “doesn’t sleep until it is finished.” In 2012 he walked around Taiwan, 1,200 kilometres in 55 days. When he gave the keynote at the student conference SITCON in August 2020, the programme listed him as a consultant to Taiwan Mobile and as a member of the advisory committee of the Criminal Investigation Bureau, the agency whose computer crime squad had questioned him in 1999.

Dead End: Firmware as a Payload

Virus Bulletin called CIH the first virus known to have damaged PCs through their flash BIOS, and it had few successors. Sophos’s Paul Ducklin noted in 2018 that a few variants appeared but BIOS-destroying malware never became widespread. Writing to the flash chip needed detailed knowledge of each chipset and ROM, and on boards with a programming-voltage jumper, pulling it protected the BIOS. CIH itself depended on Windows 9x and could not run on the NT kernel, which replaced the DOS line on home PCs with Windows XP in 2001 (see The Windows Story). A variant found in December 2002, CIH.1106, spread mainly by infecting attachments sent out by the Klez worm. The antivirus vendors Chen had meant to embarrass advertised “complete CIH removal” in their next releases (see The Antivirus Industry and Taiwan’s Tech Ecosystem).


📚 Sources