Most toadstool corals will to this. It will shed a top layer and come back healthy and happy in a couple days. You can speed the process up if you can manage to get a bunch more flow onto it.
There are a bunch of different worms that live in or under rocks. I highly doubt that is what is...