Bad Egg
The expression ‘bad egg’ was first used in 1855 in Samuel A Hammett’s novel Captain Priest. The analogy he draws is with an egg that on the outside may appear fresh, but when the shell is broken, it may be rotten inside.
Red Herrings and White Elephants by Albert Jack, 2004.