Ethical hackers operate legally and with permission, focusing on identifying and fixing vulnerabilities to enhance security. In contrast, malicious hackers exploit weaknesses for personal gain, causing harm to individuals and organizations. Ethical hackers contribute positively by helping organizations protect sensitive information from cyber threats.