Although highly beneficial, facial-recognition technology could also be exploited for use in malicious ways.