if you say that someone did something bad with malice aforethought, you mean that they intended to do it and it was not an accident
Usage notes: This is a legal phrase, but it is used humorously in general language.
She has certainly got me in trouble with my boss, but I'm not sure whether she did it with malice aforethought.