Code

The first computer virus: the beginning of an information epidemic

The First Computer Virus: The Beginning of an Information Epidemic

Learning Python: From Basics to Portfolio Projects An interactive course for beginners and experienced programmers. Create 4 impressive projects and chat with an expert.

Learn more

Timur Bakibayev

About the author

I have been programming since 1988. I have a Ph.D. and work as a senior developer at SAP SE. My experience includes teaching, as well as developing ERP systems in Microsoft Dynamics and many other projects. In addition, I blog on the Medium platform.

Links

This story is about an ancient computer virus called OneHalf.3544, which remained undetected for so long that attempts to isolate it were no longer practical.

In 1994, an epidemic occurred. Some of you may still remember the message that appeared in your MS-DOS terminal:

This is one half. Press any key to continue…

Disc from one half. Press any key to continue...

If you pressed, please self-isolate immediately!

I look back at that virus with a smile: where did my old, trusty IBM PC 286 go with its 40 MB hard drive and 640 KB of RAM? On that computer, I enjoyed games like Prehistoric, Tetris, Prince of Persia, and Dave 2. Those were great times.

In 1994, this virus was discovered on computers using the MS-DOS operating system. Interestingly, it may still remain hidden on some older devices.

Comparative Analysis of OneHalf.3544 and SARS-CoV-2: Similarities and Differences

Transmission of Infection through Objects: How It Happens

The most common method of spreading OneHalf was floppy disks. As soon as the operating system activated the drive, the virus launched and began checking the names and sizes of files. It was cautious and tried not to arouse the suspicions of antivirus programs with integrated infection protection. Therefore, OneHalf avoided interaction with files whose names contained words such as SCAN, CLEAN, FINDVIRU, GUARD, NOD, VSAFE, MSAV, CHKDSK, SPID, ADINF, or WEB.

Before infecting, the virus requested information about file sizes from the operating system in order to ignore very small files. This was necessary because the decryptor consisted of ten parts that needed to be masked in a single file, and the minimum distance between these code fragments was 10 bytes.

After completing the scan, OneHalf began saving its data to all accessible files and temporarily blocked access to the drive—no one could remove the floppy disk until it completed its work. The logic was quite simple: the user would not want to damage the disk and then spend money on a new one.

Five-inch floppy disk. Source

OneHalf primarily targeted EXE and COM files. This is typical behavior for viruses, since such files are necessary for their activation, since they are executable.

It is worth noting that in those years, most antivirus programs limited system scanning to only certain files, since this was the main method for spreading viruses.