This article discusses the ethical issues faced by white hat and black hat hackers in cyber security. It analyzes the professional, philosophical, and sociological ethics perspectives and their relevance to the case. The article highlights the importance of honesty, improvement of quality of life, priority for the community's interest, professional growth, and professionalism in ethical hacking.