The option that describes an instance of legal hacking is:
Penetration testing for a company.
Penetration testing is conducted with the permission of the organization and is aimed at identifying security vulnerabilities to improve the company's security posture, making it a legal and authorized form of hacking.