Great article by @huntress in which they have analyzed the 'defendnot' evasion technique. Clever technique used to disable Windows defender by registering a fabricated AV-product.
Great amount of detail, detection and defense suggestions.
https://www.huntress.com/blog/defendnot-detecting-malicious-security-product-bypass-techniques