By default detection of pups is not enabled in Avast.

To turn it on go to the Security tab / Antivirus / … then next to “Scan Pups” click “Turn on”