This reminds me of a detail from the plot of the original Deus Ex. Part way through the game, there is an optional dialogue with a benevolent AI. If you question it enough, it reveals that it is the rejected prototype for an anti-corruption/terrorism AI which was turned off for being too effective: eventually classifying its own masters as a criminal organisation.