Researchers develop cybersecurity to detect hacks in critical smart devices