There are two levels where ultimately tech wins:
1: end to end cryptography is easier to make than break
When what you're describing happens and it's banned, there's a level two technical solution:
2: put the software onto your machine in such a way that it's not possible to know that the software is on the machine without entering a specific code. Basically an at-rest encrypted volume, which looks like unwritten blocks. I'm not a crypto guy but that seems in principle impossible to detect or ban in the long run.