Almost anyone who has used the internet has probably experienced that alarming moment when a window pops up claiming that your device has a virus and encouraging you to click for tech support or to download security software. It’s a common online scam, one that Google is now aiming to fight more aggressively using artificial intelligence.