I'm not going to re-hash the HBGary story; Ars Technica has done a great job of following and chronicling the story.
Here are some of the great pieces I've read:
How one security firm tracked down Anonymous - and paid a heavy price
Black ops: How HBGary wrote backdoors for the government
I'll add more as I read more of their work. Great stuff.