How can a beginner know if his thoughts are his own?

Hi, guys!

What can a beginner do to know if the thoughts that s/he’s having are implanted by their enemies or not?

Also, what kind of divination(s) should I learn to know if someone’s under attack?