For me personally, that's the best i got, i only look for intentions. Was that, "Hey, dude" derogatory? Was it just a general "howdy"? Each is much more than just the word. It's about the inflection and emphasis. Pretty easy to tell when they are being intentionally rude.
I've used many tact to get around this. More than often it throws me off so much I'm genuinely flabbergasted. My look often works great if anyone else is around. Sometimes i just full on ignore them. Not even a head glance. Genuinely assume they are not speaking to you. Its a very hard sheild to weave. Once you learn the art of not reacting they are forced to bathe in the comment. Let it breath. Make them think about what they just said.
Still a 50/50 haha 😄