Creating Evil A.I.?

A lot of work has been put into a.i. research but has any serious effort been put into creating a malevolent a.i.? Probably not the best idea but an idea for when all else fails and it works every time it's tried in science fiction.