Rami Malek as Elliot Alderson, a senior network engineer at Allsafe Cybersecurity and a vigilante hacker. He has dissociative identity disorder and deals with other mental illnesses such as clinical depression and severe anxiety, which are partly responsible for his antisocial behavior and drug use.