Permissibility Of Hacking
Everything immoral or unethical is considered haram in Islam. In order to use hacking for a good purpose (e.g. to build proper defensive technology) one can use white hat or ethical hacking , which involves owner’s legal consent.