"Tinfoil hat" is a phrase used to describe someone who believes in conspiracy theories or has irrational fears about powerful entities spying on them or controlling their thoughts. It suggests that they wear a hat made of tinfoil to protect themselves from such supposed mind control or surveillance.
Full definition