How to protect smart homes from cyber threats