Even criminal hackers want to protect their intellectual property, and they’ve come up with a method akin to copyrighting — with an appropriate dash of Internet thuggery thrown in.

Professional virus writers are now selling a suite of software on the Internet with an unusual attachment: a detailed licensing agreement that promises penalties for redistributing the malicious code without permission.