Windows-like viruses that self-replicate and affect macOS don’t exist because of the underlying UNIX Foundation and permission limitations.
The macOS operating system resides in a sealed and read-only volume that can’t be opened by users or third-party applications.
Mac app security enhancements are sufficient to protect computers from malware.
Effective defenses against malware and other threats
Adware and Malware can affect computers and are often downloaded from “shady” websites or developers who inject them into downloads.
Using Torrents to download hacked or otherwise compromised software is also a good vector for Malware / Adware
Source: User tip from @Kurt Lang
What is malware? - Apple Community
Follow the previous advise from my colleague @ John Galt and remove " Uninstall "Avira". Follow its uninstallation instructions. "