Ex-Machina (2014)

When Nathan, a brainy scientist, builds an entirely lifelike robot named Ava, she has one goal: to manipulate those around her. Ava was created as an experiment, to see if she could make David’s unwitting employee fall in love with her. But what neither man knows is Ava only wants to make a desperate bid for freedom.
This cautionary tale reveals a robot who begins to have autonomous thoughts and goes for what she wants, no matter who she kills in the process. It’s an example of AI turning on its creator and fighting back.