Dear teachers
Please look at the following sentence:

This is not a black-hat-versus-white-hat issue.

I wonder what a black-hat issue is and what a white-hat issue is.
I searched the internet for these phrases by Google and found some sentences containing "black-hat issue" or "white-hat issue". But I still can not figure out their meanings according to the context: I just vaguely feel that white-hat issues refer to those things which are not harmful while black-hat issues refer to those harmful things to all sides.
but I doubt it.

Please help me with this, and by the way, are these expressions a little outdated?

Thanks