the Ping-Pong virus

lore

security

Kept in this browser · My desk

The boot sector virus found in Turin in 1988, also called Bouncing Ball or Italian, whose payload set a small ball bouncing around a PC's screen.

It was discovered on 1 March 1988 at the Politecnico di Torino. It hid the original boot sector in a 1 KB cluster marked as bad, stayed in memory and infected the disks in every active drive. A disk access exactly on the half hour woke the payload: a ball, the bullet character in text mode, bouncing around the screen. It did no serious damage, but an instruction that only the 8088 and 8086 processors execute, MOV CS,AX, crashed machines with a 286 or later processor while the ball was on screen. It was the most common boot sector virus until Stoned outnumbered it.

Its names. They record where it was found and what it did. In Italy it was the "virus della pallina", the little-ball virus, and in English-speaking countries the Italian virus, as Virus Bulletin noted in its report on a conference on computer viruses held in Milan on 9 and 10 June 1989. The magazine's table of known IBM PC viruses of March 1990 lists it as Italian, Pingpong, Turin, Bouncing Ball and Vera Cruz; other sources add Boot, Bouncing Dot, Italian-A and VeraCruz.

How it worked. The 1990 table describes a memory-resident boot sector virus made of a boot sector and one cluster of two sectors that it marks as bad in the first copy of the file allocation table (FAT): the first of the two sectors holds the rest of the virus and the second the original boot sector. That is why it could infect only disks with at least two sectors per cluster, and why it hid the original in a 1 KB cluster; in memory it took 2 KB. Virus Bulletin's tutorial of April 1990 placed it on the boot sector of floppy disks and on the partition boot sector of hard disks, and used it to explain the difference between an infected PC and infected media: a PC infected from a floppy infects its hard disk; switching off clears the memory but not the disk, which reinfects the machine at the next start, so the PC is clean only after booting from a clean system disk. Three variants are recorded: Ping-Pong.A infected only floppy disks, while B and C also infected hard disks; while the virus was active the boot sector could not be replaced, because the virus either blocked the write or reinfected it at once.

The ball and the crash. The ball, a single character, appeared if a disk was accessed during the one-second interval at any multiple of 30 minutes on the system clock. The original version hung on 80286 and 80386 machines: F-Secure explains that it used MOV CS,AX, an instruction only the 8088 and 8086 execute, and by 1990 a new version that ran normally had been reported. The table adds that a warm boot after the hang still left an uninfected disk infected. F-Secure's description adds a variant from Israel that left the ball out and introduced typing errors into the text sent to the printer.

How it was recognized. Scanners of the time looked for fixed strings: the 1990 table gives two search patterns, one for the family at offset 030 of the boot sector and one for the virus at offset 0F0. In August 1989 Jim Bates described an accountants' firm where a bouncing full stop appeared on one PC about twice a week; the operator took it for one of the joke programs junior staff liked to load, and rebooting cleared it. He identified the Italian virus by its own recognition code, 1357H at offset 1FCH of the hard disk boot record, and removed it by backing up the files, booting from a known clean system disk and reformatting. The infection had come in with games brought from home; the virus did not damage files, he told the staff, but the same route could have carried one that did.

Who wrote it. That was never established in the records read. At the Milan conference the panel was asked for inside information on the virus and had none; Marco Mezzalama of the Turin Polytechnic said that its PC laboratory had been open to students since 1982, that over the years some students had been capable of writing such a virus, and that to his knowledge none had done so. In March 1990 Fridrik Skulason reported in Virus Bulletin that the source of the Italian virus, with comments in Italian, had been posted to a bulletin board system (BBS) in Toronto.

Its descendants and its enemies. The 1990 table lists Mistake, also called Typoboot or Typo, reportedly written in Israel: a mutation of the Italian virus with about 35% of its code rewritten and an almost identical boot sector, which swaps phonetically similar letters, such as C and K, in text sent to the printer. GhostBalls, a strain of the Vienna file virus carrying the text "GhostBalls, Product of Iceland", tried to place a modified, non-infective copy of the Italian virus in the boot sector of drive A:, a copy that ran on 286 machines. In December 1989 David Ferbrache dissected MIX-1, a file-infecting virus discovered in Israel that September, whose bouncing ball display was similar to the Italian virus's, algorithmically alike but with significant differences in the code. Skulason also noted a Bulgarian virus that attacked Italian. In May 1992 Virus Bulletin analysed TP46, a member of the Vacsina or Yankee Doodle family, which recognized the Italian virus in memory by a checksum of 97 words at offset 12EH, patched it to count its own generations and, when the counter reached 256, disconnected it and freed its memory; the change stayed in memory and was not written to an already infected hard disk. The magazine noted that the author's own narrative credited the anti-Italian code to TP42, while analysis found it in TP46.

How common it was. It was the most common boot sector virus until Stoned outnumbered it. By 1992 it was a minor but persistent presence: Virus Bulletin's prevalence table of May 1992 counted three Italian reports, 1.2% of the total; at the PAB EXPO computer fair in Havana, from 17 to 22 February 1992, a virus hunt that inspected 214 hard disks and 1,110 diskettes found 75 infections, 9 of them Italian, behind Michelangelo (27) and 1575 (24); and a report from Malta the same month called Jerusalem, Italian, New Zealand and Cascade fairly common there.

Its neighbours. Brain (1986) and Stoned share its method; Michelangelo, which outnumbered it threefold in the Havana hunt, shows what the same position could do with a destructive payload.

Also known as: ping-pong, ping pong virus, bouncing ball virus, bouncing dot, italian virus, vírus ping-pong

Sources

← Back to T Back to the glossary