Yes, your Trojan-gen naming is extrem! I am glad, that you have to drop the trojan-generic(UPX!) Signature, if Avast supports UPX unpacking!
But with this Method of generic detection, you have to “life” with more False alarms