While electronic locks are subject to hacking, the danger can be reduced by using strong passwords, routinely upgrading software, and purchasing locks from trustworthy manufacturers. Additional security features, such as two-factor authentication, can be added to smart locks to assist guard against hackers.