More than 1.3 million internet-connected devices around the world, including personal video recorders and security cameras, have been infected with computer viruses, according to a recent study by a group of Japanese researchers.