Regarding software, attackers can reverse-engineer to find vulnerabilities in the software, and by exploiting the vulnerabilities, attackers can create malware. Reverse engineering is generally legal. In trade secret law, like independent development, reverse engineering is an acceptable method of disclosing trade secrets. However, because the patent owner has exclusive rights to use, own, or develop the patent, reverse engineering is not a defense in patent law.