Archives
- October 2025
- September 2025
- August 2025
- July 2025
- June 2025
- May 2025
- April 2025
- March 2025
- February 2025
- January 2025
- December 2024
- November 2024
- October 2024
- September 2024
- August 2024
- July 2024
- June 2024
- May 2024
- April 2024
- March 2024
- February 2024
- January 2024
- October 2023
- September 2023
- August 2023
- July 2023
- June 2023
- May 2023
- April 2023
- March 2023
- January 2023
- December 2022
- November 2022
- October 2022
- September 2022
- July 2022
- June 2022
- May 2022
- April 2022
- March 2022
- February 2022
- January 2022
- December 2021
- November 2021
- October 2021
- September 2021
- August 2021
- July 2021
- June 2021
- May 2021
- April 2021
- March 2021
- February 2021
- January 2021
- December 2020
- November 2020
- October 2020
- September 2020
- August 2020
- July 2020
- June 2020
- May 2020
- April 2020
- March 2020
- February 2020
- January 2020
- December 2019
- November 2019
- October 2019
- September 2019
- August 2019
- July 2019
- June 2019
- May 2019
- April 2019
- March 2019
- February 2019
- January 2019
- December 2018
- November 2018
- October 2018
- August 2018
- July 2018
- June 2018
- May 2018
- April 2018
- March 2018
- February 2018
- January 2018
- December 2017
- November 2017
- October 2017
- August 2017
- July 2017
- June 2017
- May 2017
- April 2017
- March 2017
- February 2017
- January 2017
- December 2016
- November 2016
- October 2016
- September 2016
- August 2016
- July 2016
- June 2016
- May 2016
- April 2016
- March 2016
- February 2016
- January 2016
- December 2015
- November 2015
- October 2015
- September 2015
- August 2015
- July 2015
- June 2015
- May 2015
- April 2015
- March 2015
- February 2015
- January 2015
- December 2014
- November 2014
- October 2014
- September 2014
- August 2014
- July 2014
- June 2014
- May 2014
- April 2014
- March 2014
- February 2014
- January 2014
- December 2013
- November 2013
- October 2013
- September 2013
- August 2013
- July 2013
- June 2013
- May 2013
- April 2013
- March 2013
- February 2013
- January 2013
- December 2012
- November 2012
- October 2012
- September 2012
- August 2012
- July 2012
- June 2012
- May 2012
- April 2012
- March 2012
- February 2012
- January 2012
- December 2011
- November 2011
- October 2011
- September 2011
- August 2011
- July 2011
- June 2011
- May 2011
- April 2011
- March 2011
- January 2011
- November 2010
- October 2010
- August 2010
- July 2010
Lotus 1-2-3 R3 copy protection
Release 3 of Lotus 1-2-3 (1989) utilized a mild form of copy protection which relied partially on technology but primarily on shaming would-be pirates. 1-2-3 installed from copied disks prominently showed the name of the original owner every time the spreadsheet was started. Several other Lotus programs of that era (such as Freelance Graphics) used the same technique.
Lotus shipped "virgin" installation media to users. All except for the first floppy were regular diskettes. The first one, so-called Install disk, was special. The Install disk could not be used or even copied until it was "signed", i.e. the user’s name, company name, and the serial number were entered.
The way the copy protection worked was quite ingenious. The Install disk was shipped with a bad sector belonging to a special hidden file which was only used for copy protection purposes. What’s so clever about a bad sector? First, a bad sector is surprisingly difficult to reproduce (copy). Second, a bad sector can be checked for in an OS-independent manner, without relying on direct floppy controller access or any other trickery.
The second point was important because 1-2-3 R3 supported both DOS and OS/2. On OS/2, direct floppy controller access was highly undesirable, but detecting a bad sector was easy using the standard system-provided APIs.
The first point had to do with the PC floppy disk controller (FDC). The FDC, a NEC-μPD765A derivative, is a relatively intelligent device. It works on the basis of complete sectors and doesn’t provide direct byte/bit access. When a sector is written, the FDC will automatically calculate and write the appropriate CRC (checksum). And that’s what the Lotus copy protection relied on.
The original factory-delivered Install disk was mastered such that there was a track with deliberately written invalid sectors, although the magnetic medium itself was not damaged in any way. However, because the standard FDC can’t write such invalid data, the disk could not be copied without custom hardware.
When the Lotus install program was launched, it would check whether the disk was signed with the user’s name and serial number. The install program would not allow signing the disk unless it also found the magic unreadable sector. It would also not allow installing the software without signing the disk. Once the disk was signed, the track containing the bad sector (or rather the entire track) was reformatted, again a standard operation which can be safely performed on both DOS and OS/2.
At this point, the user had a signed install disk which was a standard floppy, not unusual in any way. The disk could be backed up without any trouble, which was a big advantage of the 1-2-3 R3 copy protection scheme. Many earlier copy protection schemes prevented backup copies, which led to protests from legitimate users.
The signed Install disk could of course be copied… but the signature could not be changed anymore, because the magic bad sector wasn’t present. Users running illegal copies of 1-2-3 exposed themselves to embarrassment and potential prosecution for copyright infringement.
Could the copy protection be defeated? Yes and no. I’m not aware of any way to copy the original Install disk without special hardware. It was not possible to remove the signature from a previously used Install disk because the installer detected that but refused to continue (or change the signature) without also finding the bad sector. The installer just printed a nicely vague "the diskette in the drive is not the original Install Disk" message in such case and refused to continue.
However, the copy protection was implemented in software and as such could be disabled or worked around. There were at least two vectors of attack: Disabling the bad sector checks in the installer, or changing the user signature in an installed 1-2-3 R3 copy. Luckily for Lotus, neither was something the typical 1-2-3 user would have been capable of. The first method required analyzing and patching the installer code, the second involved deconstructing and modifying the INSTEXT.RI file which contained the signature.
The user data in INSTEXT.RI was of course encrypted, although from a modern perspective the encryption was laughably insecure. Not so much because the algorithm itself was bad, but rather because the code to decipher the data, including the encryption key, was included in the INSTALL.EXE executable which was shipped with the product.
The signature data was protected with a checksum to discourage tampering, and encrypted with a symmetric cipher which could decrypt the data in one pass and encrypt it again in second pass. But as mentioned above, both the algorithm and the key were provided on the installation media, hence a sufficiently determined attacker had everything he or she needed to defeat the encryption.
This copy protection scheme was unquestionably quite benign compared to many other techniques. One of its advantages was that it allowed legal users to create backup copies without trouble, and it didn’t rely on any characteristics of a particular PC model.
Yet even this scheme soon fell by the wayside. Its strength was also its weakness: it relied on floppies. In the 1990s, customers increasingly demanded network-enabled installs and copy protection based on floppies wasn’t viable anymore. Some companies also perhaps realized that most people pirating their software were in fact not potential customers. They simply weren’t going to pay several hundred dollars for the software and any effort expended on preventing them from using the software risked being a net loss for the developer.
9 Responses to Lotus 1-2-3 R3 copy protection
heh you have to be the best x86 debugger out there…! .. I thought I was slick once for finding the MS-DOS date/time call in a product and just NOPing it out.. good times!
The tools available these days make it so much easier… against virtual machines and IDA, old software doesn’t stand a chance. That said, Lotus didn’t really try to obscure their code.
Very true, even a good ICE is no comparison for something like a good emulator that lets you inspect the entire system state…
Win95 setup would try to write similar registration info on disk 2, which is a DMF disk. DMF was not originally intended as a copy protection scheme, but it took a while before tools to write DMF disks was widely available.
>It was not possible to remove the signature from a previously used Install disk because the installer detected that but refused to continue (or change the signature) without also finding the bad sector.
If one removed the signature from a previously-used Install disk and then wrote in a new signature before popping the floppy in and running the installer, would the installer still have been able to detect that the signature on the disk was not the original one?
Probably not. Of course you’d have to know exactly how the signature was encoded, and that required much better than average skill and tools.
But once it was figured out, one could have written a program that would enable anyone to easily change the signature on a previously-used 1-2-3 installation disk…
Yes, but that needs two things. You’d need somebody who is both clever enough to write such a tool and at the same time wants to hurt Lotus.
I am fairly certain it would have been possible to de-sign existing floppies (create a bad sector) with a bit of clever programming, though I have not tried it out.
Thinking about it, I wonder why Mitch Kapor was such a fan of copy protection.
This site uses Akismet to reduce spam. Learn how your comment data is processed.