Virus hashes don’t exist.
There are only file hashes and yes they can be for a malicious file.

avast is using many detections/protection methods and hash is just one of them.