Digital watermarking , something is often done to determine who is responsible for a track leak, for example. This makes each copy of the music unique, so that copies can be traced back to the original owner, but do not affect the sound quality of the track.
Something like this could be done for compiled software by running each individual copy using a polymorphic engine before distributing it. Then, if the hacked version of this software is released on the Internet, the developer will be able to tell who hacked it by looking at the specific options developed by the polymorphic engine (a kind of DNA test). As far as I know, this method has never been used in practice.
This is not quite what you were looking for, I think, since the polymorphic engine does not spread with the code, but I think that it is closest to the legitimate business that you will find for such a method.
Mark byers
source share