Automated product security for connected devices