That is what the antivirus is for. If you are not a high value target, then your risk is virus that are being widely distributed; and those will quickly find their way into an AV database.
If you are a high value target, AV is useless, since the attackers you care about will target you with bespoke mallare, that will not be in an AV database.