Is "white as a ghost" an idiom?

Not really. It's a simile.

http://www.etap.org/demo/grade7_8_langart/langart1/instruction1tutor.html