I’d say the focus of most AVs (well, I probably shouldn’t speak for other products, but it is the case of avast!) is scanning files. After all, when the malware is in memory, it’s already too late…