A cybersecurity professional who uses their hacking skills ethically to help organizations identify and fix vulnerabilities vs. a black-hat hacker who is the opposite—exploiting vulnerabilities for personal gain, often engaging in illegal activities. Note: A gray-hat hacker operates between the two extremes.
Real-World Examples
A white-hat hacker conducts penetration testing on a mobile app to find security flaws and help the development team patch them before attackers can exploit them.