avast can sure detect most DoS-TROJANS, if they are on / trying to enter your PC
but of course it can’t detect the network-attack against your PC from another PC which has said trojans active