People have literally tried to hack together an agent on top of GTP-4 and given it an explicit goal of "kill all humans" for the lulz (ChaosGPT). I don't think that particular case is going anywhere, but assuming that nothing roughly GPT-shaped can acquire harmful goals seems naive.