Securing connected device infrastructure