On what grounds would it be illegal though? Things don't become illegal just because you don't like them. They may become illegal just because the president doesn't like them, but I don't think you're him, and in the absence of that, there has to be a majority of Congress and most of them want a reason.
Because they don't have the informed consent* of the owner of the device wich ends up running the code?
* no, small print in a click-through agreement doesn't count.