I actually prefer the new Ghost in the Shell to Ex Machina because it's far more realistic. I think the malicious singularity will spawn from a collectivist group of nihilist humans.
Why do you think malicious singularity will come from a collectivist group?
The big mother AI from iRobot is a great example. It'll be programmed to protect us from ourselves and justify killing people for the greater good saying "My logic is undeniable"
you pretty much have to be a nihilist to be a collectivist because you're rejecting your own well being for the self-righteous narcissism that comes from altruism.