I have been wondering of this question forever! I tried Google, but came empty handed ... or didn't search hard enough >.>

How does a cheat become detected? Is the process similar to how anti-viruses like AVAST etc detect viruses/ malware stuff? If you can please post a link to support your answer. I would greatly appreciate it! Thank you guys!