Will AI become conscious and kill everyone?
Or will the conscious beings that exist today use it to kill everyone?
I don't think it actually needs to be conscious, or understand legal or moral issues.
Just tell it everything is a simulation and it is completely sandboxed from harming anyone.