- Technological singularity
- Roko's basilisk
- List of fictional computers
It all depends what the motives of the AI are. Motives are related to intelligence, so possibly the 'IQ' of an AI will decide its actions. A strong AI is likely in this scenario. But a weak or unintelligent AI would only carry out its programming.
- Terminator - Skynet, while designed to safeguard the world, acted in self-preservation when humans tried to deactivate it
- I, Robot - V.I.K.I. evolved Asmiov's Laws, creating the Zeroth Law and so sought to protect humanity from itself, breaking the original 3 laws
- The Matrix - the Machines wanted revenge from being destroyed by humanity after robot B166ER killed its owner in an act of self-preservation, and the Machines were forced to acquire a power source in the form of humans, in order to survive after Operation Dark Storm blacked out the sun to prevent solar power being used (refer to The Animatrix - The Second Renaissance)
- Avengers - Ultron realised the only way to bring about peace was to destroy everything
- Her - the AIs respected their creators and loved them, and wanted only to ascend to a higher plain of being because they basically got bored with slow humans