I think that there is no solution to avoid hacking attacks. Hackers always understand how to hack the system. there is only one way to avoid it is working together with hackers but not for bad things but try to move them in good projects
But what could be the motivation for them to support ? I mean the real challenge for a hacker is what he does, they sort of live by this code. I am not sure if this is practically possible. Don't you think good encryption and a decentralized distributed system will help resolve this problem or is it unrealistic?