i think the main problem with pvp hacking right now is how little time you get to respond. this is less of a problem with player computers, as they go offline when you do, but with servers, it's massive, as they can be hacked while the owners are offline. the solution to this currently is to simply find an unhackable set of libraries, which i frankly thing is a good thing given the alternative.
however, i think a system for hacking into a library without a valid path in should be implemented, with the cost being a large amount of time and gpu power needing to be dedicated to this. meanwhile on the side that's being hacked, there should be methods for seeing that your device is under attack and from which ip. these attacks' progress should be dependent on the library version they're targeting, so while the server owner can change to a new one to delay the attacker (and also buy time for their counterattack to work), they cannot simply swap back and forth to reset progress repeatedly.
alternatively/in addition to this, there should be a method of contacting a server host company and getting your server reset to factory default if it ends up being taken over. as the game currently works, when looking at player servers, there's a few unhackable servers in a sea of hackers squatting on hacked servers. with the ability to factory reset, players get the opportunity to learn from their mistakes and reclaim their domain name.