Does anyone know if avast or any other program can detect Rats?
yes… all antivirus detect all malicious code, this is what they work with 24/7 but no security program have 100% detection and new malware versions are released every day
leave this to avast to worry about