Cloudfront.net is a legitimate service that the website owner uses to speed up their website. However, many scammers host their scam website on this platform to trick users.
Cloudfront.net does host websites related to malware and tech support scams but it is not a malware domain itself. When your web browser is redirected to the Cloudfront.net domain and you end up on a fake website such as below in the image, make sure to clean your computer from adware and other malware.